/*
Theme Name: Roni Azulay (Divi child)
Theme URI: https://roniazulay.co.il/
Description: Child theme of Divi for the Roni Azulay studio. Ports the editorial-luxury design system (dark palette, Swiss type, RTL/Hebrew) from the retired Next.js frontend and styles the custom home sections (hero, clients marquee, process) + project gallery.
Author: Solid Artisans
Author URI: https://solidartisans.com/
Template: Divi
Version: 1.0.0
License: GNU General Public License v2
Text Domain: roniazulay-divi
*/

/* =====================================================================
 * Design tokens (ported from frontend/src/app/globals.css)
 * ===================================================================== */
:root {
	/* LIGHT theme — crisp white body with cool near-black ink and a signature
	 * "unique black" accent (a deep cool graphite, never pure #000 nor steel).
	 * Dark hero/footer/header are re-scoped to dark below. */
	--bg: #ffffff;          /* pure white paper */
	--bg-soft: #f4f5f8;     /* cool light-grey band */
	--surface: #ffffff;     /* cards / panels */
	--ink: #0c0c17;         /* cool near-black text */
	--ink-muted: #3f434c;   /* cool muted body / labels, 9.9:1 on white */
	--line: rgba(12, 12, 23, 0.12);   /* cool hairline on light */
	--accent: #14151a;      /* signature unique black (cool graphite) */
	--accent-bright: #ffffff; /* white, used inside dark zones */
	--accent-deep: #000000; /* pure black, sparingly */
	--ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
	--rap-container: 1600px;
	/* One rail for the whole site. Every band that holds content pads itself by
	 * --rap-rail, so the header, the sections, the client wall and the footer
	 * all start and end on the same vertical line at every width. Bands whose
	 * background must run edge to edge stay full-bleed and pad inwards; nothing
	 * uses max-width + auto margins, because that adds the gutter on top of the
	 * centring offset and drifts off the rail on wide screens. */
	--rap-gutter: clamp(20px, 5vw, 64px);
	--rap-rail: max(var(--rap-gutter), calc((100% - var(--rap-container)) / 2));
	/* Golden-ratio spacing scale (φ ≈ 1.618) — used for section rhythm so the
	 * vertical spacing reads deliberate, not arbitrary. */
	--space-2xs: clamp(0.5rem, 1vw, 0.75rem);
	--space-xs: clamp(0.8rem, 1.6vw, 1.2rem);
	--space-s: clamp(1.3rem, 2.6vw, 1.95rem);
	--space-m: clamp(2.1rem, 4.2vw, 3.15rem);
	--space-l: clamp(3.4rem, 6.8vw, 5.1rem);
	--space-xl: clamp(5.5rem, 10vw, 8.25rem);
	--space-2xl: clamp(8.9rem, 15vw, 13.35rem);
	/* Readable measure for prose/leads (rule-of-thumb line length). */
	--measure: 68ch;
	/* =================================================================
	 * Typography
	 *
	 * --rad-font and --rad-base-size are the only two the Customizer
	 * writes (Appearance → Customize → Colors & Typography prints a later
	 * :root{} that swaps them). Everything else is derived, so changing
	 * the family or the reading size cannot pull the scale apart.
	 * ================================================================= */
	--rad-font: "M PLUS Rounded 1c", ui-sans-serif, system-ui, sans-serif;
	--rad-base-size: 1.125rem;   /* 18px */

	--font-display: var(--rad-font);
	--font-body: var(--rad-font);
	--font-mono: var(--rad-font);

	/* Sizes. The two display steps are fluid; everything from the card
	 * label down is fixed, because body copy that grows with the viewport
	 * stops being comfortable at one end or the other. */
	--fs-hero: clamp(2.75rem, 8vw, 6rem);        /* 44 → 96 */
	--fs-section: clamp(2rem, 4.5vw, 3.75rem);   /* 32 → 60 */
	--fs-card: 1.25rem;                          /* 20 */
	--fs-lead: 1.25rem;                          /* 20 — standfirst under a title */
	--fs-body: var(--rad-base-size);             /* 18, Customizer range 14–22 */
	--fs-small: 0.9375rem;                       /* 15 */
	--fs-label: 0.75rem;                         /* 12 */

	/* Leading. Display sets tight enough to read as a block; body copy
	 * stays loose, which Hebrew needs more than Latin does. */
	--lh-hero: 1.02;
	--lh-display: 1.1;
	--lh-card: 1.3;
	--lh-body: 1.75;
	--lh-small: 1.6;
	--lh-label: 1.2;

	/* Tracking. Latin display tightens as it grows; the RTL block below
	 * takes that back, because negative tracking closes Hebrew counters
	 * and ד starts to read as ר. */
	--tracking-hero: -0.022em;
	--tracking-display: -0.014em;
	--tracking-body: 0.006em;
	--tracking-label: 0.16em;
	--word-spacing: 0.01em;

	/* Weights, named by job rather than number, so a component asks for
	 * emphasis instead of guessing which numeral the family supports. */
	--weight-light: 300;
	--weight-body: 400;
	--weight-medium: 500;
	--weight-display: 700;
	--weight-hero: 800;

	/* Colour by role. These alias the palette above, so the Customizer's
	 * colour pickers keep driving them. */
	--color-text: var(--ink);
	--color-muted: var(--ink-muted);
	--color-bg: var(--bg);
}

/* Hebrew is a different typographic problem from Latin: almost no
 * ascenders or descenders, a tall uniform letter height, and forms told
 * apart by their counters rather than their outlines. It wants more
 * leading and no negative tracking at all. */
[dir="rtl"] {
	--measure: 50ch;
	--tracking-hero: 0;
	--tracking-display: 0;
	--tracking-body: 0;
	--tracking-label: 0.1em;
	--word-spacing: 0.04em;
	--lh-hero: 1.12;
	--lh-display: 1.2;
	--lh-body: 1.8;
}

/* Dark anchor zones — the hero, footer, header and project hero keep the dark
 * editorial luxury (light text on dark) while the rest of the site is light.
 * Re-scoping the tokens here means every descendant that uses var(--ink/--bg/
 * --line/--surface/--accent) flips automatically. */
.rap-hero,
.rap-footer,
.rap-header,
.rap-project__hero,
.rap-process__visual,
/* The step media is moved out of the visual column and into the open panel
 * below the two-column breakpoint. It has to carry the dark scope with it:
 * these clips are mix-blend-mode: screen, which resolves to white on white. */
.rap-process__panel-media {
	--bg: #14151a;
	--bg-soft: #1d1f24;
	--surface: #272a31;
	--ink: #f4f6fa;
	--ink-muted: #a6abb5;
	--line: rgba(244, 246, 250, 0.12);
	--accent: #ffffff;
	color: var(--ink);
}

/* Re-assert light text inside the dark zones over Divi's now-dark global text
 * colour. `#page-container .zone` (1,1,0) outranks Divi's `#page-container …`
 * (1,0,1) heading rule; :where() keeps the element list at zero specificity. */
#page-container .rap-hero,
#page-container .rap-footer,
#page-container .rap-project__hero,
#page-container .rap-hero :where(h1, h2, h3, h4, h5, h6, p, span, strong, em, li, dt, dd),
#page-container .rap-footer :where(h1, h2, h3, h4, h5, h6, p, span, strong, em, li, dt, dd),
#page-container .rap-project__hero :where(h1, h2, h3, h4, h5, h6, p, span, strong, em, li, dt, dd) {
	color: var(--ink);
}

/* =====================================================================
 * Base — apply the dark editorial system over Divi defaults.
 * ===================================================================== */
body {
	background: var(--bg);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body {
	font-family: var(--font-body);
	font-weight: var(--weight-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	letter-spacing: var(--tracking-body);
	word-spacing: var(--word-spacing);
	color: var(--color-text);
	background: var(--color-bg);
	overflow-x: hidden;
}

/* Divi prints `body { font-size: var(--et_global_body_font_size) }` into the
 * head AFTER this stylesheet, at the same specificity, so the rule above
 * loses and the whole scale would sit on Divi's 14px. `html body` is one
 * step heavier and settles it without reaching for !important. Only the
 * reading properties are restated here; every component keeps setting its
 * own size. */
/* The bar is fixed, so anything the browser scrolls to on its own (a #hash in
 * the URL, a focused element reached by keyboard) has to stop below it. The
 * click handler in site.js applies the same offset for in-page links. */
html {
	scroll-padding-top: calc(var(--rap-header-h, 72px) + 12px);
}

html body,
html body.et-db #et-boc .et-l {
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	letter-spacing: var(--tracking-body);
	word-spacing: var(--word-spacing);
}

/* Divi sizes its own modules from this variable, so pointing it at the token
 * keeps raw Divi text on the same scale as the theme's. */
:root,
body.et-db {
	--et_global_body_font_size: var(--fs-body);
}

a {
	color: var(--ink);
}

::selection {
	background: var(--ink);
	color: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	color: var(--color-text);
	text-wrap: balance;         /* even, deliberate line breaks on headings */
}

/* Single site typeface. Divi enqueues Open Sans and injects a high-specificity
 * font stack via its Customizer CSS (printed late in <head>), so Noto Sans is
 * forced here over text elements + Divi modules. Icon pseudo-elements
 * (::before/::after use ETmodules/FA) are intentionally NOT targeted. */
body,
body.et-db #et-boc .et-l,
input, select, textarea, button, optgroup,
h1, h2, h3, h4, h5, h6,
p, a, span, li, blockquote, label, dt, dd,
.et_pb_text, .et_pb_module, .et_pb_button,
#main-header, #et-top-navigation, #top-menu li a, .et_pb_menu a {
	font-family: var(--font-body) !important;
}

