/*
Theme Name: Sulandya — Architect Portfolio
Theme URI: https://sulandya.art
Author: Sulandya Tahtah
Description: Dark, image-led portfolio and CV theme for Sulandya Tahtah, architect. Portfolio projects with galleries, filterable project types, a CV section with PDF download, an editable one-page home, and Arabic / English support (RTL) with Polylang.
Version: 2.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mimar
Tags: portfolio, one-column, custom-logo, custom-menu, featured-images, rtl-language-support, translation-ready, threaded-comments
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	color-scheme: dark;
	--paper: #0e1211;
	--paper-2: #141a19;
	--paper-3: #1b2322;
	--ink: #ece9e3;
	--ink-2: #b3b9b6;
	--ink-3: #7f8885;
	--line: rgba(236, 233, 227, 0.12);
	--white: #fff;
	--dark: #0e1211;
	--accent: #17a097;
	--accent-2: #3fc4b8;
	--on-accent: #03110f;

	--font-display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
	--font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;

	--gutter: clamp(20px, 4vw, 56px);
	--wrap: 1360px;
	--header-h: 84px;
	--section: clamp(72px, 10vw, 150px);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: clamp(16px, 0.25vw + 15px, 18px);
	line-height: 1.8;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	padding-top: var(--header-h);
}
body.has-overlay-header { padding-top: 0; }
body.nav-open, body.lightbox-open { overflow: hidden; }

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a:hover { color: var(--accent-2); }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 300;
	line-height: 1.25;
	letter-spacing: -0.01em;
	margin: 0 0 0.6em;
}
p { margin: 0 0 1.2em; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
[dir="rtl"] .icon-arrow,
[dir="rtl"] .lightbox__btn svg,
[dir="rtl"] .icon-prev,
[dir="rtl"] .icon-next { transform: scaleX(-1); }
.icon--back { transform: scaleX(-1); }
[dir="rtl"] .icon--back { transform: none; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200;
	background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 2 * var(--gutter)); }

.eyebrow {
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-3);
	margin: 0 0 1em;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 0.85rem; }

/* Buttons */
.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
	display: inline-flex; align-items: center; gap: 0.6em;
	padding: 0.95em 1.6em;
	border: 1px solid var(--accent);
	border-radius: 0;
	background: var(--accent);
	color: var(--on-accent);
	font: 500 0.92rem/1 var(--font-body);
	letter-spacing: 0.02em;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.button:hover, input[type="submit"]:hover, button[type="submit"]:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }
.button .icon { transition: transform 0.3s var(--ease); }
.button:hover .icon-arrow { transform: translateX(4px); }
[dir="rtl"] .button:hover .icon-arrow { transform: scaleX(-1) translateX(4px); }
.button--ghost { background: transparent; color: var(--ink); border-color: rgba(236, 233, 227, 0.35); }
.button--ghost:hover { background: var(--ink); color: var(--dark); border-color: var(--ink); }
.button--light { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.button--light:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }
.button--ghost-light { background: transparent; color: var(--ink); border-color: rgba(236, 233, 227, 0.35); }
.button--ghost-light:hover { background: var(--ink); color: var(--dark); border-color: var(--ink); }

.link-arrow { display: inline-flex; align-items: center; gap: 0.5em; text-decoration: none; font-size: 0.95rem; border-bottom: 1px solid currentColor; padding-bottom: 4px; }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"], input[type="number"], input[type="password"], textarea, select {
	width: 100%;
	padding: 0.85em 1em;
	border: 1px solid var(--line);
	border-radius: 0;
	background: var(--paper-3);
	color: var(--ink);
	font: inherit;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
label { display: block; font-size: 0.9rem; margin-bottom: 0.4em; }

/* Placeholder (no image yet) */
.placeholder {
	position: relative;
	display: flex; align-items: flex-end;
	width: 100%; height: 100%; min-height: 240px;
	padding: 1.2rem;
	background:
		linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
		linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
		var(--paper-2);
	color: var(--ink-3);
	font-size: 0.85rem;
}

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: fixed; inset-inline: 0; top: 0; z-index: 100;
	height: var(--header-h);
	background: rgba(14, 18, 17, 0.88);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
	transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), height 0.4s var(--ease);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: flex; align-items: baseline; gap: 1rem; min-width: 0; position: relative; z-index: 2; }
