/* ==========================================================================
   Zisan CEO — main stylesheet (Light Editorial design)
   Brand colours/fonts are injected as CSS variables (--c1, --c2, --font-h, --font-b)
   from the Customizer.
   ========================================================================== */

:root {
	--c1: #48124e;
	--c2: #8d099e;
	--bg: #fdfbfe;
	--bg-2: #f5eef8;
	--surface: #ffffff;
	--line: rgba(72, 18, 78, 0.13);
	--text: #1d0a22;
	--muted: #5e4a66;
	--accent: #8d099e;
	--shadow: 0 1px 2px rgba(72, 18, 78, 0.06), 0 14px 34px -14px rgba(72, 18, 78, 0.22);
	--shadow-lg: 0 2px 4px rgba(72, 18, 78, 0.06), 0 30px 60px -24px rgba(72, 18, 78, 0.35);
	--radius: 20px;
	--maxw: 1180px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--font-h: Georgia, "Times New Roman", serif;
	--font-b: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@supports (background: color-mix(in srgb, red, blue)) {
	:root {
		--bg: color-mix(in srgb, var(--c1) 2%, #ffffff);
		--bg-2: color-mix(in srgb, var(--c1) 7%, #ffffff);
		--text: color-mix(in srgb, var(--c1) 40%, #000000);
		--muted: color-mix(in srgb, var(--c1) 55%, #6b6b6b);
		--line: color-mix(in srgb, var(--c1) 14%, transparent);
		--accent: var(--c2);
	}
}

/* Dark brand blocks reuse the same components with light-on-dark variables. */
.company, .contact, .site-footer {
	--text: #ffffff;
	--muted: rgba(255, 255, 255, 0.78);
	--line: rgba(255, 255, 255, 0.18);
	--accent: #f0b6fa;
	--surface: rgba(255, 255, 255, 0.07);
	color: var(--text);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-b);
	font-size: 1.0625rem; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c1); }
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.12; margin: 0 0 0.6em; letter-spacing: -0.02em; font-weight: 700; color: var(--text); }
p { margin: 0 0 1.1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--c2); outline-offset: 3px; border-radius: 6px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px;
	margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; width: auto; height: auto; margin: 0; padding: 12px 18px;
	background: var(--c1); color: #fff; top: 8px; left: 8px; z-index: 1000; border-radius: 8px;
}

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.container--narrow { width: min(100% - 40px, 780px); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0.9em 1.8em;
	border-radius: 14px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent;
	cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
	font-family: var(--font-b); line-height: 1.2;
}
.btn--primary { background: var(--c1); color: #fff; box-shadow: 0 12px 28px -12px var(--c1); }
.btn--primary:hover { color: #fff; background: var(--c2); transform: translateY(-2px); box-shadow: 0 18px 32px -12px var(--c2); }
.btn--ghost { background: transparent; color: var(--c1); border-color: color-mix(in srgb, var(--c1) 35%, transparent); }
.btn--ghost:hover { background: var(--c1); color: #fff; border-color: var(--c1); transform: translateY(-2px); }
.btn--sm { padding: 0.62em 1.25em; font-size: 0.95rem; border-radius: 12px; }

/* On dark brand blocks */
.company .btn--primary, .contact .btn--primary { background: #fff; color: var(--c1); box-shadow: none; }
.company .btn--primary:hover, .contact .btn--primary:hover { background: #f0b6fa; color: var(--c1); }
.company .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.company .btn--ghost:hover { background: #fff; color: var(--c1); border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100; background: transparent;
	transition: background 0.3s, box-shadow 0.3s, border-color 0.3s; border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-bottom-color: var(--line); box-shadow: 0 8px 30px -22px rgba(72, 18, 78, 0.4);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand a { text-decoration: none; color: var(--text); }
.brand__text { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
	display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	background: var(--c1); color: #fff; font-family: var(--font-h); font-size: 0.95rem; font-weight: 700;
}
.brand__name { font-family: var(--font-h); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.custom-logo { max-height: 46px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 22px; }
.primary-nav .menu { display: flex; align-items: center; gap: 2px; }
.primary-nav .menu a {
	display: block; padding: 8px 14px; border-radius: 10px; color: var(--muted);
	text-decoration: none; font-weight: 500; font-size: 0.97rem; transition: color 0.2s, background 0.2s;
}
.primary-nav .menu a:hover, .primary-nav .menu .current-menu-item > a { color: var(--c1); background: var(--bg-2); }
.primary-nav .sub-menu { display: none; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; position: relative; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	position: absolute; left: 50%; width: 20px; height: 2px; background: var(--c1); border-radius: 2px;
	transform: translateX(-50%); transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle__bars { top: 50%; margin-top: -1px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; left: 50%; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateX(-50%) translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateX(-50%) translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; margin-top: -76px;
	padding: calc(76px + clamp(40px, 7vw, 90px)) 0 clamp(64px, 9vw, 110px);
	background:
		radial-gradient(700px 480px at 88% 10%, color-mix(in srgb, var(--c2) 18%, transparent), transparent 70%),
		radial-gradient(600px 420px at 0% 100%, color-mix(in srgb, var(--c1) 10%, transparent), transparent 70%),
		var(--bg);
}
.hero__glow { display: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--c2);
	font-family: var(--font-b); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 1.5px; background: var(--c2); }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 0.4em; color: var(--c1); }
.hero__intro { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 30px; }

.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a {
	display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 10px;
	color: var(--muted); font-size: 0.88rem; font-weight: 500; text-decoration: none; background: var(--surface); transition: all 0.2s;
}
.social a:hover { color: #fff; background: var(--c1); border-color: var(--c1); }
.social--footer a, .social--contact a { background: transparent; color: var(--muted); }
.social--footer a:hover, .social--contact a:hover { background: #fff; color: var(--c1); border-color: #fff; }

.hero__visual { position: relative; justify-self: center; width: min(100%, 430px); }
.portrait {
	position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 32px 32px;
	background: linear-gradient(170deg, color-mix(in srgb, var(--c2) 35%, #fff), var(--c1));
	box-shadow: var(--shadow-lg);
}
.portrait__img { width: 100%; height: 100%; object-fit: cover; }
.portrait__placeholder {
	display: grid; place-items: center; width: 100%; height: 100%;
	font-family: var(--font-h); font-size: clamp(5rem, 14vw, 9rem); font-weight: 700; color: rgba(255, 255, 255, 0.35);
}
.hero__visual::before {
	content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 999px 999px 32px 32px;
	border: 1.5px solid color-mix(in srgb, var(--c2) 60%, transparent); z-index: -1;
}
.badge {
	position: absolute; left: -28px; bottom: 40px; z-index: 2; display: flex; align-items: center; gap: 12px;
	padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
	box-shadow: var(--shadow-lg); max-width: 250px;
}
.badge__num { font-family: var(--font-h); font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--c1); }
.badge__num sup { font-size: 0.5em; color: var(--c2); }
.badge__label { font-size: 0.8rem; line-height: 1.35; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(68px, 9vw, 120px) 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__title { font-size: clamp(2rem, 4.2vw, 3.2rem); color: var(--c1); }
.section__title--sm { font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: inherit; margin-bottom: 0.2em; }
.section__more { text-align: center; margin: 44px 0 0; }
.notice-inline { padding: 14px 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 0.95rem; background: var(--surface); }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about { display: grid; gap: clamp(28px, 5vw, 72px); }
.about--with-image { grid-template-columns: 0.8fr 1.2fr; align-items: center; }
.about__media img { border-radius: 28px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow-lg); }
.about__copy { max-width: 780px; }
.about__p { color: var(--muted); font-size: 1.15rem; }
.about__p:first-of-type::first-letter {
	font-family: var(--font-h); float: left; font-size: 4.4rem; line-height: 0.85; padding: 6px 12px 0 0; color: var(--c2); font-weight: 700;
}
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tags li { padding: 8px 16px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); color: var(--c1); font-size: 0.92rem; font-weight: 600; }

/* ---------- Journey / timeline ---------- */
.journey { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.journey:has(.journey__col:only-child) { grid-template-columns: minmax(0, 760px); justify-content: center; }
.journey__label { font-size: 1.5rem; margin-bottom: 1.4em; display: flex; align-items: center; gap: 14px; color: var(--c1); }
.journey__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.timeline { position: relative; padding-left: 34px; }
.timeline::before {
	content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
	background: linear-gradient(180deg, var(--c2), color-mix(in srgb, var(--c2) 8%, transparent));
}
.tl-item { position: relative; margin-bottom: 24px; }
.tl-dot {
	position: absolute; left: -34px; top: 28px; width: 16px; height: 16px; border-radius: 50%;
	background: var(--bg-2); border: 3px solid var(--c2); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c2) 15%, transparent);
	transition: transform 0.4s var(--ease), background 0.4s;
}
.tl-item.is-visible .tl-dot { background: var(--c2); transform: scale(1.1); }
.tl-card {
	padding: 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
	box-shadow: var(--shadow); transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.tl-card:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.tl-logo { width: 54px; height: 54px; border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 14px; }
.tl-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.tl-date { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c2); }
.tl-title { font-size: 1.25rem; margin: 0 0 4px; }
.tl-org { margin: 0 0 8px; color: var(--muted); font-weight: 600; }
.tl-org a { color: var(--c1); }
.tl-sub { color: var(--muted); font-weight: 400; }
.tl-body { color: var(--muted); font-size: 0.98rem; }
.tl-body > :last-child { margin-bottom: 0; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.pill--live { background: color-mix(in srgb, var(--c2) 14%, #fff); color: var(--c2); }
.pill--feat { position: absolute; top: 14px; left: 14px; background: var(--c1); color: #fff; }

/* ---------- Company (deep brand block) ---------- */
.company {
	display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); padding: clamp(30px, 5vw, 60px);
	border-radius: 32px; position: relative; overflow: hidden;
	background: linear-gradient(145deg, var(--c1), color-mix(in srgb, var(--c1) 55%, #000));
	box-shadow: var(--shadow-lg);
}
.company::before {
	content: ""; position: absolute; width: 460px; height: 460px; right: -140px; top: -160px; border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--c2) 65%, transparent), transparent); pointer-events: none;
}
.company > * { position: relative; }
.company .eyebrow { color: var(--accent); }
.company .eyebrow::before { background: var(--accent); }
.company__id { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.company__logo { width: 76px; height: 76px; border-radius: 20px; background: #fff; overflow: hidden; flex: none; display: grid; place-items: center; }
.company__logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.company .section__title--sm { color: #fff; }
.company__role { color: var(--accent); font-weight: 600; margin: 0; }
.company__desc { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; max-width: 56ch; }
.company__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.company__services { display: grid; gap: 12px; align-content: center; }
.company__services li {
	display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px; font-weight: 600;
	background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); transition: transform 0.3s var(--ease), background 0.3s;
}
.company__services li:hover { transform: translateX(8px); background: rgba(255, 255, 255, 0.15); }
.company__services .num { font-family: var(--font-h); font-size: 0.95rem; color: var(--accent); min-width: 26px; }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.skill-card { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.skill-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.skill-card__title { font-size: 1.3rem; margin-bottom: 0.3em; color: var(--c1); }
.skill-card__desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.2em; }
.skill-list { display: grid; gap: 18px; margin-top: 18px; }
.skill__top { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 0.97rem; margin-bottom: 8px; }
.skill__pct { color: var(--c2); font-variant-numeric: tabular-nums; }
.skill__desc { margin: 8px 0 0; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.bar { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.js .bar__fill { width: 0; transition: width 1.3s var(--ease) 0.2s; }
.js .is-visible .bar__fill { width: var(--w); }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
	padding: 9px 20px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted);
	font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.filter:hover { color: var(--c1); border-color: var(--c2); }
.filter.is-active { background: var(--c1); border-color: var(--c1); color: #fff; }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.project { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.project[hidden] { display: none; }
.project:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.project__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.project:hover .project__media img { transform: scale(1.07); }
.project__ph { position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 60%); }
.project__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.project__cats { margin: 0 0 6px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c2); }
.project__title { font-size: 1.4rem; margin-bottom: 0.4em; }
.project__title a { color: var(--c1); text-decoration: none; }
.project__title a:hover { color: var(--c2); }
.project__excerpt { color: var(--muted); font-size: 0.96rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.chips li { padding: 3px 11px; border-radius: 8px; font-size: 0.78rem; font-weight: 600; background: var(--bg-2); color: var(--c1); }
.project__links { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; font-size: 0.92rem; }
.project__links a { text-decoration: none; }

/* ---------- Blog cards ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 28px; }
.post-card { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; display: flex; gap: 8px; }
.post-card__title { font-size: 1.3rem; }
.post-card__title a { color: var(--c1); text-decoration: none; }
.post-card__title a:hover { color: var(--c2); }
.post-card__excerpt { color: var(--muted); font-size: 0.96rem; }
.post-card__more { margin-top: auto; font-weight: 600; text-decoration: none; }

/* ---------- Contact (deep brand block) ---------- */
.contact { background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 80%, #000), var(--c1)); position: relative; overflow: hidden; }
.contact::before {
	content: ""; position: absolute; width: 640px; height: 640px; left: -200px; bottom: -300px; border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--c2) 55%, transparent), transparent); pointer-events: none;
}
.contact__inner { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact .eyebrow { color: var(--accent); }
.contact .eyebrow::before { background: var(--accent); }
.contact .section__title { color: #fff; }
.contact__text { color: var(--muted); font-size: 1.12rem; max-width: 44ch; }
.contact__list { display: grid; gap: 14px; margin: 28px 0; }
.contact__list li { display: flex; flex-direction: column; }
.contact__list span { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact__list a { font-size: 1.15rem; font-weight: 600; color: #fff; text-decoration: none; word-break: break-word; }
.contact__list a:hover { color: var(--accent); }

.contact__form {
	--text: #1d0a22; --muted: #5e4a66; --line: rgba(72, 18, 78, 0.16);
	padding: clamp(26px, 4vw, 42px); border-radius: 28px; background: #fff; color: var(--text); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.5);
}
.zc-form p { margin: 0 0 18px; }
.zc-form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; color: var(--c1); }
.zc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.zc-form input[type="text"], .zc-form input[type="email"], .zc-form input[type="tel"], .zc-form textarea,
.contact__form input[type="text"], .contact__form input[type="email"], .contact__form textarea {
	width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line);
	background: #faf6fb; color: var(--text); font: inherit; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.zc-form input:focus, .zc-form textarea:focus { outline: none; border-color: var(--c2); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c2) 18%, transparent); }
.zc-form textarea { resize: vertical; min-height: 140px; }
.zc-form .btn--primary { background: var(--c1); color: #fff; width: 100%; }
.zc-form .btn--primary:hover { background: var(--c2); color: #fff; }
.zc-status { margin-bottom: 18px; }
.zc-status:empty { display: none; }
.zc-status.is-success, .zc-status.is-error { padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.zc-status.is-success { background: #e6f7ee; border: 1px solid #7bcf9f; color: #14583a; }
.zc-status.is-error { background: #fdecec; border: 1px solid #e79a9a; color: #8a1f1f; }

/* ---------- Footer ---------- */
.site-footer { background: color-mix(in srgb, var(--c1) 60%, #000); padding: 56px 0 0; }
.site-footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; padding-bottom: 36px; }
.site-footer__name { font-family: var(--font-h); font-weight: 700; font-size: 1.5rem; margin: 0 0 4px; color: #fff; }
.site-footer__title { color: var(--muted); max-width: 44ch; margin-bottom: 12px; }
.site-footer a { color: var(--accent); }
.footer-menu { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 18px; }
.footer-menu a { color: var(--muted); text-decoration: none; }
.footer-menu a:hover { color: #fff; }
.site-footer__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer__bar p { margin: 0; }
.to-top { color: var(--muted) !important; text-decoration: none; }
.to-top:hover { color: #fff !important; }

/* ---------- Inner pages ---------- */
.page-hero {
	position: relative; margin-top: -76px; padding: calc(76px + clamp(36px, 6vw, 70px)) 0 clamp(36px, 5vw, 60px);
	background: radial-gradient(700px 320px at 85% 0%, color-mix(in srgb, var(--c2) 16%, transparent), transparent), var(--bg-2);
	border-bottom: 1px solid var(--line);
}
.page-hero__title { font-size: clamp(2.1rem, 5vw, 3.8rem); letter-spacing: -0.03em; margin-bottom: 0.2em; color: var(--c1); }
.page-hero__desc { color: var(--muted); max-width: 62ch; font-size: 1.1rem; }
.page-hero .eyebrow a { color: inherit; text-decoration: none; }
.entry__meta { color: var(--muted); display: flex; gap: 8px; margin: 0; }
.entry__thumb { margin: 0 0 36px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.entry__thumb img { width: 100%; }
.entry__tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; border-radius: 8px; background: var(--bg-2); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.entry__nav { display: flex; justify-content: space-between; gap: 20px; margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 600; }
.entry__nav a { text-decoration: none; }
.project-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 60px); align-items: start; }
.project-detail__side { position: sticky; top: 100px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.facts { margin: 0 0 22px; display: grid; gap: 18px; }
.facts dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; }

/* Prose */
.prose { font-size: 1.1rem; }
.prose h2 { font-size: 1.9rem; margin-top: 1.8em; color: var(--c1); }
.prose h3 { font-size: 1.45rem; margin-top: 1.6em; color: var(--c1); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.8em 0; padding: 6px 0 6px 24px; border-left: 4px solid var(--c2); color: var(--c1); font-family: var(--font-h); font-size: 1.3rem; font-style: italic; }
.prose img { border-radius: 14px; }
.prose pre, .prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
.prose pre { background: #1d0a22; color: #f4e9f7; padding: 18px; border-radius: 12px; overflow: auto; }
.prose :not(pre) > code { background: var(--bg-2); padding: 2px 6px; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.alignwide { width: min(100vw - 40px, 1000px); }

/* Pagination, comments, search */
.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--c1); font-weight: 600; }
.page-numbers.current, .page-numbers:hover { background: var(--c1); border-color: var(--c1); color: #fff; }
.comments { margin-top: 64px; }
.comment-list { display: grid; gap: 18px; margin-bottom: 32px; }
.comment-list .children { margin: 18px 0 0 24px; display: grid; gap: 18px; }
.comment-body { padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea, .search-field {
	width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit;
}
.search-form { display: flex; gap: 10px; margin: 20px 0; max-width: 520px; }
.search-submit, .comment-form .submit { padding: 12px 24px; border-radius: 12px; border: 0; background: var(--c1); color: #fff; font-weight: 600; cursor: pointer; }
.search-submit:hover, .comment-form .submit:hover { background: var(--c2); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.hero__inner, .company, .contact__inner, .about--with-image, .journey { grid-template-columns: 1fr; }
	.hero__visual { order: -1; width: min(100%, 330px); }
	.badge { left: -8px; }
	.project-detail__grid { grid-template-columns: 1fr; }
	.project-detail__side { position: static; }
}

@media (max-width: 860px) {
	.nav-toggle { display: inline-block; }
	.primary-nav {
		position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 14px;
		padding: 18px 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(72, 18, 78, 0.4);
		visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
	}
	.primary-nav.is-open { visibility: visible; opacity: 1; transform: none; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; }
	.primary-nav .menu a { padding: 12px 14px; font-size: 1.05rem; }
	.primary-nav .btn { width: 100%; }
}

@media (max-width: 600px) {
	body { font-size: 1rem; }
	.zc-row { grid-template-columns: 1fr; }
	.hero__actions .btn { width: 100%; }
	.timeline { padding-left: 28px; }
	.tl-dot { left: -28px; }
	.entry__nav { flex-direction: column; }
	.about__p:first-of-type::first-letter { font-size: 3.4rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
	.js .bar__fill { width: var(--w); }
}