/* Display type. The direction-specific leading and tracking come from the
 * tokens, so Hebrew and Latin are tuned against each other in one place.
 * 800 stays reserved for the hero. */
.rap-display,
.display {
	font-family: var(--font-display);
	font-weight: var(--weight-display);
	font-size: var(--fs-section);
	line-height: var(--lh-display);
	letter-spacing: var(--tracking-display);
	word-spacing: normal;
	text-wrap: balance;
}

/* Labels: the smallest thing on the page, so it earns its place with
 * tracking and weight rather than size. Hebrew has no uppercase, so the
 * transform is inert there and the RTL token dials the tracking back. */
.rap-eyebrow,
.eyebrow {
	font-size: var(--fs-label);
	font-weight: var(--weight-medium);
	line-height: var(--lh-label);
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	color: var(--color-muted);
}

.rap-tracking-hover {
	transition: letter-spacing 0.5s var(--ease-lux), color 0.4s var(--ease-lux);
}
.rap-tracking-hover:hover {
	color: var(--accent);
}

/* Generic section shell — full-bleed band whose BACKGROUND spans the whole
 * viewport, while the content stays centred at --rap-container. The inline
 * padding grows on wide screens to (viewport - container)/2 so nothing is
 * "boxed": colour bands run edge-to-edge, text stays readable. */
.rap-section {
	width: 100%;
	max-width: none;
	margin-inline: 0;
	padding-inline: var(--rap-rail);
	padding-block: var(--space-xl);   /* golden-ratio vertical rhythm */
}

/* =====================================================================
 * Scroll reveal (ported from Reveal.tsx — fade + lift, once on scroll)
 * ===================================================================== */
/* Reveal must ENHANCE an already-visible default: only arm the hidden state
 * when JS is alive (html.rap-js, set synchronously in <head>). If the script
 * is blocked or errors, content stays visible instead of shipping blank. */
.rap-reveal {
	transition: opacity 0.8s var(--ease-lux), transform 0.8s var(--ease-lux);
}
html.rap-js .rap-reveal {
	opacity: 0;
	transform: translateY(32px);
	will-change: opacity, transform;
}
/* Match the gated specificity so the reveal always wins over the hidden state. */
html.rap-js .rap-reveal.is-visible,
.rap-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* =====================================================================
 * Hero (ported from Hero.tsx + HeroVideo.tsx)
 * ===================================================================== */
.rap-hero {
	position: relative;
	height: 100svh;
	min-height: 560px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--bg);
	text-align: center;
}

.rap-hero__video {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	/* Dark fallback so the hero never flashes a pale iframe before the video
	   paints, and any letterbox gap reads as part of the dark design. */
	background: var(--bg);
}
.rap-hero__video iframe,
.rap-hero__video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* 16:9 iframe sized to always cover the viewport. The combined rule above sets
 * inset:0 — we must clear right/bottom here, otherwise on an RTL page `right:0`
 * wins over `left:50%` and the oversized iframe is mispositioned (only ~half of
 * the video shows). `inset:auto` resets all four edges before centring. */
.rap-hero__video iframe {
	inset: auto;
	left: 50%;
	top: 50%;
	width: 177.78vh;
	min-width: 100%;
	height: 56.25vw;
	min-height: 100%;
	transform: translate(-50%, -50%);
}

.rap-hero__scrim {
	position: absolute;
	inset: 0;
	/* Cinematic, even darkening so the video reads as a subtle texture rather
	   than a competing image: a centred vignette lifts the logo + headline,
	   while a top/bottom vertical gradient keeps the nav and CTA legible over
	   any video frame. Tuned to tame bright/uneven frames (the perceived
	   "seam") without hiding the footage entirely. */
	background:
		radial-gradient(116% 86% at 50% 46%, rgba(10, 11, 13, 0.34) 0%, rgba(10, 11, 13, 0.80) 78%),
		linear-gradient(180deg, rgba(10, 11, 13, 0.58) 0%, rgba(10, 11, 13, 0.22) 38%, rgba(10, 11, 13, 0.64) 100%);
}

/* Hero image mode (from the SDA Hero Media module): a cover still with a
   quiet 14s settle; the no-image state renders the dark monogram placeholder. */
.rap-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: rap-hero-settle 14s var(--ease-lux) both;
}

@keyframes rap-hero-settle {
	from { transform: scale(1.03); }
	to { transform: scale(1); }
}

.rap-hero__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(120% 80% at 50% 34%, rgba(159, 178, 204, 0.07), transparent 60%), var(--bg);
}

.rap-hero__ph-mark {
	width: clamp(150px, 20vw, 280px);
	opacity: 0.16;
}

/* Phones: drop the background VIDEO and lean into the clean dark hero.
   Autoplay video backgrounds are unreliable on mobile (iOS low-power mode
   blocks them, plus the data cost) and don't cover tall portrait viewports
   cleanly. A still image or the placeholder has none of those costs, so
   image mode stays visible on phones. */
@media (max-width: 781px) {
	.rap-hero__media--youtube,
	.rap-hero__media--vimeo,
	.rap-hero__media--file { display: none; }
}

.rap-hero__inner {
	position: relative;
	z-index: 1;
	padding-inline: clamp(20px, 5vw, 64px);
	max-width: min(1040px, 92vw);
	margin-inline: auto;
	padding-block-start: clamp(34px, 7vh, 86px);
}

.rap-hero__logo {
	width: clamp(132px, 18vw, 250px);
	height: auto;
	margin: 0 auto clamp(18px, 2.4vw, 32px);
	opacity: 0;
	animation: rap-hero-in 1.2s var(--ease-lux) forwards;
}

/* Brand line — the largest element in the hero (mirrors the original site,
 * where "RONI AZULAY" dominates). Overrides the small .rap-eyebrow treatment. */
.rap-hero__eyebrow,
[dir="rtl"] .rap-hero__eyebrow {
	font-size: var(--fs-section);
	font-weight: var(--weight-hero);
	line-height: var(--lh-display);
	letter-spacing: var(--tracking-display);
	text-transform: none;
	color: var(--color-text);
	margin: 0;
	text-wrap: balance;
	overflow-wrap: break-word;
	opacity: 0;
	animation: rap-fade-up 0.9s var(--ease-lux) 0.2s forwards;
}
/* Tagline — clearly secondary to the brand line. */
.rap-hero__title,
[dir="rtl"] .rap-hero__title {
	font-weight: var(--weight-display);
	font-size: var(--fs-hero);
	line-height: var(--lh-hero);
	letter-spacing: var(--tracking-hero);
	margin: clamp(16px, 2.2vw, 28px) 0 0;
	color: var(--color-text);
	opacity: 0;
	animation: rap-fade-up 0.9s var(--ease-lux) 0.32s forwards;
}
.rap-hero__cta {
	display: inline-block;
	margin-top: clamp(24px, 3.2vw, 40px);
	padding: 15px 36px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 0;
	color: #ffffff;
	text-decoration: none;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-size: 0.92rem;
	font-weight: 500;
	opacity: 0;
	animation: rap-fade-up 0.9s var(--ease-lux) 0.44s forwards;
	transition: background 0.4s var(--ease-lux), color 0.4s var(--ease-lux), border-color 0.4s var(--ease-lux);
}
.rap-hero__cta:hover,
.rap-hero__cta:focus-visible {
	background: #ffffff;
	border-color: #ffffff;
	color: var(--accent-deep);
}

@keyframes rap-hero-in {
	to { opacity: 1; transform: none; }
}
@keyframes rap-fade-up {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: none; }
}

/* =====================================================================
 * Featured projects grid (ported from FeaturedProjects + ProjectCard)
 * ===================================================================== */