.brand__name {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.25rem;
	letter-spacing: 0.02em;
	text-decoration: none;
	white-space: nowrap;
}
.brand__tagline { font-size: 0.8rem; color: var(--ink-3); white-space: nowrap; }
.custom-logo { max-height: 48px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.2rem; }
.site-nav .menu > li { position: relative; }
.site-nav .menu a { text-decoration: none; font-size: 0.95rem; padding: 0.4em 0; display: inline-block; position: relative; }
.site-nav .menu > li > a::after {
	content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor;
	transform: scaleX(0); transform-origin: var(--origin, left); transition: transform 0.4s var(--ease);
}
[dir="rtl"] .site-nav .menu > li > a::after { --origin: right; }
.site-nav .menu > li > a:hover::after,
.site-nav .menu > .current-menu-item > a::after { transform: scaleX(1); }
.site-nav .menu a:hover { color: inherit; }
.site-nav .sub-menu {
	list-style: none; margin: 0; padding: 0.8rem 0; position: absolute; inset-inline-start: -1rem; top: 100%;
	min-width: 200px; background: var(--paper); color: var(--ink); border: 1px solid var(--line);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: 0.25s var(--ease);
}
.site-nav .sub-menu a { padding: 0.4rem 1rem; display: block; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .social--nav { display: none; }

.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }

/* Transparent header over hero images */
.has-overlay-header .site-header:not(.is-scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--white); border-color: rgba(255, 255, 255, 0.16); }
.has-overlay-header .site-header:not(.is-scrolled) .brand__tagline { color: rgba(255, 255, 255, 0.75); }
.site-header.is-scrolled { --header-h: 68px; height: 68px; }

@media (max-width: 900px) {
	.brand__tagline { display: none; }
	.nav-toggle { display: inline-flex; position: relative; z-index: 2; }
	.site-nav {
		position: fixed; inset: 0; z-index: 1;
		flex-direction: column; align-items: flex-start; justify-content: center; gap: 3rem;
		padding: var(--header-h) var(--gutter) 2rem;
		background: var(--paper); color: var(--ink);
		opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
	}
	.nav-open .site-nav { opacity: 1; visibility: visible; }
	.nav-open .site-header { color: var(--ink) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: transparent !important; border-color: transparent !important; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.site-nav .menu { flex-direction: column; gap: 0.6rem; }
	.site-nav .menu a { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 8vw, 3rem); }
	.site-nav .menu > li > a::after { display: none; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; color: inherit; padding: 0 1rem; }
	.site-nav .sub-menu a { font-size: 1.2rem; padding: 0.2rem 0; }
	.site-nav .social--nav { display: flex; margin: 0; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(40px, 6vw, 80px) var(--section); }
.section--flush { padding-top: 0; }
.section--alt { background: var(--paper-2); }

.section-head {
	display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 1.5rem 2rem;
	padding-bottom: 1.6rem; margin-bottom: clamp(32px, 5vw, 64px);
	border-bottom: 1px solid var(--line);
}
.section-head--stack { grid-template-columns: auto 1fr; border: 0; padding: 0; margin-bottom: 1.5rem; }
.section-head__num { margin: 0; font-family: var(--font-display); font-size: 0.85rem; color: var(--accent-2); padding-bottom: 0.7em; }
.section-head__title { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); }
@media (max-width: 640px) {
	.section-head { grid-template-columns: auto 1fr; }
	.section-head .link-arrow { grid-column: 1 / -1; justify-self: start; }
}

.empty-note { color: var(--ink-2); padding: 3rem 0; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	min-height: min(92vh, 980px);
	display: flex; align-items: flex-end;
	padding-block: calc(var(--header-h) + 4rem) clamp(64px, 9vw, 120px);
	background:
		linear-gradient(rgba(236, 233, 227, 0.045) 1px, transparent 1px) 0 0 / 80px 80px,
		linear-gradient(90deg, rgba(236, 233, 227, 0.045) 1px, transparent 1px) 0 0 / 80px 80px,
		var(--paper);
	overflow: hidden;
}
.hero--image { color: var(--white); background: var(--paper); min-height: 100vh; min-height: 100svh; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: mimar-zoom 14s var(--ease) both; }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(14, 18, 17, 0.72) 0%, rgba(14, 18, 17, 0.2) 38%, rgba(14, 18, 17, 0.88) 100%);
}
@keyframes mimar-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero__media img { animation: none; } }

