/* ==========================================================================
   Adar Portfolio · main styles
   ========================================================================== */

:root {
	--bg: #ffffff;
	--fg: #0c0c0c;
	--muted: #6b6b6b;
	--line: #d0d0d0;
	--tag: #b5b5b5;
	--pill: rgba(245, 245, 245, 0.86);
	--btn: #ededed;
	--yellow: #ffd60a;
	--gutter: clamp(16px, 5vw, 72px);
	--max: 1440px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--sans: 'Heebo', system-ui, sans-serif;
	--serif: 'Frank Ruhl Libre', Georgia, serif;
}

.theme-grey {
	--bg: #e4e4e4;
	--muted: #5f5f5f;
	--line: #c2c2c2;
	--tag: #9a9a9a;
	--pill: rgba(214, 214, 214, 0.86);
	--btn: #d2d2d2;
}

.theme-dark {
	--bg: #0c0c0c;
	--fg: #ffffff;
	--muted: #9a9a9a;
	--line: #3a3a3a;
	--tag: #5a5a5a;
	--pill: rgba(38, 38, 38, 0.86);
	--btn: #2a2a2a;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--muted); }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
	position: absolute; top: -100px; right: 16px; z-index: 100;
	background: var(--fg); color: var(--bg); padding: 10px 16px;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.wrap {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.label { font-family: var(--sans); font-size: 17px; font-weight: 500; letter-spacing: 0; }

/* ---------- Header / floating pill ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	height: 88px;
	display: flex; justify-content: center;
	pointer-events: none;
}
.nav-pill {
	pointer-events: auto;
	position: relative;
	width: 100%; max-width: var(--max);
	height: 88px;
	margin-top: 0;
	padding-inline: var(--gutter);
	display: flex; align-items: center; justify-content: space-between;
	border-radius: 0;
	background: var(--bg);
	transition: width 650ms var(--ease), height 650ms var(--ease), margin 650ms var(--ease),
		padding 650ms var(--ease), border-radius 650ms var(--ease), background-color 300ms ease;
}
.site-header.is-scrolled .nav-pill {
	width: min(820px, calc(100% - 32px));
	height: 60px;
	margin-top: 16px;
	padding-inline: 28px 20px;
	border-radius: 40px;
	background: var(--pill);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
}
.brand { font-size: 24px; font-weight: 600; letter-spacing: -0.5px; color: var(--fg); }
.brand:hover { color: var(--fg); }
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 28px; width: auto; display: block; transition: height 650ms var(--ease); }
.site-header.is-scrolled .brand__logo { height: 22px; }
.brand__logo--dark { display: none; }
.theme-dark .brand__logo--light { display: none; }
.theme-dark .brand__logo--dark { display: block; }
.nav__list { display: flex; gap: 36px; font-size: 19px; }
.nav__list a { color: var(--muted); }
.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a { color: var(--fg); }
.nav-toggle { display: none; }

/* ---------- Hero slider ---------- */
.hero {
	position: relative;
	height: calc(100svh - 88px);
	min-height: 520px;
	max-height: 1000px;
	overflow: hidden;
	background: #1d2a3a;
	color: #fff;
}
.hero__slide {
	position: absolute; inset: 0;
	background: var(--ph, #1d2a3a);
	opacity: 0;
	transition: opacity 900ms ease;
	color: #fff;
}
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide:hover { color: #fff; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after {
	content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
}
.hero__caption {
	position: absolute; z-index: 2;
	right: var(--gutter); bottom: 56px;
	max-width: min(760px, 70%);
	display: flex; flex-direction: column; gap: 8px;
}
.hero__name { font-size: 20px; font-weight: 500; }
.hero__line { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.12; letter-spacing: -0.5px; }
.hero__count {
	position: absolute; z-index: 2;
	left: var(--gutter); bottom: 56px;
	font-size: clamp(20px, 2vw, 30px);
	direction: ltr;
}

/* ---------- Statements ---------- */
.statement-block { padding-block: clamp(80px, 10vw, 140px) clamp(64px, 8vw, 120px); }
.statement-block--tight { padding-top: 0; }
.statement {
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(40px, 6.4vw, 92px);
	line-height: 1.08;
	letter-spacing: -1px;
	max-width: 1240px;
}
.statement .label { vertical-align: middle; margin-left: 20px; }
.statement--page { font-size: clamp(36px, 5.3vw, 76px); line-height: 1.12; letter-spacing: -0.5px; max-width: 1200px; }
.statement--md { font-size: clamp(32px, 4.4vw, 64px); line-height: 1.15; }
.u-line {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 0.16em;
}
.page-intro { padding-block: clamp(100px, 12vw, 180px) clamp(64px, 8vw, 120px); }

/* ---------- Showreel ---------- */
.reel-block { padding-bottom: clamp(96px, 11vw, 160px); }
.reel {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #8d8d8d;
	overflow: hidden;
	display: flex; align-items: center; justify-content: space-between;
	padding-inline: 36px;
	color: #fff;
	font-size: clamp(18px, 1.8vw, 26px);
}
.reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__side, .reel__play { position: relative; z-index: 1; }
.reel__play {
	width: clamp(64px, 8vw, 120px); height: clamp(64px, 8vw, 120px);
	border: 0; background: transparent; padding: 0; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: transform 300ms var(--ease);
}
.reel__play:hover { transform: scale(1.08); }
.reel__play svg { width: 70%; height: 80%; fill: var(--yellow); }
.reel.is-playing .reel__play, .reel.is-playing .reel__side { opacity: 0; pointer-events: none; }

/* ---------- Section heads ---------- */
.section-head {
	border-top: 1px solid var(--fg);
	padding-top: 18px;
	margin-bottom: clamp(56px, 8vw, 120px);
	display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
}
.section-head h2 { font-size: clamp(34px, 3.8vw, 54px); font-weight: 400; letter-spacing: -0.5px; line-height: 1.1; }
.text-link { font-size: 18px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Work grid ---------- */
.work-block { padding-bottom: clamp(100px, 12vw, 180px); }
.grid-work { display: flex; flex-direction: column; gap: clamp(72px, 10vw, 140px); }
.row--pair { display: flex; justify-content: space-between; align-items: flex-start; }
.card { display: flex; flex-direction: column; color: var(--fg); }
.card:hover { color: var(--fg); }
.card--lg { width: 54%; }
.card--sm { width: 36.3%; }
.row--pair .card:nth-child(2) { margin-top: clamp(40px, 11vw, 160px); }
.row--flip .card:nth-child(2) { margin-top: clamp(32px, 7.6vw, 110px); }
.card--full { width: 100%; }
.card--third { width: 100%; }
.card__title { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; margin-top: 28px; }
.card__sub { font-size: clamp(20px, 1.8vw, 26px); color: var(--muted); margin-top: 4px; line-height: 1.3; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 15px; color: var(--muted); }
.tag { border: 1px solid var(--tag); border-radius: 30px; padding: 3px 14px; }
.tag--sector { border-radius: 0; padding-inline: 18px; }
.card.is-hidden { display: none; }

/* media box */
.media {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	background: var(--ph, #2a2a2a);
	overflow: hidden;
}
.card--full .media, .media--wide { aspect-ratio: 16 / 9; }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media--bw img { filter: grayscale(1); }

/* image fade-in */
.js .fade-img { opacity: 0; transition: opacity 1s ease; }
.js .fade-img.is-loaded { opacity: 1; }

/* ---------- Filter (work page) ---------- */
.filter-bar { padding-bottom: clamp(56px, 7vw, 100px); display: flex; flex-direction: column; gap: 28px; }
.filter-bar__meta {
	display: flex; justify-content: space-between;
	border-bottom: 1px solid var(--line); padding-bottom: 14px;
	font-size: 15px; color: var(--muted);
}
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
	min-height: 44px; padding: 0 22px; border-radius: 30px;
	border: 1px solid var(--tag); background: transparent; color: var(--fg);
	font-size: 17px; cursor: pointer;
	transition: background 250ms ease, color 250ms ease, border-color 250ms ease;
}
.chip.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- Déclic / clients ---------- */
.declic-block { padding-bottom: clamp(96px, 11vw, 160px); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px); }
.serif-lg { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3vw, 44px); line-height: 1.22; }
.line-list { font-size: clamp(19px, 1.7vw, 24px); margin-bottom: 28px; }
.line-list li { border-bottom: 1px solid var(--line); padding: 18px 0; }
.clients-block { padding-bottom: clamp(100px, 12vw, 180px); display: flex; flex-direction: column; gap: 36px; }
.clients {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid var(--line);
	font-size: clamp(17px, 1.5vw, 22px); color: var(--muted);
}
.clients li { padding: 24px 0; border-bottom: 1px solid var(--line); padding-left: 16px; }

/* ---------- Buttons ---------- */
.btn {
	align-self: flex-start;
	display: inline-flex; align-items: center;
	min-height: 52px; padding: 0 28px;
	border-radius: 30px; border: 0;
	background: var(--btn); color: var(--fg);
	font-size: 18px; cursor: pointer;
	transition: background 250ms ease;
}
.btn:hover { color: var(--fg); background: var(--tag); }

/* ---------- Project page ---------- */
.project-hero { padding-top: 12px; }
.project-info {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(40px, 7vw, 96px); row-gap: 64px;
	padding-block: clamp(72px, 8vw, 110px) clamp(96px, 10vw, 140px);
}
.project-side { display: flex; flex-direction: column; gap: 22px; }
.project-title { font-size: 32px; font-weight: 500; line-height: 1.2; }
.meta-item__k { font-size: 15px; color: var(--muted); }
.stats { display: flex; flex-direction: column; gap: 44px; margin-block: 32px 12px; }
.stat__n { font-size: clamp(56px, 6vw, 88px); line-height: 1; text-align: right; }
.stat__t { font-size: 18px; color: var(--muted); margin-top: 6px; }
.project-story { display: flex; flex-direction: column; gap: 28px; }
.project-story__head { font-size: clamp(26px, 2.4vw, 34px); font-weight: 400; line-height: 1.25; }
.story { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.5; }
.story > * + * { margin-top: 1em; }
.story h2, .story h3 { font-family: var(--sans); font-weight: 500; font-size: 1em; margin-top: 1.6em; }
.story.is-collapsed > .is-extra { display: none; }
.story.is-collapsed > .is-fade { color: var(--muted); }
.gallery { display: flex; flex-direction: column; gap: 20px; }
.gallery__row--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gallery__row--wide .media { aspect-ratio: 16 / 9; }
.gallery__row--pair .media { aspect-ratio: 4 / 5; }
.quote { padding-block: clamp(100px, 12vw, 180px); }
.quote p { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.25; max-width: 1100px; }
.quote cite { display: block; margin-top: 28px; font-style: normal; font-size: 18px; color: var(--muted); }
.related { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(100px, 12vw, 160px); }
.related .section-head { border-color: var(--fg); }
.related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }

/* ---------- About ---------- */
.steps {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	padding-bottom: clamp(100px, 12vw, 180px);
}
.step { padding-left: 32px; display: flex; flex-direction: column; gap: 22px; }
.step + .step { border-right: 1px solid var(--fg); padding-right: 32px; }
.dot { width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); }
.step__t { font-size: clamp(28px, 2.6vw, 38px); font-weight: 400; line-height: 1.15; }
.step__d { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--muted); }
.timeline-block { padding-bottom: clamp(100px, 12vw, 180px); }
.timeline li {
	display: grid; grid-template-columns: 1fr 2fr 2fr; gap: 40px;
	padding: 24px 0; border-bottom: 1px solid var(--line);
	font-size: clamp(17px, 1.5vw, 22px);
}
.timeline__y, .timeline__o { color: var(--muted); }
.page-content { padding-bottom: clamp(80px, 10vw, 140px); font-size: 20px; max-width: 900px; margin-inline: 0; }
.page-content > * + * { margin-top: 1em; }