.rap-featured__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(28px, 4vw, 56px);
	flex-wrap: wrap;
}
.rap-featured__title {
	font-size: clamp(1.8rem, 4vw, 3rem);
}
.rap-featured__all {
	color: var(--ink-muted);
	text-decoration: none;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.78rem;
}
.rap-featured__all:hover { color: var(--accent); }

/* Project grid — the studio's signature portfolio grid: even cover-cropped
   cells, a brand-yellow veil on hover and a caption that rises from the bottom
   edge with the project name, its place line and the way through to the page.
   The image itself opens the project's lightbox. Two locals drive the veil, so
   the colour pair changes in one place:
     --rap-veil     the overlay wash
     --rap-veil-ink the text painted on it (kept dark for contrast on yellow) */
.rap-cards {
	--rap-veil: rgba(255, 204, 0, 0.86);
	--rap-veil-ink: #0c0c17;
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(14px, 1.6vw, 22px);
}
@media (min-width: 641px) {
	.rap-cards { grid-template-columns: repeat(2, 1fr); }
}
.rap-card {
	position: relative;
	overflow: hidden;
	background: var(--bg-soft);
	isolation: isolate;
}
.rap-card__open {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	cursor: zoom-in;
	text-decoration: none;
}
.rap-card__open--page { cursor: pointer; }
.rap-card__media {
	position: absolute;
	inset: 0;
	display: block;
}
.rap-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.5s ease-in-out;
}
.rap-card:hover .rap-card__img,
.rap-card:focus-within .rap-card__img { transform: scale(1.1); }

/* The veil sits above the image and lets clicks through to it; only the
   project link inside the caption takes the pointer back. */
.rap-card__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: var(--rap-veil);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease-in-out;
}
.rap-card__caption {
	display: grid;
	justify-items: center;
	gap: 5px;
	width: 100%;
	padding: clamp(14px, 2vw, 22px);
	text-align: center;
	color: var(--rap-veil-ink);
	transform: translateY(100%);
	transition: transform 0.5s ease;
}
.rap-card:hover .rap-card__overlay,
.rap-card:focus-within .rap-card__overlay { opacity: 1; }
.rap-card:hover .rap-card__caption,
.rap-card:focus-within .rap-card__caption { transform: none; }
.rap-card__name {
	font-size: var(--fs-card);
	font-weight: var(--weight-display);
	line-height: var(--lh-card);
	letter-spacing: var(--tracking-display);
}
.rap-card__meta {
	display: block;
	font-size: var(--fs-small);
	font-weight: var(--weight-medium);
	line-height: var(--lh-small);
	opacity: 0.78;
}
.rap-card__page {
	margin-block-start: 6px;
	padding-block-end: 2px;
	border-block-end: 1px solid currentColor;
	color: inherit;
	font-size: var(--fs-label);
	font-weight: var(--weight-medium);
	letter-spacing: var(--tracking-label);
	text-decoration: none;
	text-transform: uppercase;
	opacity: 0.72;
	pointer-events: auto;
	transition: opacity 0.25s ease;
}
.rap-card__page:hover,
.rap-card__page:focus-visible { opacity: 1; }
.rap-card__open:focus-visible,
.rap-card__page:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }

/* Touch: there is no hover, so the caption stays put on a bottom scrim that
   keeps it legible without washing every image in yellow. */
@media (hover: none) {
	.rap-card__overlay {
		opacity: 1;
		background: linear-gradient(180deg, rgba(12, 12, 23, 0) 42%, rgba(12, 12, 23, 0.74) 100%);
	}
	.rap-card__caption {
		transform: none;
		color: #ffffff;
	}
	.rap-card:hover .rap-card__img { transform: none; }
}

/* =====================================================================
 * Process section (ported from ProcessSection.tsx)
 * ===================================================================== */
.rap-process__head { margin-bottom: clamp(40px, 6vw, 80px); }
.rap-process__title {
	max-width: 18ch;
	font-size: var(--fs-section);
	margin-top: 12px;
}
.rap-process__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	align-items: center;
}
@media (min-width: 1024px) {
	.rap-process__grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}

.rap-process__visual {
	position: relative;
	aspect-ratio: 1 / 1;
	width: 100%;
	max-width: 560px;
	/* Sits on the rail rather than centred in its column: auto margins left it
	 * 28px inside every other band's edge at 1440. */
	margin-inline: 0;
	order: 2;
	isolate: isolate;
}
@media (min-width: 1024px) { .rap-process__visual { order: 1; } }
.rap-process__halo {
	position: absolute;
	inset: 8%;
	border-radius: 999px;
	background: rgba(159, 178, 204, 0.10);
	filter: blur(64px);
	pointer-events: none;
}
.rap-process__media-wrap {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	isolation: isolate;
}
.rap-process__media-bg { position: absolute; inset: 0; background: var(--bg); }
.rap-process__media {
	position: relative;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	transform: scale(0.96);
	transition: opacity 0.6s var(--ease-lux), transform 0.6s var(--ease-lux);
}
.rap-process__media.is-active { opacity: 1; transform: scale(1); }
/* glow-on-black clips: screen-blend over the page colour to fake transparency */
.rap-process__media--screen { mix-blend-mode: screen; }
/* Visual panel "chapter card": an intentional typographic composition for each
   step (big serif numeral + step title + a 0X / 06 counter) shown over the gold
   halo. Crossfades between steps. If a step is later given real media, the
   media-wrap renders instead and this is skipped. */
.rap-process__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10%;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transform: scale(0.97);
	transition: opacity 0.6s var(--ease-lux), transform 0.6s var(--ease-lux), visibility 0.6s var(--ease-lux);
}
.rap-process__placeholder.is-active { opacity: 1; visibility: visible; transform: scale(1); }
.rap-process__ph-num {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(5.5rem, 17vw, 11rem);
	font-weight: 400;
	line-height: 0.85;
	color: var(--accent);
	opacity: 0.85;
}
.rap-process__ph-title {
	font-size: clamp(1.25rem, 2.6vw, 1.75rem);
	font-weight: 400;
	color: var(--ink);
	max-width: 16ch;
	margin-top: 10px;
}
.rap-process__ph-count {
	margin-top: 20px;
	font-size: 0.7rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--ink-muted);
	/* Keep the "01 / 06" counter left-to-right even on the RTL page. */
	direction: ltr;
}
.rap-process__ph-count::before {
	content: "";
	display: block;
	width: 36px;
	height: 1px;
	margin: 0 auto 16px;
	background: var(--accent);
	opacity: 0.55;
}

.rap-process__list { order: 1; list-style: none; margin: 0; padding: 0; }
@media (min-width: 1024px) { .rap-process__list { order: 2; } }
.rap-process__item { border-bottom: 1px solid var(--line); }
.rap-process__btn {
	display: flex;
	align-items: center;
	gap: 20px;
	width: 100%;
	padding: 24px 0;
	background: none;
	border: 0;
	cursor: pointer;
	text-align: start;
	color: inherit;
}
.rap-process__num {
	display: flex;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: 1px solid var(--line);
	font-size: 0.85rem;
	color: var(--ink-muted);
	transition: all 0.5s var(--ease-lux);
}
.rap-process__name {
	font-size: clamp(1.3rem, 2.5vw, 1.85rem);
	font-weight: 700;
	color: var(--ink-muted);
	transition: color 0.5s var(--ease-lux);
}
.rap-process__item.is-open .rap-process__num {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--accent-bright);
}
.rap-process__item.is-open .rap-process__name { color: var(--ink); }
.rap-process__btn:hover .rap-process__name { color: var(--ink); }
/* Opens on grid-template-rows rather than height: the row track animates on
 * the compositor-friendly path and, unlike a measured pixel height, it stays
 * correct when the panel's contents change size, which they now do because the
 * step's own image moves in here on mobile. */
.rap-process__panel {
	display: grid;
	grid-template-rows: 0fr;
	overflow: hidden;
	opacity: 0;
	transition: grid-template-rows 0.5s var(--ease-lux), opacity 0.5s var(--ease-lux);
}
.rap-process__panel > * {
	min-height: 0;
}
.rap-process__item.is-open .rap-process__panel {
	grid-template-rows: 1fr;
	opacity: 1;
}
.rap-process__blurb {
	max-width: 46ch;
	margin: 0;
	padding: 0 0 28px 56px;
	color: var(--ink-muted);
}
[dir="rtl"] .rap-process__blurb { padding: 0 56px 28px 0; }

/* =====================================================================
 * Split preview (ported from SplitPreview.tsx)
 * ===================================================================== */