.hero__inner { position: relative; z-index: 1; }
.hero--image .hero__eyebrow { color: rgba(255, 255, 255, 0.8); }
.hero__title {
	font-size: clamp(2.3rem, 5vw, 4.6rem);
	font-weight: 200;
	line-height: 1.12;
	max-width: 20ch;
	margin-bottom: 0.45em;
}
[dir="rtl"] .hero__title { line-height: 1.3; font-weight: 300; }
.hero__text { max-width: 46ch; font-size: clamp(1rem, 1.2vw, 1.2rem); color: var(--ink-2); margin-bottom: 2.2rem; }
.hero--image .hero__text { color: rgba(255, 255, 255, 0.85); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero--image .button--ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.hero--image .button--ghost:hover { background: var(--white); color: var(--dark); border-color: var(--white); }

.hero__scroll {
	position: absolute; z-index: 1; bottom: 32px; inset-inline-end: var(--gutter);
	width: 1px; height: 64px; background: currentColor; opacity: 0.35; overflow: hidden;
}
.hero__scroll span { position: absolute; inset: 0; background: var(--accent); animation: mimar-scroll 2.2s var(--ease) infinite; }
@keyframes mimar-scroll { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
@media (max-width: 640px) { .hero__scroll { display: none; } }

/* Page hero (archives, pages) */
.page-hero { padding-block: clamp(56px, 9vw, 130px) clamp(24px, 3vw, 40px); }
.page-hero__title { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 200; margin-bottom: 0.3em; max-width: 20ch; }
.page-hero__intro { max-width: 56ch; color: var(--ink-2); font-size: 1.1rem; }
.page-hero--narrow .page-hero__title { font-size: clamp(2rem, 4.5vw, 3.6rem); }
.page-hero--404 { min-height: 60vh; display: flex; align-items: center; }

.featured-media { margin-bottom: 2rem; }
.featured-media img { width: 100%; }

/* ==========================================================================
   Project cards & grids
   ========================================================================== */
.project-card { margin: 0; }
.project-card[hidden] { display: none; }
.project-card__link { display: block; text-decoration: none; color: inherit; }
.project-card__link:hover { color: inherit; }
.project-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter 0.6s var(--ease); }
.project-card__link:hover .project-card__media img { transform: scale(1.045); }
.project-card__body { padding-top: 1.1rem; }
.project-card__body .eyebrow { margin-bottom: 0.4em; }
.project-card__title { font-size: clamp(1.25rem, 1.6vw, 1.6rem); margin: 0 0 0.2em; transition: color 0.3s; }
.project-card__link:hover .project-card__title { color: var(--accent-2); }
.project-card__meta { color: var(--ink-3); font-size: 0.9rem; margin: 0; }

/* Home: asymmetric grid */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(32px, 4vw, 64px) clamp(20px, 2.5vw, 40px); }
.work-grid > * { grid-column: span 6; }
.work-grid > .project-card--lead { grid-column: 1 / -1; }
.work-grid > .project-card--lead .project-card__media { aspect-ratio: 16 / 9; }
.work-grid > .project-card--lead .project-card__title { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.work-grid > :nth-child(4n + 2) { grid-column: 1 / span 5; }
.work-grid > :nth-child(4n + 3) { grid-column: 7 / span 6; margin-top: clamp(0px, 10vw, 140px); }
.work-grid > :nth-child(4n + 4) { grid-column: 2 / span 6; }
.work-grid > :nth-child(4n + 5):not(.project-card--lead) { grid-column: 8 / span 5; margin-top: clamp(0px, 6vw, 90px); }
@media (max-width: 760px) {
	.work-grid { grid-template-columns: 1fr; }
	.work-grid > * { grid-column: 1 / -1 !important; margin-top: 0 !important; }
}

/* Archive grid */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(36px, 4vw, 60px) clamp(20px, 2.5vw, 36px); }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(32px, 4vw, 56px); }
.filters__btn {
	display: inline-flex; align-items: center; gap: 0.5em;
	padding: 0.55em 1.1em; border: 1px solid var(--line); border-radius: 999px;
	font-size: 0.92rem; text-decoration: none; transition: 0.25s var(--ease);
}
.filters__btn:hover { border-color: var(--accent-2); color: var(--ink); }
.filters__btn.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.filters__count { font-size: 0.75em; opacity: 0.6; }