/* ---------- Contact ---------- */
.contact-image { padding-bottom: clamp(80px, 10vw, 140px); }
.contact-block { padding-bottom: clamp(100px, 12vw, 160px); }
.contact-grid {
	border-top: 1px solid var(--line);
	padding-top: 60px;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px;
}
.contact-city { font-size: clamp(44px, 5.3vw, 76px); line-height: 1; }
.contact-col { display: flex; flex-direction: column; gap: 44px; }
.contact-item { font-size: 19px; line-height: 1.6; }
.contact-item__k { font-size: 26px; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; margin-bottom: 8px; }
.coords {
	display: flex; align-items: center; gap: 24px;
	margin-top: 70px; margin-right: calc((100% - 80px) / 3 + 40px);
	font-size: clamp(36px, 5.3vw, 76px);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--yellow); color: #0c0c0c; padding-top: clamp(72px, 8vw, 110px); overflow: hidden; }

.site-footer a { color: #0c0c0c; }
.site-footer a:hover { color: #5c4d00; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(64px, 8vw, 110px); }
.footer__cta { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 8.3vw, 120px); line-height: 1; letter-spacing: -1px; }
.footer__contact { display: flex; flex-direction: column; gap: 10px; font-size: clamp(18px, 1.5vw, 22px); text-align: left; }
.footer__bottom {
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	border-top: 1px solid rgba(12, 12, 12, 0.25); padding-top: 24px;
	font-size: 16px; color: #2a2a2a;
}
.footer__links { display: flex; gap: 28px; }
.footer__links a { color: #2a2a2a; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .post-card { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.js .post-card.is-in { opacity: 1; transform: none; }
.js .card { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease), transform 900ms var(--ease), color 0.2s ease; }
.js .card.is-in { opacity: 1; transform: none; }

/* ---------- Cursor dot ---------- */
.cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
	.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
	.has-cursor input, .has-cursor textarea { cursor: text; }
	.cursor-dot {
		display: flex; align-items: center; justify-content: center;
		position: fixed; top: 0; left: 0; z-index: 9999;
		width: 14px; height: 14px; margin: -7px 0 0 -7px;
		border-radius: 50%;
		background: #fff;
		mix-blend-mode: difference;
		pointer-events: none;
		opacity: 0;
		transition: width 350ms var(--ease), height 350ms var(--ease), margin 350ms var(--ease),
			background-color 250ms ease, opacity 200ms ease;
		will-change: transform;
	}
	.cursor-dot.is-visible { opacity: 1; }
	.cursor-dot span { font-size: 15px; font-weight: 500; color: #0c0c0c; opacity: 0; transition: opacity 200ms ease; white-space: nowrap; }
	.cursor-dot.is-big {
		width: 96px; height: 96px; margin: -48px 0 0 -48px;
		background: var(--yellow);
		mix-blend-mode: normal;
	}
	.cursor-dot.is-big span { opacity: 1; }
	.cursor-dot.is-link { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	body { font-size: 17px; }
	.site-header, .nav-pill { height: 68px; }
	.site-header.is-scrolled .nav-pill { height: 54px; margin-top: 10px; padding-inline: 20px 8px; }
	.nav-toggle {
		display: flex; flex-direction: column; justify-content: center; gap: 8px;
		width: 44px; height: 44px; border: 0; background: transparent; padding: 0 10px; cursor: pointer;
	}
	.nav-toggle span { display: block; height: 2px; background: var(--fg); transition: transform 300ms var(--ease); }
	.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }
	.nav {
		position: absolute; top: calc(100% + 8px); right: 12px; left: 12px;
		background: var(--pill);
		-webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
		border-radius: 24px; padding: 20px 24px;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity 250ms ease, transform 250ms var(--ease), visibility 250ms;
	}
	.nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav__list { flex-direction: column; gap: 4px; font-size: 24px; }
	.nav__list a { display: block; padding: 8px 0; color: var(--fg); }
	.hero { height: 78svh; min-height: 460px; }
	.hero__caption { max-width: none; left: var(--gutter); bottom: 72px; }
	.hero__count { bottom: 28px; left: auto; right: var(--gutter); }
	.row--pair { flex-direction: column; gap: 64px; }
	.card--lg, .card--sm { width: 100%; }
	.row--pair .card:nth-child(2), .row--flip .card:nth-child(2) { margin-top: 0; }
	.two-col, .project-info, .contact-grid { grid-template-columns: 1fr; }
	.clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.related__grid { grid-template-columns: 1fr; gap: 56px; }
	.steps { grid-template-columns: 1fr; gap: 48px; }
	.step, .step + .step { border: 0; padding: 0; }
	.timeline li { grid-template-columns: 1fr; gap: 4px; }
	.gallery__row--pair { grid-template-columns: 1fr; }
	.coords { margin-right: 0; margin-top: 48px; }
	.footer__top { flex-direction: column; align-items: flex-start; }
	.footer__contact { text-align: right; }
	.reel { padding-inline: 16px; }
	.reel__side { display: none; }
	.reel { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
	.js .reveal, .js .card { opacity: 1; transform: none; }
}

/* ---------- Fixes ---------- */
[hidden] { display: none !important; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.footer__sign { display: flex; align-items: center; gap: 16px; }
.footer__logo { height: 18px; width: auto; }

/* Footer wordmark (moves on scroll, like Wolff Olins) */
.footer-mark-wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(16px, 2.5vw, 36px); }
.footer-mark { display: block; width: 100%; height: auto; overflow: visible; color: #0c0c0c; }
.footer-mark .fm-l, .footer-mark .fm-dot { transform-box: fill-box; }
.footer-mark .fm-l {
	transform-origin: 50% 100%;
	transform: translateY(85%) scaleY(0.08);
	transition: transform 950ms cubic-bezier(0.34, 1.56, 0.64, 1);
	transition-delay: calc(var(--i, 0) * 90ms);
}
.footer-mark.is-on .fm-l { transform: translateY(0) scaleY(1); }
.footer-mark.is-live .fm-l { transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1); transition-delay: 0ms; }
.footer-mark .fm-dot {
	transform-origin: 50% 100%;
	transform: translateY(-900%);
	opacity: 0;
	transition: transform 800ms cubic-bezier(0.34, 1.9, 0.64, 1) 650ms, opacity 150ms linear 650ms;
}
.footer-mark.is-on .fm-dot { transform: translateY(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .footer-mark .fm-l, .footer-mark .fm-dot { transform: none !important; opacity: 1 !important; transition: none !important; } }

/* ---------- Thinking (posts) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: clamp(20px, 3.4vw, 48px); }
.tab {
	border: 0; background: none; padding: 4px 0; cursor: pointer;
	font-size: clamp(24px, 2.6vw, 38px); color: var(--fg); line-height: 1.2;
	border-bottom: 2px solid transparent; transition: border-color 250ms ease, color 250ms ease;
}
.tab:hover { color: var(--muted); }
.tab.is-active { border-bottom-color: var(--fg); }
.thinking-block, .latest-block { padding-bottom: clamp(100px, 12vw, 160px); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(56px, 6vw, 88px) clamp(20px, 2.8vw, 40px); }
.post-card { display: flex; flex-direction: column; gap: 14px; color: var(--fg); }
.post-card:hover { color: var(--fg); }
.post-card.is-hidden { display: none; }
.post-card__media {
	position: relative; display: block; width: 100%; aspect-ratio: 1 / 1;
	background: var(--ph, #cfcfcf); overflow: hidden; margin-bottom: 8px;
}
.post-card__media.is-round { border-radius: 50%; }
.post-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 400ms ease; }
.post-card__hover {
	position: absolute; inset: 0; display: flex; align-items: center; overflow: hidden;
	background: var(--yellow); mix-blend-mode: multiply;
	opacity: 0; transition: opacity 350ms ease;
}
.post-card:hover .post-card__hover, .post-card:focus-visible .post-card__hover { opacity: 1; }
.post-card:hover img { filter: grayscale(1) contrast(1.1); }
.marquee { display: flex; white-space: nowrap; font-size: clamp(34px, 4vw, 60px); line-height: 1; color: #0c0c0c; direction: rtl; }
.marquee > span { flex-shrink: 0; padding-left: 0.3em; animation: adar-marquee 9s linear infinite; }
@keyframes adar-marquee { from { transform: translateX(0); } to { transform: translateX(100%); } }
.badge { position: relative; align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; min-width: 110px; height: 38px; padding: 0 26px; font-size: 16px; color: var(--fg); }
.badge__shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.badge__t { position: relative; }
.post-card__title { font-size: clamp(19px, 1.6vw, 23px); font-weight: 500; line-height: 1.3; }
.post-card__title .ext { font-weight: 400; }
.post-card__excerpt {
	font-size: clamp(18px, 1.5vw, 22px); color: var(--muted); line-height: 1.35;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.empty-note { font-size: 22px; color: var(--muted); }
.article__head { padding-block: clamp(100px, 12vw, 170px) clamp(48px, 6vw, 80px); display: flex; flex-direction: column; gap: 28px; }
.article__title { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 5vw, 72px); line-height: 1.1; max-width: 1100px; }
.article__lead { font-size: clamp(20px, 1.9vw, 27px); color: var(--muted); max-width: 900px; line-height: 1.4; }
.article__meta { font-size: 15px; color: var(--muted); }
.article__image { padding-bottom: clamp(56px, 7vw, 100px); }
.article__body { max-width: 760px; margin-right: auto; margin-left: 0; font-family: var(--serif); font-size: clamp(20px, 1.7vw, 24px); line-height: 1.65; padding-bottom: clamp(96px, 11vw, 150px); }
.article__body > * + * { margin-top: 1.1em; }
.article__body h2, .article__body h3 { font-family: var(--sans); font-weight: 500; font-size: 1.15em; margin-top: 2em; }
.article__body blockquote { margin: 1.6em 0; padding: 0; font-size: 1.4em; line-height: 1.3; }
.article__body img { height: auto; }
.article__body a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) {
	.post-grid { grid-template-columns: 1fr; }
	.post-card__media { max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) { .marquee > span { animation: none; } }

.contact-lead { display: flex; flex-direction: column; gap: 20px; }
.contact-note { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--muted); max-width: 360px; }