.rap-split { display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 900px) { .rap-split { grid-template-columns: 1fr 1fr; } }
.rap-split__panel {
	position: relative;
	display: block;
	overflow: hidden;
	min-height: clamp(320px, 46vw, 560px);
	text-decoration: none;
	color: var(--ink);
	background: var(--surface);
}
.rap-split__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.1s var(--ease-lux);
}
.rap-split__panel:hover .rap-split__img { transform: scale(1.05); }
.rap-split__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: clamp(24px, 4vw, 56px);
	background: linear-gradient(to top, rgba(12, 13, 15, 0.85), rgba(12, 13, 15, 0) 70%);
}
.rap-split__kicker { color: var(--accent); }
.rap-split__name { font-size: var(--fs-card); margin-top: 8px; }

/* =====================================================================
 * Single project + archive (plugin templates)
 * ===================================================================== */
.rap-project__hero {
	position: relative;
	min-height: clamp(360px, 60vh, 680px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--surface);
}
.rap-project__hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.rap-project__hero-overlay {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: clamp(24px, 5vw, 72px);
	padding-inline: clamp(20px, 5vw, 64px);
	background: linear-gradient(to top, rgba(12, 13, 15, 0.9), rgba(12, 13, 15, 0) 75%);
}
.rap-project__title { font-size: var(--fs-section); margin: 8px 0 0; }
.rap-project__excerpt { margin-top: 14px; max-width: 60ch; color: var(--ink-muted); }
.rap-breadcrumbs { display: flex; gap: 10px; align-items: center; font-size: 0.82rem; color: var(--ink-muted); }
.rap-breadcrumbs a { color: inherit; text-decoration: none; }
.rap-breadcrumbs a:hover { color: var(--accent); }

.rap-project__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(28px, 4vw, 56px);
}
@media (min-width: 900px) {
	.rap-project__layout { grid-template-columns: minmax(0, 2.2fr) minmax(240px, 1fr); align-items: start; }
	/* No spec panel: the single column centres instead of hugging the rail,
	   which left half the page empty beside it. */
	.rap-project__layout--solo { grid-template-columns: 1fr; max-width: 900px; margin-inline: auto; }
}
.rap-project__content { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--color-text); }
.rap-project__content > * + * { margin-block-start: 1em; }
.rap-project__video { max-width: 880px; aspect-ratio: 16 / 9; margin-block-end: clamp(24px, 4vw, 44px); border: 1px solid var(--line); background: #000; }
/* Self-hosted clips carry their own ratio inline. A portrait one is held to
   a phone-width column and centred, so it reads as shot instead of towering
   down the story column. */
.rap-project__video--portrait { max-width: min(380px, 100%); margin-inline: auto; }
.rap-project__video iframe,
.rap-project__video video { display: block; width: 100%; height: 100%; border: 0; }
.rap-project__aside { position: sticky; top: 96px; }
/* Rail layout: the spec panel carries the portrait player beneath it and
   the gallery takes the wide column, so the rail is too tall to stick. */
.rap-project__layout--rail .rap-project__aside { position: static; display: grid; gap: clamp(20px, 3vw, 32px); }
.rap-project__layout--rail .rap-project__aside .rap-project__video { margin-block-end: 0; }
.rap-project__layout--rail .rap-project__content > .rap-gallery:first-child { margin-block-start: 0; }
/* Stacked, the rail's facts and its video still come before the gallery, the
   way every other project reads on a phone. */
@media (max-width: 899px) {
	.rap-project__layout--rail .rap-project__aside { order: -1; }
}
.rap-project__cta { margin-top: 24px; }

/* The story: the project's own words, under a quiet label so the section
   announces itself the way the spec panel does. */
.rap-project__story-title {
	margin: 0 0 clamp(14px, 1.6vw, 20px);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink-muted);
}
.rap-project__story + .rap-project__cta { margin-top: clamp(28px, 3vw, 40px); }

/* The gallery is the work, so it runs the full rail rather than sharing the
   story's column — a project with no story used to leave it in a narrow
   band with dead space beside it. */
.rap-project__gallery-band { padding-block-start: 0; }
.rap-project__layout + .rap-project__gallery-band { padding-block-start: 0; }

.rap-project__pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block: clamp(40px, 6vw, 80px); }
.rap-project__pager-link { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--ink); transition: border-color 0.3s var(--ease-lux); }
.rap-project__pager-link:hover { border-color: var(--accent); }
.rap-project__pager-next { text-align: end; }
/* The first and last projects have one neighbour, not two. A lone "next"
   belongs in the second track (the leading edge of the reading direction),
   so the row does not open a gap where "previous" would have been. */
.rap-project__pager > .rap-project__pager-next:only-child { grid-column: 2; }
.rap-project__pager-title { font-weight: 500; }

.rap-archive__head {
	margin-bottom: clamp(28px, 4vw, 56px);
	max-width: 72ch;
	margin-inline: auto;
	text-align: center;
}
.rap-archive__title { font-size: var(--fs-section); margin-top: 10px; text-wrap: balance; }
.rap-archive__desc { margin-top: 14px; color: var(--ink-muted); max-width: 60ch; margin-inline: auto; }
.rap-archive__empty { color: var(--ink-muted); }
/* Under a centred head, the page numbers centre with it. */
.rap-archive__pagination { margin-top: clamp(32px, 5vw, 64px); text-align: center; }
.rap-archive__pagination .nav-links { justify-content: center; }
.rap-archive__pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 4px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); text-decoration: none; }
.rap-archive__pagination .page-numbers.current,
.rap-archive__pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* =====================================================================
 * Divi default header / footer — dark editorial overrides
 * ===================================================================== */
#main-header,
#main-header.et-fixed-header {
	background-color: rgba(12, 13, 15, 0.85) !important;
	box-shadow: none !important;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
#top-menu li a,
#et-top-navigation .et-cart-info { color: var(--ink) !important; }
#top-menu li a:hover { color: var(--accent) !important; opacity: 1; }
#top-menu li.current-menu-item a { color: var(--accent) !important; }
#main-header .et_mobile_menu { background: var(--bg-soft); border-color: var(--accent); }
#main-header .et_mobile_menu li a { color: var(--ink); }
.et_header_style_left #et-top-navigation { padding-top: 0; }

#main-footer { background-color: var(--bg-soft); }
#footer-bottom { background-color: rgba(0, 0, 0, 0.3); }
#footer-info, #footer-bottom .et-social-icons a { color: var(--ink-muted); }
#main-footer .et_pb_widget a { color: var(--ink); }

/* Full-bleed home: kill Divi's content container padding on the home template.
 * Rows inside .rap-home__content (the Divi content under the splash) keep
 * Divi's own width, so the Visual Builder's row settings apply there. */
.rap-home { width: 100%; max-width: none; }

@media (prefers-reduced-motion: reduce) {
	.rap-reveal,
	.rap-hero__logo,
	.rap-hero__eyebrow,
	.rap-hero__title,
	.rap-hero__cta,
	.rap-hero__img,
	.rap-card__img,
	.rap-split__img,
	.rap-process__media { transition: none; animation: none; opacity: 1; transform: none; }

	/* The card veil still has to stay hidden until hover, so it only loses the
	   motion: the caption snaps into place instead of rising. */
	.rap-card__overlay,
	.rap-card__caption { transition: none; }
	.rap-card__caption { transform: none; }
}

/* =====================================================================
 * Completion pass — make the Divi shell honour the dark editorial system.
 * Divi paints the content wrapper white by default, which left every
 * section below the hero on a light ground (invisible cream headings).
 * Force the page/content containers dark so transparent sections inherit.
 * ===================================================================== */
#page-container,
#et-main-area {
	background-color: var(--bg) !important;
}

/* #et-main-area is the opaque ground; the wrappers inside it stay transparent
 * so what is painted on that ground (the brand watermark below) shows through
 * instead of being covered by a second sheet of the same colour. */
#main-content,
.et_builder_inner_content,
body.et-db #et-boc .et-l {
	background-color: transparent !important;
}
body.et-db #et-boc .et-l { color: var(--ink); }

/* Atmospheric depth — keep the dark from reading as flat, dead black: a soft
 * cool lift high on the page and a faint cool tone low down, so empty space
 * has air and tone rather than a uniform black sheet. Subtle by design. */
#page-container {
	background-image:
		radial-gradient(120% 48% at 50% -4%, rgba(159, 178, 204, 0.05), transparent 55%),
		radial-gradient(120% 40% at 50% 104%, rgba(12, 12, 23, 0.04), transparent 60%) !important;
}

/* Divi paints every .et_pb_section white by default. This site is dark
 * end-to-end, so let the dark page container show through. (Home only looked
 * right because its full-bleed sections happened to cover the white.) */
.et_pb_section { background-color: transparent; }

/* Full-bleed home: drop Divi's content padding so the hero is edge-to-edge. */
#main-content:has(.rap-home) { padding: 0 !important; }
.rap-home { width: 100%; max-width: none; }