/* ==========================================================================
   About & services
   ========================================================================== */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(260px, 4fr); gap: clamp(32px, 7vw, 120px); align-items: start; }
.about__text { color: var(--ink-2); font-size: 1.05rem; max-width: 58ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.5rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.stats__item { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font-family: var(--font-display); font-weight: 200; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.1; }
.stats dt { color: var(--ink-3); font-size: 0.85rem; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.services__item { padding: 2rem clamp(16px, 2vw, 32px) 2.4rem; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); transition: background 0.4s var(--ease); }
.services__item:hover { background: var(--paper-2); }
.services__item:last-child { border-inline-end: 0; }
.services__num { display: block; font-family: var(--font-display); color: var(--accent); font-size: 0.85rem; margin-bottom: 3.5rem; }
.services__title { font-size: 1.4rem; font-weight: 400; margin-bottom: 0.5em; }
.services__text { color: var(--ink-2); margin: 0; font-size: 0.97rem; }
@media (max-width: 600px) { .services__item { border-inline-end: 0; } .services__num { margin-bottom: 1.5rem; } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { position: relative; overflow: hidden; background: var(--paper-2); border-top: 1px solid var(--line); }
.contact::before { content: ""; position: absolute; inset-inline-end: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(23, 160, 151, 0.18), transparent); pointer-events: none; }
.contact__inner { position: relative; }
.contact .eyebrow { color: var(--accent-2); }
.contact__inner { display: grid; gap: clamp(32px, 6vw, 96px); }
.contact__inner--form { grid-template-columns: 1fr 1fr; align-items: start; }
.contact__title { font-size: clamp(2.2rem, 5vw, 4.4rem); font-weight: 200; max-width: 16ch; }
.contact__text { color: var(--ink-2); max-width: 46ch; font-size: 1.08rem; margin-bottom: 2.2rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.contact__form { background: var(--paper-3); color: var(--ink); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); }
.contact__form p { margin-bottom: 1rem; }
@media (max-width: 860px) { .contact__inner--form { grid-template-columns: 1fr; } }

/* ==========================================================================
   Single project
   ========================================================================== */
.project-hero { position: relative; padding-block: clamp(56px, 9vw, 130px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.project-hero--image { min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; color: var(--white); padding-top: calc(var(--header-h) + 3rem); border: 0; background: var(--paper); }
.project-hero__media { position: absolute; inset: 0; overflow: hidden; }
.project-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: mimar-zoom 12s var(--ease) both; }
.project-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 18, 17, 0.7), rgba(14, 18, 17, 0.15) 40%, rgba(14, 18, 17, 0.85)); }
.project-hero__inner { position: relative; z-index: 1; }
.project-hero__title { font-size: clamp(2.4rem, 6.5vw, 5.8rem); font-weight: 200; margin: 0; max-width: 18ch; line-height: 1.12; }
[dir="rtl"] .project-hero__title { line-height: 1.3; }
.project-hero--image .eyebrow { color: rgba(255, 255, 255, 0.8); }
.link-back { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.9rem; text-decoration: none; margin-bottom: 2.5rem; opacity: 0.85; }
.link-back:hover { opacity: 1; color: inherit; }

.project-body { display: grid; grid-template-columns: minmax(240px, 4fr) 8fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.project-body > :only-child { grid-column: 1 / -1; max-width: 760px; }
.project-facts { position: sticky; top: calc(var(--header-h) + 24px); }
.project-facts dl { margin: 0; border-top: 1px solid var(--ink); }
.project-facts__row { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.project-facts dt { color: var(--ink-3); }
.project-facts dd { margin: 0; }
.project-content { max-width: 720px; }
.lead { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.55; color: var(--ink); margin-bottom: 1.4em; }
@media (max-width: 860px) {
	.project-body { grid-template-columns: 1fr; }
	.project-facts { position: static; }
}

.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 28px); }
.gallery-grid__item { margin: 0; }
.gallery-grid__item:nth-child(3n + 1),
.gallery-grid__item:nth-child(3n + 2):last-child { grid-column: 1 / -1; }
.gallery-grid__item a { display: block; overflow: hidden; cursor: zoom-in; }
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 1s var(--ease); }
.gallery-grid__item:nth-child(3n + 1) img,
.gallery-grid__item:nth-child(3n + 2):last-child img { aspect-ratio: 16 / 9; }
.gallery-grid__item a:hover img { transform: scale(1.03); }
.gallery-grid__item figcaption { font-size: 0.85rem; color: var(--ink-3); padding-top: 0.6rem; }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: 1fr; } }