/* Bilingual headings: let direction follow the text itself. Fixes English
 * titles on the RTL (Hebrew) site rendering punctuation on the wrong side
 * (".a soul" / ".finished space"). */
.rap-display,
.rap-eyebrow,
.rap-hero__title,
.rap-hero__eyebrow,
.rap-process__title,
.rap-process__blurb,
.rap-featured__title,
.rap-card__name,
.rap-split__name {
	unicode-bidi: plaintext;
}

/* Imageless project cards: an intentional monogram instead of a blank box. */
.rap-card__media--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(120% 120% at 50% 30%, rgba(159, 178, 204, 0.10), transparent 60%),
		var(--bg-soft);
}
.rap-card__media--empty .rap-card__monogram {
	width: 38%;
	max-width: 120px;
	height: auto;
	opacity: 0.28;
}

/* Split preview with a single panel (e.g. no journal post yet) spans full width. */
.rap-split:has(> .rap-split__panel:only-child) { grid-template-columns: 1fr; }

/* Footer: hide the bottom social row if empty; keep the credit tidy. */
#footer-bottom #footer-info { opacity: 0.8; }

/* =====================================================================
 * Theme Builder chrome — bespoke header + footer (replaces Divi's shell).
 * The #main-header / #main-footer rules above style Divi's DEFAULT shell,
 * which no longer renders once these Theme Builder layouts are active.
 * ===================================================================== */
:root { --rap-header-h: 92px; --rap-header-z: 10001; }

/* Theme Builder header must win over scrolling body content. Divi nests
 * [rap_site_header] in .et_pb_fullwidth_code (z-index: 9) before #et-main-area
 * in DOM order, so hero CTAs and other modules paint on top of the fixed bar. */
.et-l--header {
	position: relative;
	z-index: var(--rap-header-z);
}

.rap-header {
	position: fixed;
	inset-block-start: 0;
	inset-inline: 0;
	z-index: var(--rap-header-z);
	/* Background + scroll/color states are owned by assets/css/header.css
	 * (light-on-scroll: transparent over a dark hero, solid light otherwise). */
	border-block-end: 1px solid transparent;
	transition: background-color 0.4s var(--ease-lux), border-color 0.4s var(--ease-lux);
}
.rap-header__inner {
	min-height: var(--rap-header-h);
	padding-inline: var(--rap-rail);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.rap-header__brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.rap-header__logo { width: 40px; height: 40px; display: block; transition: transform 0.4s var(--ease-lux); }
.rap-header.is-scrolled .rap-header__logo { transform: scale(0.9); }
.rap-header__name {
	font-weight: 500; letter-spacing: 0.14em; color: var(--ink);
	font-size: 0.9rem; text-transform: uppercase;
}

.rap-header__end { display: inline-flex; align-items: center; gap: clamp(18px, 2vw, 32px); }

.rap-nav__list {
	list-style: none; margin: 0; padding: 0;
	display: flex; align-items: center; gap: clamp(14px, 2vw, 32px);
}
.rap-nav__list a {
	position: relative;
	text-decoration: none; color: var(--ink); opacity: 0.9;
	font-size: 0.9rem; letter-spacing: 0.02em; padding-block: 4px;
	transition: color 0.3s var(--ease-lux), opacity 0.3s var(--ease-lux);
}
/* Editorial top rule that grows from centre on hover / current page. */
.rap-nav__list a::after {
	content: ""; position: absolute; inset-inline: 0; inset-block-start: 0;
	height: 2px; background: var(--accent);
	transform: scaleX(0); transform-origin: center;
	transition: transform 0.4s var(--ease-lux);
}
.rap-nav__list a:hover { color: var(--accent); opacity: 1; }
.rap-nav__list a:hover::after,
.rap-nav__list .current-menu-item > a::after { transform: scaleX(1); }
.rap-nav__list .current-menu-item > a { color: var(--accent); opacity: 1; }
.rap-nav__list .sub-menu { display: none; }

/* Keyboard focus — visible and on-brand (was missing entirely). */
.rap-header a:focus-visible,
.rap-header button:focus-visible {
	outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px;
}

/* Language switcher (SDA Bundle multilingual module) — styled to the dark header. */
.rap-lang {
	font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
	padding-inline-start: clamp(12px, 1.6vw, 24px);
	border-inline-start: 1px solid var(--line);
}
.rap-lang .sda-lang-switcher__item { color: var(--ink); opacity: 0.65; }
.rap-lang .sda-lang-switcher__item:hover,
.rap-lang .sda-lang-switcher__item.is-active { color: var(--accent); opacity: 1; }
.rap-lang .sda-lang-switcher__sep { color: var(--ink); opacity: 0.25; }
@media (max-width: 980px) {
	.rap-lang { border-inline-start: 0; padding-inline-start: 0; margin-inline-start: auto; }
}

.rap-header__toggle {
	display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
	background: none; border: 0; cursor: pointer;
	width: 44px; height: 44px; padding: 9px; margin-inline-end: -9px;
}
.rap-header__toggle span { width: 26px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease-lux), opacity 0.3s var(--ease-lux); }
.rap-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rap-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rap-header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Offset non-hero pages so the fixed header doesn't cover the top of content.
 * Hero pages (home + single project) carry .rap-has-hero and stay flush. */
body:not(.rap-has-hero) #page-container { padding-block-start: var(--rap-header-h); }

/* The mobile bar and its drawer are owned by assets/css/header.css, which
   loads after this file. Only the toggle's visibility lives here. */
@media (max-width: 980px) {
	.rap-header__toggle { display: inline-flex; }
}

.rap-footer {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(120% 80% at 50% -20%, rgba(159, 178, 204, 0.14), transparent 55%),
		var(--bg-soft);
	border-block-start: 1px solid var(--line);
}
.rap-footer__glow {
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(159, 178, 204, 0.55) 50%, transparent);
	opacity: 0.45;
	pointer-events: none;
}
.rap-footer__inner {
	padding: clamp(56px, 8vw, 112px) var(--rap-rail) clamp(40px, 5vw, 72px);
	display: grid;
	gap: clamp(40px, 6vw, 88px);
	grid-template-columns: minmax(240px, 1.25fr) minmax(0, 2fr);
	align-items: start;
}
.rap-footer__brand-link {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	text-decoration: none;
}
.rap-footer__wordmark {
	width: min(220px, 72%);
	height: auto;
	display: block;
	opacity: 0.96;
}
.rap-footer__tagline {
	margin-block-start: 20px;
	color: var(--ink-muted);
	max-width: 34ch;
	line-height: 1.65;
	font-size: 0.98rem;
}
.rap-footer__grid {
	display: grid;
	gap: clamp(32px, 4vw, 56px);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
}
.rap-footer__label { margin-block-end: 18px; }
.rap-footer__lede {
	margin: 0 0 22px;
	color: var(--ink-muted);
	max-width: 34ch;
	line-height: 1.65;
	font-size: 0.98rem;
}
.rap-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
	height: auto;
}
.rap-footer__list li {
	height: auto;
	display: block;
	list-style: none !important;
	list-style-type: none !important;
}
.rap-footer__list li::marker { content: "" !important; }
.rap-footer__list a {
	color: var(--ink);
	text-decoration: none;
	transition: color 0.3s var(--ease-lux), letter-spacing 0.4s var(--ease-lux);
	display: inline-block;
	min-height: 0;
	padding-block: 2px;
	font-size: 0.98rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	opacity: 0.88;
}
.rap-footer__list a::after { content: none; }
.rap-footer__list a:hover {
	color: var(--accent);
	opacity: 1;
	letter-spacing: 0.06em;
}
.rap-footer__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}
.rap-footer__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 28px;
	border: 1px solid rgba(244, 246, 250, 0.55);
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transition: background 0.35s var(--ease-lux), border-color 0.35s var(--ease-lux), color 0.35s var(--ease-lux), transform 0.35s var(--ease-lux);
}
.rap-footer__cta:hover,
.rap-footer__cta:focus-visible {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--bg-soft);
	transform: translateY(-1px);
}
.rap-footer__bottom {
	padding: 20px var(--rap-rail) 24px;
	border-block-start: 1px solid var(--line);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px 24px;
	color: var(--ink-muted);
	font-size: 0.82rem;
}
.rap-footer__copy,
.rap-footer__credit {
	margin: 0;
}
.rap-footer__copy { justify-self: start; }
.rap-footer__credit { justify-self: end; text-align: end; }
.rap-footer__meta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	flex-wrap: wrap;
}
.rap-footer__meta a {
	color: var(--ink-muted);
	text-decoration: none;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.72rem;
	transition: color 0.3s var(--ease-lux);
}
.rap-footer__meta a:hover,
.rap-footer__meta a:focus-visible { color: var(--accent); }

/* Human-readable sitemap page ([rap_sitemap]). */
.rap-sitemap__langs {
	display: grid;
	gap: clamp(40px, 6vw, 72px);
}
.rap-sitemap__lang {
	padding: clamp(28px, 4vw, 48px);
	border: 1px solid var(--line);
	background: var(--surface);
}
.rap-sitemap__lang--current {
	border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
	box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent) 18%, transparent);
}
.rap-sitemap__lang-title {
	margin: 0 0 clamp(24px, 3vw, 36px);
	font-size: clamp(1.35rem, 2.4vw, 1.85rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.rap-sitemap__grid {
	display: grid;
	gap: clamp(24px, 3vw, 40px);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.rap-sitemap__section {
	padding: 0;
	border: 0;
	background: transparent;
}
.rap-sitemap__heading {
	margin: 0 0 18px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ink-muted);
}
.rap-sitemap__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}
.rap-sitemap__list a {
	color: var(--ink);
	text-decoration: none;
	transition: color 0.3s var(--ease-lux);
}
.rap-sitemap__list a:hover,
.rap-sitemap__list a:focus-visible { color: var(--accent); }

@media (max-width: 980px) {
	.rap-footer__inner { grid-template-columns: 1fr; gap: 40px; }
	.rap-footer__grid { grid-template-columns: 1fr; gap: 36px; }
	.rap-footer__bottom {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.rap-footer__copy,
	.rap-footer__credit,
	.rap-footer__meta { justify-self: center; text-align: center; }
}

/* =====================================================================
 * Brand pages — About / Services / Contact editorial layout.
 * ===================================================================== */
.rap-page {
	width: 100%;
	max-width: none;
	margin-inline: 0;
	padding-inline: var(--rap-rail);
	padding-block: clamp(64px, 9vw, 140px);
}
.rap-page__head {
	max-width: 72ch;
	margin-inline: auto;
	margin-block-end: clamp(40px, 6vw, 80px);
	text-align: center;
}
/* The eyebrow opens the heading group, so it carries more than the caption
   size the label token gives the rest of the page. The tracking token stays,
   which is what keeps it reading as an eyebrow rather than a small title. */
.rap-page__head .rap-eyebrow,
.rap-archive__head .rap-eyebrow,
.rap-clients-section__eyebrow {
	font-size: clamp(0.85rem, 1.1vw, 0.95rem);
}
.rap-page__head .rap-eyebrow { margin-block-end: 18px; }
.rap-page__title { font-size: var(--fs-section); text-wrap: balance; }
.rap-page__lead {
	margin-block-start: 24px; font-size: var(--fs-lead); line-height: var(--lh-card);
	line-height: 1.6; color: var(--ink-muted); max-width: 56ch;
	margin-inline: auto;
}

/* The hairline — monogram — hairline divider the client wall carries, on every
 * page head. The badge on the home sections is real markup from
 * rad_section_badge(); page heads live inside page content, so the same figure
 * is drawn here instead: three background layers (mark, two rules) clipped by
 * matching mask layers, so each keeps its own token colour and both follow the
 * Customizer the way the inline SVG's currentColor does. */
.rap-page__head::after,
.rap-archive__head::after {
	--rap-badge-rule: clamp(46px, 8vw, 92px);
	--rap-badge-gap: clamp(14px, 2vw, 22px);
	--rap-badge-mark: clamp(32px, 3.6vw, 42px);
	content: "";
	display: block;
	width: calc(var(--rap-badge-rule) * 2 + var(--rap-badge-gap) * 2 + var(--rap-badge-mark));
	height: var(--rap-badge-mark);
	margin: clamp(16px, 2.2vw, 24px) auto 0;
	background-image:
		linear-gradient(var(--accent), var(--accent)),
		linear-gradient(var(--line), var(--line)),
		linear-gradient(var(--line), var(--line));
	background-repeat: no-repeat;
	background-size:
		var(--rap-badge-mark) var(--rap-badge-mark),
		var(--rap-badge-rule) 1px,
		var(--rap-badge-rule) 1px;
	background-position: center, left center, right center;
	-webkit-mask-image:
		url("assets/img/roni-logo.svg"),
		linear-gradient(#000, #000),
		linear-gradient(#000, #000);
	mask-image:
		url("assets/img/roni-logo.svg"),
		linear-gradient(#000, #000),
		linear-gradient(#000, #000);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size:
		var(--rap-badge-mark) var(--rap-badge-mark),
		var(--rap-badge-rule) 1px,
		var(--rap-badge-rule) 1px;
	mask-size:
		var(--rap-badge-mark) var(--rap-badge-mark),
		var(--rap-badge-rule) 1px,
		var(--rap-badge-rule) 1px;
	-webkit-mask-position: center, left center, right center;
	mask-position: center, left center, right center;
}
.rap-page__body {
	display: grid; gap: clamp(32px, 5vw, 72px);
	grid-template-columns: 1fr;
}
@media (min-width: 900px) {
	.rap-page__body { grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr); align-items: start; }
}
.rap-prose { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--color-text); }
.rap-prose > * + * { margin-block-start: 1.1em; }
.rap-prose h3 { font-size: var(--fs-card); margin-block-start: 1.6em; color: var(--color-text); }
.rap-page__aside { display: grid; gap: 18px; }
.rap-page__aside .rap-stat { border-block-start: 1px solid var(--line); padding-block-start: 16px; }
.rap-page__aside .rap-stat dt { color: var(--ink-muted); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.rap-page__aside .rap-stat dd { margin: 6px 0 0; font-size: 1.05rem; color: var(--ink); }

/* The same layout built from native Divi 5 modules, which is how the brand
 * pages are edited: section.rap-page > a head row (one Text module holding
 * eyebrow, h1 and lead) and a 2/3 + 1/3 row (a .rap-prose Text module, and a
 * .rap-page__aside column of .rap-stat Text modules plus the About portrait
 * Image module). A stat module is two paragraphs: label, then value. */
/* .et-l raises this above Divi's per-section rule
   (.et_pb_section_1.et_pb_section { padding-top: 0 }), which also let a
   child's top margin collapse through the section. */
.et-l .et_pb_section.rap-page {
	padding-inline: var(--rap-rail);
	padding-block: clamp(64px, 9vw, 140px);
}
.rap-page > .et_pb_row {
	width: 100%;
	max-width: none;
	padding-block: 0;
}
.et_pb_text.rap-page__head { text-align: center; }
/* Divi zeroes the last module's bottom margin, so the head row carries the
   space under the head instead. */
.rap-page > .et_pb_row.rap-page__head-row {
	display: flow-root; /* contains Divi's floated column on every page */
	margin-block-end: clamp(40px, 6vw, 80px);
}
/* Divi floats the two columns left, which ignores RTL and mirrors them. The
   row is the same grid the coded pages use instead, so the prose sits at the
   start edge in both languages. */
.et_pb_row.rap-page__body-row {
	display: grid;
	gap: clamp(32px, 5vw, 72px);
	grid-template-columns: 1fr;
}
.et_pb_row.rap-page__body-row::after { display: none; }
/* !important: the Visual Builder writes a percentage width on each column
   with higher specificity, which shrank both columns inside their grid cells. */
.et_pb_row.rap-page__body-row > .et_pb_column {
	float: none;
	width: auto !important;
	margin: 0 !important;
}
@media (min-width: 900px) {
	.et_pb_row.rap-page__body-row { grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr); align-items: start; }
}
.rap-prose .et_pb_text_inner > * + * { margin-block-start: 1.1em; }
.rap-stat p { padding-block-end: 0; }
/* Specific enough to beat Divi's gutter rule
   (.et_pb_gutters3 .et_pb_column_1_3.et_block_column .et_pb_module). */
.rap-page .et_pb_row .et_pb_column.rap-page__aside > .et_pb_module { margin-block-end: 1.5em; }
/* Paragraph selectors rather than child combinators: the Visual Builder wraps
   the text in an extra editing element. */
.rap-page__aside .rap-stat .et_pb_text_inner p:first-child {
	color: var(--ink-muted); font-size: 0.82rem; font-weight: 700; line-height: 1.8;
	letter-spacing: 0.04em; text-transform: uppercase;
}
.rap-page__aside .rap-stat .et_pb_text_inner p + p {
	margin: 6px 0 0; font-size: 1.05rem; line-height: 1.75; color: var(--ink);
}
.rap-page__portrait .et_pb_image_wrap { display: block; }

/* About — portrait beside editorial prose. */
.rap-about__layout {
	display: grid;
	gap: clamp(32px, 5vw, 72px);
	grid-template-columns: 1fr;
	align-items: start;
}
@media (min-width: 900px) {
	.rap-about__layout {
		grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.5fr);
	}
}
.rap-about__portrait {
	margin: 0;
	border: 1px solid var(--line);
	background: var(--surface);
	box-shadow: 0 24px 48px -32px rgba(12, 12, 23, 0.22);
}
.rap-about__portrait img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	vertical-align: middle;
}
@media (min-width: 900px) {
	.rap-about__portrait {
		position: sticky;
		top: calc(var(--rap-header-h, 76px) + 24px);
	}
}

/* Services grid */
.rap-services {
	display: grid; gap: clamp(20px, 3vw, 36px);
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.rap-service {
	border: 1px solid var(--line); border-radius: 6px;
	padding: clamp(24px, 3vw, 40px);
	background: linear-gradient(160deg, rgba(159,178,204,0.05), transparent 55%), var(--surface);
	transition: border-color 0.4s var(--ease-lux), transform 0.4s var(--ease-lux);
}
.rap-service:hover { border-color: var(--accent); transform: translateY(-4px); }
.rap-service__num { display: block; color: var(--accent); font-size: 0.9rem; letter-spacing: 0.1em; margin-block-end: 14px; }
.rap-service h3 { font-size: 1.5rem; margin: 0 0 10px; }
.rap-service p { color: var(--ink-muted); line-height: 1.7; }

/* Contact */
.rap-contact { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .rap-contact { grid-template-columns: 1.3fr 1fr; } }
.rap-contact__details {
	border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
	padding: clamp(28px, 3.5vw, 48px); display: grid; gap: 22px;
}
.rap-contact__row { display: grid; gap: 4px; }
.rap-contact__row dt { color: var(--ink-muted); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; }
.rap-contact__row dd { margin: 0; font-size: 1.1rem; }
.rap-contact__row a { color: var(--ink); text-decoration: none; border-block-end: 1px solid transparent; transition: border-color 0.3s var(--ease-lux); }
.rap-contact__row a:hover { border-block-end-color: var(--accent); }
.rap-contact__cta { margin-block-start: 6px; }

/* =====================================================================
 * Home splash — the mark over project imagery that draws itself in as a
 * line trace and then develops into the finished render.
 *
 * Three frames share one 18s timeline, each staggered by 6s: the frame
 * fades in as a white edge trace on the dark ground, the photograph
 * dissolves over it, it holds, then hands off to the next. Pure CSS, so
 * nothing here waits on JS or a third-party host.
 * ===================================================================== */
.rap-splash {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: var(--bg);
}
.rap-splash__frame {
	position: absolute;
	inset: 0;
	opacity: 0;
	animation: rap-splash-frame 18s var(--ease-lux) infinite;
	animation-delay: calc(var(--rap-splash-i, 0) * 6s);
	will-change: opacity, transform;
}
.rap-splash__line,
.rap-splash__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.rap-splash__photo {
	opacity: 0;
	animation: rap-splash-develop 18s var(--ease-lux) infinite;
	animation-delay: calc(var(--rap-splash-i, 0) * 6s);
}

@keyframes rap-splash-frame {
	0%   { opacity: 0; transform: scale(1.075); }
	3%   { opacity: 1; }
	30%  { opacity: 1; }
	34%  { opacity: 0; transform: scale(1); }
	100% { opacity: 0; transform: scale(1); }
}
@keyframes rap-splash-develop {
	0%   { opacity: 0; }
	8%   { opacity: 0; }
	21%  { opacity: 1; }
	34%  { opacity: 1; }
	100% { opacity: 0; }
}

/* A still pinned in the SDA Hero Media module: no sequence, no animation. */
.rap-splash--pinned .rap-splash__frame { opacity: 1; animation: none; }
.rap-splash--pinned .rap-splash__photo { opacity: 1; animation: rap-hero-settle 14s var(--ease-lux) both; }

/* The splash carries the page name, so the wordmark IS the h1. */
.rap-splash__brand {
	margin: 0;
	font-size: 0;
	line-height: 0;
}
.rap-splash__mark {
	width: clamp(230px, 34vw, 560px);
	height: auto;
	opacity: 0;
	animation: rap-splash-mark 1.6s var(--ease-lux) 0.25s forwards;
	filter: drop-shadow(0 2px 30px rgba(10, 11, 13, 0.55));
}
@keyframes rap-splash-mark {
	from { opacity: 0; transform: translateY(14px); letter-spacing: 0; }
	to   { opacity: 1; transform: none; }
}

/* The render is the point, so the splash scrim is far lighter than the video
   hero's: a pool of shade behind the mark, dark edges to hold the nav and the
   hand-off to the footer, and the middle of the frame left bright. */
.rap-hero--splash .rap-hero__scrim {
	background:
		radial-gradient(64% 52% at 50% 50%, rgba(10, 11, 13, 0.50) 0%, rgba(10, 11, 13, 0.14) 62%, rgba(10, 11, 13, 0) 100%),
		linear-gradient(180deg, rgba(10, 11, 13, 0.58) 0%, rgba(10, 11, 13, 0.06) 30%, rgba(10, 11, 13, 0.08) 64%, rgba(10, 11, 13, 0.58) 100%);
}

/* The splash is the whole home page, so it owns the full viewport and needs
   no top padding pushing the mark off centre. */
.rap-hero--splash { height: 100svh; }
.rap-hero--splash .rap-hero__inner { padding-block-start: 0; }

/* Motion sensitivity: hold the first frame, fully developed, and stop. */
@media (prefers-reduced-motion: reduce) {
	.rap-splash__frame { animation: none; opacity: 0; }
	.rap-splash__frame:first-child { opacity: 1; }
	.rap-splash__photo { animation: none; opacity: 1; }
	.rap-splash__mark { animation: none; opacity: 1; }
}

/* =====================================================================
 * Brand watermark — the mark, large and quiet, behind every page but the
 * home splash (which already carries it full size).
 *
 * It rides on #et-main-area's own background rather than a positioned
 * element: Divi paints an opaque background on the content wrappers, so a
 * DOM layer would need z-index surgery on every one of them to stay behind
 * the text. The opacity is baked into roni-watermark.svg.
 * ===================================================================== */
body:not(.home) #et-main-area {
	background-image: url("assets/img/roni-watermark.svg") !important;
	background-repeat: no-repeat !important;
	background-position: left -14vmin center !important;
	background-size: min(80vmin, 700px) auto !important;
	background-attachment: fixed !important;
}
[dir="ltr"] body:not(.home) #et-main-area,
body:not(.home)[dir="ltr"] #et-main-area {
	background-position: right -14vmin center !important;
}
/* Phones: the fixed attachment is a scroll cost on mobile and the mark
   crowds a narrow column, so it sits smaller, scrolls with the page, and
   tucks further off the edge. */
@media (max-width: 781px) {
	body:not(.home) #et-main-area {
		background-position: left -24vmin center !important;
		background-size: 66vmin auto !important;
		background-attachment: scroll !important;
	}
}
@media print {
	body:not(.home) #et-main-area { background-image: none !important; }
}