.project-nav { border-top: 1px solid var(--line); }
.project-nav__inner { display: grid; grid-template-columns: 1fr 1fr; }
.project-nav__link { display: flex; flex-direction: column; padding: clamp(32px, 5vw, 64px) 0; text-decoration: none; }
.project-nav__link--next { grid-column: 2; text-align: end; align-items: flex-end; padding-inline-start: 1rem; border-inline-start: 1px solid var(--line); }
.project-nav__link--prev { padding-inline-end: 1rem; }
.project-nav__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1.3; }
.project-nav__link:hover .project-nav__title { color: var(--accent-2); }

/* ==========================================================================
   Blog
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 3rem clamp(20px, 2.5vw, 36px); }
.post-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 1.1rem; }
.post-card__media img, .post-card__media .placeholder { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.post-card .eyebrow { margin-bottom: 0.4em; }
.post-card__title { font-size: 1.45rem; margin-bottom: 0.4em; }
.post-card__title a { text-decoration: none; }
.post-card__excerpt { color: var(--ink-2); font-size: 0.97rem; }

.pagination .nav-links { display: flex; gap: 0.4rem; justify-content: center; margin-top: 4rem; }
.pagination .page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); text-decoration: none; }
.pagination .page-numbers.current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ==========================================================================
   Editor content
   ========================================================================== */
.entry-content > * + * { margin-top: 1.2em; }
.entry-content p { margin: 0; }
.entry-content > * + p { margin-top: 1.2em; }
.entry-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 2em; }
.entry-content h3 { font-size: 1.4rem; margin-top: 1.8em; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.3em; }
.entry-content blockquote, .wp-block-quote {
	margin-inline: 0; padding-inline-start: 1.5rem; border-inline-start: 2px solid var(--accent);
	font-family: var(--font-display); font-weight: 300; font-size: 1.35rem; line-height: 1.6;
}
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .wp-element-caption { font-size: 0.85rem; color: var(--ink-3); margin-top: 0.6rem; }
.entry-content img { height: auto; }
.entry-content .alignwide { width: min(1100px, 100vw - 2 * var(--gutter)); margin-inline: 50%; transform: translateX(-50%); }
[dir="rtl"] .entry-content .alignwide { transform: translateX(50%); }
.entry-content .alignfull { width: 100vw; margin-inline: 50%; transform: translateX(-50%); }
[dir="rtl"] .entry-content .alignfull { transform: translateX(50%); }
.project-content .alignwide, .project-content .alignfull { width: 100%; margin-inline: 0; transform: none; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin-block: 3em; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 0.6em; border-bottom: 1px solid var(--line); text-align: start; }
.entry-tags a { display: inline-block; font-size: 0.85rem; padding: 0.3em 0.8em; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; margin: 0 0.2em 0.4em 0; }
.alignleft { float: inline-start; margin-inline-end: 1.5em; }
.alignright { float: inline-end; margin-inline-start: 1.5em; }
.aligncenter { margin-inline: auto; }

.search-form { display: flex; gap: 0.5rem; max-width: 480px; margin-top: 1.5rem; }
.search-form label { flex: 1; margin: 0; }