/* Instagram in the footer — a quiet second action under the contact CTA. */
.rap-footer__social {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--ink-muted);
	text-decoration: none;
	font-size: 0.92rem;
	letter-spacing: 0.02em;
	transition: color 0.3s var(--ease-lux);
}
.rap-footer__social:hover,
.rap-footer__social:focus-visible { color: var(--ink); }
.rap-footer__social .rap-social__icon { flex: 0 0 auto; }

/* Contact page with no prose column: one panel, held to a readable width and
   sitting at the start of the rail rather than stretched across it. */
.rap-contact--compact { grid-template-columns: 1fr; }
@media (min-width: 900px) {
	/* One panel under a centred head reads as lopsided pinned to the rail. */
	.rap-contact--compact { grid-template-columns: minmax(0, 520px); justify-content: center; }
}
.rap-page--contact .rap-page__head { margin-block-end: clamp(28px, 4vw, 52px); }
.rap-contact__row dd[dir="ltr"] { text-align: start; }

/* The studio portrait in a page aside (About). It borrows .rap-about__portrait
   for the frame, but not that layout's sticky behaviour: inside the aside the
   sticky box travels down over the stat list below it as the page scrolls, so
   the portrait stays where it was placed. */
.rap-page__aside .rap-page__portrait {
	position: static;
	margin: 0 0 6px;
}

/* Service card that points at its own page. */
.rap-service__link { margin-block-start: 16px; }
.rap-service__link a {
	color: var(--ink);
	text-decoration: none;
	font-size: 0.92rem;
	letter-spacing: 0.02em;
	border-block-end: 1px solid var(--line);
	padding-block-end: 3px;
	transition: border-color 0.3s var(--ease-lux);
}
.rap-service__link a:hover,
.rap-service__link a:focus-visible { border-block-end-color: var(--accent); }

/* =====================================================================
 * Direction, from the document rather than from Divi's cache.
 *
 * Projects are language-neutral, so an English visitor reads them at
 * /projects/?sda_lang=en. <html dir> is correct there, but Divi inlines its
 * critical CSS from a cache keyed without the language, so the Hebrew
 * build's `body { direction: rtl }` can be served to an English request and
 * flip the whole page. The document's own dir attribute is the authority.
 * ===================================================================== */
html[dir="ltr"] body {
	direction: ltr;
	unicode-bidi: normal;
}
html[dir="rtl"] body {
	direction: rtl;
	unicode-bidi: embed;
}

/* =====================================================================
 * Phones: the page reads as one centred column, the way the client wall
 * does. The furniture centres — card numbers and titles, stat labels,
 * contact rows, headings inside prose — but paragraphs keep their start
 * edge: a ragged left AND right on a narrow Hebrew column is markedly
 * harder to scan than the alignment gains back.
 * ===================================================================== */
@media (max-width: 899px) {
	.rap-service__num,
	.rap-service h3,
	.rap-service__link,
	.rap-prose h3,
	.rap-page__aside .rap-stat dt,
	.rap-page__aside .rap-stat dd,
	.et_pb_text.rap-stat,
	.rap-contact__row dt,
	.rap-contact__row dd {
		text-align: center;
	}
	.rap-contact__row dd[dir="ltr"] { text-align: center; }
	.rap-about__portrait,
	.rap-page__portrait { margin-inline: auto; }
}

/* =====================================================================
 * Page-to-page transition.
 *
 * Cross-document view transitions: the browser snapshots the old page,
 * fades it out and lifts the new one in. Nothing intercepts the click, so
 * the back button, middle-click and keyboard navigation are untouched, and
 * a browser without support just navigates the way it always did.
 *
 * The header and footer carry their own names, so they stay put while the
 * content between them changes. Without that the whole viewport crossfades
 * and the nav appears to blink on every click.
 * ===================================================================== */
@view-transition {
	navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 0.4s;
	animation-timing-function: var(--ease-lux);
	animation-fill-mode: both;
	/* The two snapshots share the frame; overlapping them keeps the ground
	   from flashing through between the outgoing and incoming page. */
	mix-blend-mode: normal;
}

::view-transition-old(root) {
	animation-name: rap-page-leave;
}

::view-transition-new(root) {
	animation-name: rap-page-enter;
}

@keyframes rap-page-leave {
	from { opacity: 1; transform: translateY(0); }
	to   { opacity: 0; transform: translateY(-10px); }
}

@keyframes rap-page-enter {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Site chrome is continuous across the navigation, not part of the swap. */
.rap-header { view-transition-name: rap-header; }
.rap-footer { view-transition-name: rap-footer; }

@media (prefers-reduced-motion: reduce) {
	@view-transition {
		navigation: none;
	}
}

/* The projects archive loads as you scroll; the button is the control of
   record, and the numbered links stay in the markup for the no-JS path. */
.rap-archive__loader {
	display: grid;
	justify-items: center;
	gap: 10px;
	margin-top: clamp(32px, 5vw, 64px);
}
.rap-archive__more {
	padding: 13px 32px;
	border: 1px solid var(--line);
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: 0.92rem;
	letter-spacing: 0.06em;
	cursor: pointer;
	transition: border-color 0.3s var(--ease-lux), background 0.3s var(--ease-lux), color 0.3s var(--ease-lux);
}
.rap-archive__more:hover,
.rap-archive__more:focus-visible {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--bg);
}
.rap-archive__more[disabled] { opacity: 0.55; cursor: default; }
.rap-archive__status {
	margin: 0;
	color: var(--ink-muted);
	font-size: 0.88rem;
}

/* =====================================================================
 * Maker credit — verbatim from the shomrondavid.co.il brand embed
 * (branding/embed/made-by-*.html). Lifted here so the footer does not
 * print a <style> block on every page; the rules are unchanged so a
 * future version of the embed can be diffed straight against this.
 * ===================================================================== */
a.sjd-credit{display:inline-flex;align-items:center;gap:.5em;
  font:500 13px/1 Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:inherit;text-decoration:none!important;letter-spacing:.01em;
  opacity:.7;transition:opacity .15s ease;vertical-align:middle}
a.sjd-credit:hover,a.sjd-credit:focus-visible{opacity:1}
a.sjd-credit>.sjd-credit__label{white-space:nowrap;font:inherit;color:inherit}
a.sjd-credit>.sjd-credit__mark{display:block;height:1.25em;flex:none}
a.sjd-credit>.sjd-credit__mark>svg{display:block;height:100%;width:auto}
/* Surface modes. Omit all three to inherit the host footer's colour.
   These carry !important so a host rule like a{color:blue!important} cannot
   drag the mark off-brand. The label deliberately adopts the host's typeface;
   the mark is an SVG and stays put either way. */
a.sjd-credit.sjd-credit--light{color:var(--sjd-ink,#181818)!important}
a.sjd-credit.sjd-credit--dark{color:var(--sjd-canvas,#ffffff)!important}
/* For a coloured surface, including the brand red, where a #da291c dot would
   disappear into the background. Puts the whole mark in one colour. */
a.sjd-credit.sjd-credit--mono{--sjd-dot:currentColor}

/* The cookie-settings button is fixed to the bottom of the viewport and lands
   on the footer's last row once the page is scrolled to the end, which is
   exactly when that row is being read. Clear it so the maker credit's mark is
   never sitting underneath it. */
.rap-footer__bottom { padding-block-end: 72px; }

/* The footer's last row is three peers: copyright, sitemap, maker credit.
   They were set at three different sizes (0.82rem / 0.72rem uppercase / the
   embed's own 13px) and Divi's `p { padding-bottom: 1em }` was inflating the
   copyright's box, so the row read as misaligned even though the grid was
   centring all three. One size, one tone, no inherited padding. */
.rap-footer__bottom {
	font-size: 0.95rem;
	column-gap: clamp(20px, 3vw, 40px);
}
.rap-footer__bottom p {
	margin: 0;
	padding: 0;
	line-height: 1.5;
}
.rap-footer__copy {
	color: var(--ink-muted);
	font-size: inherit;
}
.rap-footer__meta a {
	font-size: inherit;
	letter-spacing: 0.03em;
	/* Hebrew has no uppercase, so the transform only ever fired on the English
	   side and made this one item shout. */
	text-transform: none;
}
/* The embed asks to be resized through font-size on .sjd-credit. */
.rap-footer__credit .sjd-credit { font-size: inherit; }

/* The dark-zone rule (`#page-container .rap-footer :where(p, span, …)`) sets
   these back to full-strength ink, so the muted tone has to match its weight. */
#page-container .rap-footer .rap-footer__copy { color: var(--ink-muted); }
#page-container .rap-footer .rap-footer__meta a { line-height: 1.5; }

/* =====================================================================
 * Touch targets.
 *
 * WCAG 2.5.8 asks for 24x24 CSS px; several standalone controls here sat
 * under it — the language switcher worst of all at 13px tall. These add hit
 * area through padding and min-height, so nothing moves visually beyond the
 * spacing noted, and the inline links inside prose are left alone (they are
 * covered by the spec's inline exception).
 * ===================================================================== */

/* The language toggle is a primary header control and was the smallest thing
   on the site. Its rail is already tall enough to hold a full-size target. */
.rap-lang .sda-lang-switcher__item {
	min-height: 40px;
	padding-inline: 4px;
}

@media (max-width: 899px) {
	/* Footer: stacked links, so height is free — take it from the gap. */
	.rap-footer__list { gap: 2px; }
	.rap-footer__list a,
	.rap-footer__meta a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
	.rap-footer__social { min-height: 44px; }
	.rap-footer__bottom .sjd-credit { min-height: 44px; }

	/* Contact page: the email, phone and Instagram are the point of the page. */
	.rap-contact__row dd a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	/* The card's own link, inside a tile that is already tappable.
	   min-height needs a flex/block box to act on, hence the display. */
	.rap-card__page,
	.rap-service__link a,
	.rap-article__cta {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	/* Breadcrumbs on a project: "בית" is a three-letter word, so the link
	   was 20px wide before any padding. */
	.rap-breadcrumbs a {
		display: inline-flex;
		align-items: center;
		min-height: 32px;
		padding-inline: 5px;
	}

	/* The sitemap is nothing but links, stacked densely. */
	.rap-sitemap__list { gap: 2px; }
	.rap-sitemap__list a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
}

/* Measure. The prose track is a fraction of a 1600px rail, so on a large
   screen a paragraph ran past 105 characters a line — far beyond the point
   where the eye reliably finds the next line. The column keeps its position;
   only the text stops growing. */
.rap-prose { max-width: 72ch; }