/* Comments */
.comments { padding-bottom: var(--section); }
.comments__title { font-size: 1.6rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 3rem; }
.comment-list .children { list-style: none; padding-inline-start: 2rem; }
.comment-body { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 0.8rem; }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata { font-size: 0.8rem; color: var(--ink-3); }
.comment-metadata a { text-decoration: none; }
.comment-form p { margin-bottom: 1rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); font-size: 0.95rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: clamp(48px, 6vw, 80px); }
.site-footer__grid--widgets { grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 1000px) { .site-footer__grid, .site-footer__grid--widgets { grid-template-columns: 1fr 1fr; } }
.site-footer__brand .brand__name { font-size: 1.6rem; display: inline-block; margin-bottom: 0.6rem; }
.site-footer__brand p { color: var(--ink-2); max-width: 36ch; }
.site-footer .eyebrow { font-size: 0.75rem; }
.contact-list, .footer-menu, .site-footer .menu { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.7rem; }
.contact-list .icon { margin-top: 0.3em; color: var(--ink-3); }
.contact-list a, .footer-menu a, .site-footer .menu a { text-decoration: none; }
.footer-menu li, .site-footer .menu li { margin-bottom: 0.5rem; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.6rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.85rem; }
.site-footer__bottom p { margin: 0; }
.to-top { text-decoration: none; }
.widget-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-3); font-family: var(--font-body); font-weight: 500; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; gap: 2.2rem; } }

.social { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; gap: 0.5rem; }
.social a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; transition: 0.25s var(--ease); }
.social a:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.social .icon { width: 18px; height: 18px; }

/* ==========================================================================
   Sulandya: logo, language switch, profile card, CV
   ========================================================================== */
.brand { margin-inline-end: auto; }
.brand__logo { display: block; line-height: 0; }
.brand__logo--wordmark img { height: 54px; width: auto; }
.site-header.is-scrolled .brand__logo--wordmark img { height: 44px; }
.site-footer__brand .brand__logo--mark img { height: 110px; width: auto; margin-bottom: 1.2rem; }
.site-nav { order: 2; }
.site-header__tools { order: 3; display: flex; align-items: center; position: relative; z-index: 2; }
.nav-toggle { order: 4; }
@media (max-width: 900px) { .site-header__tools { margin-inline-start: auto; } .site-header__inner { gap: 1rem; } .brand__logo--wordmark img { height: 40px; } }

.lang-switch { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px; padding: 0 0.6em; border-radius: 999px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-decoration: none; color: inherit; opacity: 0.75; transition: 0.25s var(--ease); }
.lang-switch a:hover { opacity: 1; color: inherit; }
.lang-switch .is-current { background: var(--accent); color: var(--on-accent); opacity: 1; }
.lang-switch .is-current:hover { color: var(--on-accent); }
.lang-switch a[lang="ar"] { font-size: 0.95rem; }
.site-header__tools .lang-switch { margin-inline-start: 1.6rem; }
@media (max-width: 900px) { .site-header__tools .lang-switch { margin: 0; } }
.lang-switch--footer { border: 0; padding: 0; }
.has-overlay-header .site-header:not(.is-scrolled) .lang-switch { border-color: rgba(255, 255, 255, 0.35); background: rgba(14, 18, 17, 0.35); }
.has-overlay-header .site-header:not(.is-scrolled) .lang-switch a { opacity: 1; }

/* Hero without photo */
.hero:not(.hero--image)::after { content: ""; position: absolute; inset-inline-end: 0; top: 10%; width: 55%; height: 80%; background: radial-gradient(closest-side, rgba(23, 160, 151, 0.14), transparent); pointer-events: none; }
.hero:not(.hero--image) .hero__inner { z-index: 2; }
.hero__upload { position: absolute; z-index: 3; top: calc(var(--header-h) + 2rem); inset-inline-end: var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 0.4rem; width: min(320px, 70vw); padding: 2rem 1.5rem; border: 1px dashed rgba(63, 196, 184, 0.6); color: var(--accent-2); text-align: center; text-decoration: none; background: rgba(23, 160, 151, 0.06); transition: background 0.25s var(--ease); }
.hero__upload:hover { background: rgba(23, 160, 151, 0.14); color: var(--accent-2); }
.hero__upload .icon { width: 32px; height: 32px; }
.hero__upload span { font-weight: 500; }
.hero__upload small { color: var(--ink-3); font-size: 0.78rem; line-height: 1.5; }
@media (max-width: 900px) { .hero__upload { position: relative; inset: auto; margin: 0 auto 2rem; } .hero:not(.hero--image) { flex-direction: column; justify-content: flex-end; } }

.lang-switch--setup { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.4em 0.9em; border: 1px dashed var(--accent-2); border-radius: 999px; font-size: 0.8rem; color: var(--accent-2); text-decoration: none; }
.lang-switch--setup span { font-size: 0.72rem; opacity: 0.8; }
.lang-switch--setup:hover { color: var(--ink); border-color: var(--ink); }

/* About: small personal photo */
.profile-card { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2.4rem 1.6rem 2rem; background: var(--paper-3); border: 1px solid var(--line); }
.profile-card__photo { width: 148px; height: 148px; border-radius: 50%; overflow: hidden; margin-bottom: 1.2rem; outline: 1px solid var(--accent); outline-offset: 6px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; }
.profile-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-card__photo .profile-card__mark { width: 78%; height: auto; object-fit: contain; }
.profile-card__name { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; margin: 0; }
.profile-card__role { color: var(--accent-2); font-size: 0.9rem; margin: 0.2rem 0 0.8rem; }
.profile-card__place { display: inline-flex; align-items: center; gap: 0.4em; color: var(--ink-3); font-size: 0.85rem; margin-bottom: 1.2rem; }
.profile-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.profile-card__actions .button { padding: 0.8em 1.2em; font-size: 0.85rem; }
.profile-card .social { justify-content: center; margin-top: 1.4rem; }
@media (max-width: 860px) { .profile-card { position: static; order: -1; } }
.about__text { font-size: 1.08rem; }

/* CV */
.cv__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(240px, 4fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.cv__intro { color: var(--ink-2); font-size: 1.1rem; max-width: 52ch; margin-bottom: 3rem; }
.cv-group + .cv-group { margin-top: 3.5rem; }
.cv-group__title { font-family: var(--font-body); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 0.8rem; }
[dir="rtl"] .cv-group__title { letter-spacing: 0; font-size: 0.9rem; }
.cv-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cv-item { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.cv-item__period { margin: 0; color: var(--ink-3); font-size: 0.9rem; font-variant-numeric: tabular-nums; padding-top: 0.2rem; }
.cv-item__title { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; margin: 0 0 0.2rem; }
.cv-item__where { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.cv-item__desc { color: var(--ink-3); font-size: 0.93rem; margin-top: 0.6rem; }
.cv-item__desc p { margin: 0 0 0.6em; }
@media (max-width: 640px) { .cv-item { grid-template-columns: 1fr; gap: 0.3rem; } }
.cv__side { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 2.2rem; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tags li { padding: 0.35em 0.9em; border: 1px solid var(--line); border-radius: 999px; font-size: 0.88rem; color: var(--ink-2); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.95rem; }
.cv__download { align-self: flex-start; }
@media (max-width: 860px) { .cv__grid { grid-template-columns: 1fr; } .cv__side { position: static; } }

.cv-hero__inner { display: flex; align-items: flex-end; gap: clamp(20px, 3vw, 40px); }
.cv-hero__photo { flex: none; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; outline: 1px solid var(--accent); outline-offset: 5px; margin-bottom: 1.2rem; }
.cv-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .cv-hero__inner { flex-direction: column; align-items: flex-start; } }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(16, 15, 14, 0.96); display: flex; align-items: center; justify-content: center; padding: 64px 72px; color: var(--white); }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; object-fit: contain; }
.lightbox__figure figcaption { font-size: 0.9rem; opacity: 0.75; padding-top: 0.8rem; text-align: center; }
.lightbox__btn { position: absolute; background: none; border: 0; color: inherit; cursor: pointer; padding: 12px; opacity: 0.75; transition: opacity 0.2s; }
.lightbox__btn:hover { opacity: 1; }
.lightbox__close { top: 12px; inset-inline-end: 16px; font-size: 2.4rem; line-height: 1; }
.lightbox__prev { inset-inline-start: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { inset-inline-end: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__counter { position: absolute; bottom: 16px; inset-inline-start: 50%; transform: translateX(-50%); margin: 0; font-size: 0.85rem; opacity: 0.6; }
[dir="rtl"] .lightbox__counter { transform: translateX(50%); }
@media (max-width: 600px) { .lightbox { padding: 56px 8px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 4px; transform: none; } }

/* WordPress core classes */
.sticky, .bypostauthor, .gallery-caption { }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--ink-3); }

@media print {
	.site-header, .site-footer, .contact, .hero__scroll, .filters, .project-nav { display: none; }
	body { padding: 0; background: #fff; }
	.js .reveal { opacity: 1; transform: none; }
}
