/*
Theme Name: MAE
Theme URI: https://princess-mae-portfolio.local/
Author: Princess Mae C. Buangjug
Description: Portfolio theme for Princess Mae — white and dusty pink, editorial typography. Works with the MAE Portfolio plugin and the free Elementor plugin.
Version: 1.3.2
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: mae
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	/* Brand palette */
	--c-white: #ffffff;
	--c-blush: #f8edef;
	--c-pink: #d8a7ae;
	--c-rose: #c58f99;
	--c-ivory: #f5f1ef;
	--c-charcoal: #383033;
	--c-gray: #82777a;

	/* Accessible working shades */
	--c-text: var(--c-charcoal);
	--c-text-muted: #6f6467;   /* Muted Gray darkened to pass 4.5:1 on white, ivory and blush */
	--c-rose-ink: #a8707b;     /* Rose dark enough for text */
	--c-line: #eadde0;
	--c-line-soft: #f1e6e8;
	--c-success: #3f7a52;
	--c-success-bg: #e9f3ec;
	--c-error: #a3364a;
	--c-error-bg: #fbecef;

	/* Type */
	--f-display: "DM Sans", "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--fs-xs: 0.8125rem;
	--fs-sm: 0.9375rem;
	--fs-base: 1rem;
	--fs-lg: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
	--fs-h4: 1.25rem;
	--fs-h3: clamp(1.375rem, 1.2rem + 0.8vw, 2rem);
	--fs-h2: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem);
	--fs-h2-xl: clamp(2.125rem, 1.4rem + 3.2vw, 4rem);
	--fs-h1: clamp(2.75rem, 1.6rem + 4.8vw, 5.25rem);

	/* Space */
	--gutter: clamp(20px, 5vw, 64px);
	--section: clamp(80px, 10vw, 140px);
	--radius-sm: 12px;
	--radius: 20px;
	--radius-lg: 28px;
	--shadow: 0 30px 60px -30px rgba(56, 48, 51, 0.35);
	--shadow-sm: 0 18px 40px -24px rgba(56, 48, 51, 0.35);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--header-h: 80px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-text);
	font-family: var(--f-body);
	font-size: var(--fs-base);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; margin: 0; color: var(--c-text); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
em { font-style: italic; }
::selection { background: var(--c-blush); color: var(--c-charcoal); }

:focus-visible { outline: 2px solid var(--c-charcoal); outline-offset: 3px; border-radius: 4px; }
.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; left: 16px; top: -100px; z-index: 100;
	background: var(--c-charcoal); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 16px; }
.site-main:focus { outline: none; }

.container { width: 100%; max-width: calc(1240px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.section--rule { border-top: 1px solid var(--c-line-soft); }
.band { padding-block: var(--section); }
.band--ivory { background: var(--c-ivory); }
.band--blush { background: var(--c-blush); }
.muted { color: var(--c-text-muted); }

/* ==========================================================================
   3. Typography helpers
   ========================================================================== */
.eyebrow {
	font-family: var(--f-display); font-size: var(--fs-xs); font-weight: 500;
	letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-text-muted);
	margin: 0 0 18px;
}
.eyebrow--line { display: flex; align-items: center; gap: 14px; }
.eyebrow--line::before { content: ""; width: 32px; height: 1px; background: var(--c-pink); flex: none; }
.label { font-family: var(--f-display); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-text-muted); margin: 0 0 12px; }
.h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.03em; }
.h2--xl { font-size: var(--fs-h2-xl); line-height: 1.04; letter-spacing: -0.035em; }
.h3 { font-size: 1.5rem; letter-spacing: -0.015em; }
.h4 { font-size: var(--fs-h4); letter-spacing: -0.01em; }
.prose-lg { font-size: var(--fs-lg); line-height: 1.75; color: var(--c-text-muted); }
.prose-lg .lead, .lead { color: var(--c-text); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.5; font-family: var(--f-display); letter-spacing: -0.01em; }
.entry-content h2 { font-size: 2rem; margin: 1.6em 0 0.6em; }
.entry-content h3 { font-size: 1.5rem; margin: 1.4em 0 0.5em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin-bottom: 1em; }
.entry-content a { color: var(--c-rose-ink); }
.entry-content img { border-radius: var(--radius); }

.text-link {
	display: inline-flex; align-items: center; gap: 6px;
	font-family: var(--f-display); font-weight: 500; font-size: var(--fs-base);
	color: var(--c-text); text-decoration: none;
	background-image: linear-gradient(var(--c-pink), var(--c-pink));
	background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
	padding-bottom: 3px; transition: background-size 0.35s var(--ease), color 0.2s;
}
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--c-rose-ink); }
.text-link--sm { font-size: var(--fs-sm); }

/* ==========================================================================
   4. Buttons, tags, pills
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
	font-family: var(--f-display); font-weight: 500; font-size: var(--fs-sm); line-height: 1;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color 0.25s var(--ease), border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.btn--lg { min-height: 54px; padding: 0 30px; font-size: var(--fs-base); }
.btn--primary { background: var(--c-pink); color: var(--c-charcoal); }
.btn--primary:hover { background: var(--c-rose); transform: translateY(-1px); }
.btn--ghost { border-color: var(--c-charcoal); color: var(--c-charcoal); background: transparent; }
.btn--ghost:hover { background: var(--c-blush); border-color: var(--c-rose); }
.btn--dark { background: var(--c-charcoal); color: #fff; }
.btn--dark:hover { background: #241e20; transform: translateY(-1px); }
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn.is-loading { opacity: 0.7; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; line-height: 1; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--c-line); color: var(--c-text); }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
	display: inline-block; font-size: 14px; padding: 9px 16px; border-radius: 999px;
	border: 1px solid #e2d3d6; background: var(--c-white); color: var(--c-text);
	transition: border-color 0.2s, background-color 0.2s; text-decoration: none;
}
.pill:hover { border-color: var(--c-pink); background: var(--c-blush); }
.badge { display: inline-block; margin-right: 10px; padding: 3px 10px; border-radius: 999px; background: var(--c-blush); color: var(--c-text); font-weight: 500; letter-spacing: 0; }

.availability { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--c-text); font-size: var(--fs-sm); }
.availability__dot { width: 8px; height: 8px; border-radius: 50%; background: #6e9e7b; box-shadow: 0 0 0 4px #e5efe8; }
@media (prefers-reduced-motion: no-preference) {
	.availability__dot { animation: mae-pulse 2.4s ease-in-out infinite; }
}
@keyframes mae-pulse { 50% { box-shadow: 0 0 0 7px #eef5f0; } }

.admin-hint { font-size: var(--fs-sm); color: var(--c-text-muted); background: var(--c-ivory); border: 1px dashed #d9c9cc; border-radius: var(--radius-sm); padding: 12px 16px; margin: 16px 0; }
.admin-hint a { color: var(--c-rose-ink); }

/* ==========================================================================
   5. Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, 0.86);
	-webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-bottom-color: var(--c-line-soft); background: rgba(255, 255, 255, 0.94); box-shadow: 0 10px 30px -24px rgba(56, 48, 51, 0.4); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.wordmark { font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: 0.08em; text-decoration: none; color: var(--c-text); white-space: nowrap; }
.wordmark--lg { font-size: 28px; }
.wordmark__dot { color: var(--c-pink); }
.custom-logo-link img { max-height: 44px; width: auto; }

.site-nav__list { list-style: none; display: flex; align-items: center; gap: 36px; }
.nav-link { position: relative; display: inline-block; padding: 6px 0; text-decoration: none; font-family: var(--f-display); font-weight: 500; font-size: var(--fs-sm); color: var(--c-text); }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--c-rose); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .current-menu-item > .nav-link::after { transform: scaleX(1); }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.site-nav__cta-mobile { display: none; }

.menu-toggle {
	display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
	border: 1px solid #e7d7da; border-radius: 50%; background: var(--c-white); color: var(--c-text); cursor: pointer;
}
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline-flex; }

@media (max-width: 960px) {
	.menu-toggle { display: inline-flex; }
	.site-header__cta { display: none; }
	.site-nav {
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
		background: var(--c-white); padding: 32px var(--gutter) 40px;
		display: flex; flex-direction: column; gap: 32px;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
		overflow-y: auto;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.menu-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.menu-open { overflow: hidden; }
	.site-nav__list { flex-direction: column; align-items: flex-start; gap: 4px; }
	.site-nav__list .nav-link { font-size: 2rem; letter-spacing: -0.02em; padding: 8px 0; }
	.site-nav__cta-mobile { display: inline-flex; align-self: flex-start; min-height: 52px; padding: 0 28px; }
}
/* Without JavaScript, show the menu inline on mobile so it's never unreachable. */
@media (max-width: 960px) {
	html:not(.js) .menu-toggle { display: none; }
	html:not(.js) .site-nav { position: static; opacity: 1; visibility: visible; transform: none; padding: 0; }
	html:not(.js) .site-header__inner { height: auto; flex-wrap: wrap; padding-block: 16px; }
	html:not(.js) .site-nav__list { flex-direction: row; flex-wrap: wrap; gap: 16px; }
	html:not(.js) .site-nav__list .nav-link { font-size: var(--fs-sm); }
}

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: clamp(48px, 6vw, 88px); align-items: center;
	padding-block: clamp(56px, 8vw, 112px) clamp(72px, 9vw, 128px);
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; max-width: 640px; }
.hero__copy .eyebrow { margin: 0; }
.hero__title { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.035em; }
.hero__title em { font-weight: 400; color: var(--c-rose-ink); }
.hero__lead { font-size: var(--fs-lg); line-height: 1.7; color: var(--c-text-muted); max-width: 540px; margin: 0; }
.hero__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--c-line-soft); font-size: 14px; color: var(--c-text-muted); }

.hero__visual { position: relative; display: flex; justify-content: center; padding: 24px 0 40px; }
.hero__arch-outline, .hero__portrait { width: 78%; max-width: 420px; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); }
.hero__arch-outline { position: absolute; top: 0; right: 4%; border: 1px solid #e7d2d6; }
.hero__portrait { position: relative; margin: 0; overflow: hidden; background: linear-gradient(180deg, var(--c-blush), var(--c-ivory)); transform: translate(-16px, 24px); }
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; color: var(--c-rose); }
.hero__placeholder-label { font-family: var(--f-display); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-text); margin-top: 6px; }
.hero__placeholder-sub { font-size: var(--fs-xs); color: var(--c-text-muted); }
.hero__stat { position: absolute; left: 0; bottom: 8px; display: flex; align-items: center; gap: 16px; background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-sm); }
.hero__stat-num { font-family: var(--f-display); font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.hero__stat-num span { color: var(--c-pink); }
.hero__stat-label { font-size: var(--fs-xs); line-height: 1.4; color: var(--c-text-muted); }
.hero__chip { position: absolute; right: 0; top: 18%; background: var(--c-charcoal); color: #fff; border-radius: 999px; padding: 10px 18px; font-family: var(--f-display); font-size: var(--fs-xs); font-weight: 500; }

@media (max-width: 560px) {
	.hero__portrait, .hero__arch-outline { width: 86%; }
	.hero__stat { padding: 14px 18px; }
	.hero__stat-num { font-size: 34px; }
	.hero__chip { top: 6%; }
}

/* Inner page hero */
.page-hero { padding-block: clamp(56px, 8vw, 120px) clamp(40px, 5vw, 72px); max-width: calc(1000px + 2 * var(--gutter)); margin-left: 0; margin-right: auto; }
.page-hero.container { margin-inline: auto; max-width: calc(1240px + 2 * var(--gutter)); }
.page-hero__title { font-size: var(--fs-h1); line-height: 1.03; letter-spacing: -0.035em; max-width: 15ch; }
.page-hero__title em { font-weight: 400; color: var(--c-rose-ink); }
.page-hero__intro { margin-top: 28px; font-size: var(--fs-lg); color: var(--c-text-muted); max-width: 620px; }

/* ==========================================================================
   7. Sections & layouts
   ========================================================================== */
.section-head { display: flex; flex-direction: column; gap: 0; max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--row { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head--row > div { max-width: 640px; }
.section-head__lead { font-size: var(--fs-lg); color: var(--c-text-muted); margin-top: 18px; }

.split { display: flex; flex-wrap: wrap; gap: 40px clamp(48px, 8vw, 120px); }
.split__head { flex: 1 1 360px; }
.split__body { flex: 1 1 420px; padding-top: 8px; }
.split__body .text-link { margin-top: 24px; }

/* ==========================================================================
   8. Projects
   ========================================================================== */
.featured-grid { display: flex; flex-wrap: wrap; gap: clamp(40px, 4vw, 56px) 32px; }
.project { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.project--large { flex: 7 1 520px; }
.project--tall { flex: 5 1 380px; padding-top: clamp(0px, 6vw, 96px); }
.project--wide { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 32px clamp(32px, 5vw, 72px); padding-top: clamp(16px, 3vw, 40px); border-top: 1px solid var(--c-line-soft); }
.project--wide .project__media { flex: 3 1 480px; aspect-ratio: 16 / 8; }
.project--wide .project__body { flex: 2 1 320px; }

.project__media { position: relative; display: block; overflow: hidden; border-radius: 24px; background: var(--c-blush); aspect-ratio: 16 / 11; }
.project--tall .project__media { aspect-ratio: 4 / 5; background: var(--c-ivory); }
.project:hover .shot { transform: translateY(-4px); }
.project__body { display: flex; flex-direction: column; gap: 12px; }
.project__meta { margin: 0; font-size: var(--fs-xs); letter-spacing: 0.04em; color: var(--c-text-muted); }
.project__title { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.2; }
.project__title a { text-decoration: none; }
.project__title a:hover { color: var(--c-rose-ink); }
.project__role { margin: 0; font-size: var(--fs-sm); color: var(--c-text); }
.project__desc { margin: 0; color: var(--c-text-muted); max-width: 560px; }
.project__body .text-link { align-self: flex-start; margin-top: 8px; font-size: var(--fs-sm); }
.project .tags { padding-top: 4px; }

/* Browser frame: holds the project screenshot (or a placeholder) */
.shot { position: absolute; display: flex; flex-direction: column; overflow: hidden; background: var(--c-white); box-shadow: var(--shadow); transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease); }
.shot--browser { inset: 9% 8% 0 8%; border-radius: 14px 14px 0 0; }
.project--tall .shot--browser { inset: 10% 10% 0 10%; }
.project--wide .shot--browser { inset: 10% 8% 0 8%; }
.shot--phone { left: 23%; right: 23%; top: 10%; bottom: -2%; border-radius: 26px 26px 0 0; }
.shot--plain { inset: 12% 10%; border-radius: 14px; }
.project:hover .shot { box-shadow: 0 40px 70px -32px rgba(56, 48, 51, 0.42); }
.shot__bar { position: relative; height: 32px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--c-white); border-bottom: 1px solid var(--c-line-soft); }
.shot__bar i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #ebd6da; }
.shot__url {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	max-width: calc(100% - 120px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	padding: 3px 14px; border-radius: 999px; background: var(--c-ivory);
	font-size: 11px; line-height: 1.4; color: var(--c-text-muted); letter-spacing: 0.01em;
}
.shot__screen { position: relative; flex: 1; min-height: 0; display: block; overflow: hidden; background: var(--c-ivory); }
.shot__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; }
.shot__label { font-family: var(--f-display); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-text); }
.shot__sub { font-size: var(--fs-xs); color: var(--c-text-muted); }
@media (max-width: 480px) { .shot__url { display: none; } }

/* Case study hero: full screenshot in a large browser frame, bleeding off the bottom */
.case-hero__media { border-radius: var(--radius-lg); overflow: hidden; background: var(--c-blush); padding: clamp(24px, 5vw, 72px) clamp(16px, 6vw, 96px) 0; }
.case-hero__media .shot { position: relative; inset: auto; border-radius: 14px 14px 0 0; }
.case-hero__media .shot__bar { height: 40px; }
.case-hero__media .shot__screen { max-height: min(820px, 78vh); }
.case-hero__media .shot__screen img { height: auto; object-fit: initial; }
.case-hero__media .shot:not(.shot--has-img) { aspect-ratio: 16 / 8; }
.case-hero__media .admin-hint { margin-bottom: 24px; }

/* Index list */
.project-index { margin-top: clamp(72px, 8vw, 112px); }
.project-index__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.project-index__list { list-style: none; border-top: 1px solid var(--c-line); }
.project-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--c-line); text-decoration: none; transition: padding 0.3s var(--ease), background-color 0.3s; }
.project-index__list li:first-child .project-row { border-top: 0; }
.project-row:hover { padding-inline: 16px; background: var(--c-blush); }
.project-row__name { flex: 1 1 260px; font-family: var(--f-display); font-size: 1.25rem; font-weight: 500; }
.project-row__meta { flex: 1 1 260px; font-size: 14px; color: var(--c-text-muted); }
.project-row__arrow { font-size: 18px; transition: transform 0.3s var(--ease), color 0.3s; }
.project-row:hover .project-row__arrow { transform: translateX(4px); color: var(--c-rose-ink); }

/* Projects page */
.filters { margin-bottom: 16px; }
.filters__list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
	border: 1px solid var(--c-line); background: var(--c-white); color: var(--c-text);
	font-family: var(--f-display); font-size: var(--fs-sm); font-weight: 500; text-decoration: none;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.filter:hover { border-color: var(--c-pink); background: var(--c-blush); }
.filter.is-active { background: var(--c-charcoal); border-color: var(--c-charcoal); color: #fff; }
.filters__status { min-height: 1.6em; font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0 0 32px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 56px 32px; }
.project-grid .project[hidden] { display: none; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 72px 24px; border: 1px dashed #dccdd0; border-radius: var(--radius-lg); color: var(--c-rose); }
.empty-state p { margin: 0; color: var(--c-text); }
.empty-state .btn { margin-top: 12px; }
.projects-page { padding-bottom: var(--section); }

/* ==========================================================================
   9. Services
   ========================================================================== */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); column-gap: 32px; }
.service { display: flex; flex-direction: column; gap: 14px; padding: 32px 0 36px; border-top: 1px solid var(--c-line); }
.service__icon { width: 48px; height: 48px; flex: none; border-radius: 14px; border: 1px solid var(--c-line); display: inline-flex; align-items: center; justify-content: center; color: var(--c-text); transition: background-color 0.25s, border-color 0.25s; }
.service:hover .service__icon, .service-detail:hover .service__icon { background: var(--c-blush); border-color: var(--c-pink); }
.service__title { font-size: var(--fs-h4); letter-spacing: -0.01em; }
.service__text { margin: 0; font-size: var(--fs-sm); color: var(--c-text-muted); }
.service .text-link { align-self: flex-start; margin-top: auto; }

.service-jump { padding-bottom: 24px; }
.service-jump ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.pill--link { min-height: 44px; display: inline-flex; align-items: center; }
.service-list { padding-bottom: var(--section); }
.service-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px clamp(40px, 6vw, 96px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--c-line); scroll-margin-top: calc(var(--header-h) + 24px); }
.service-detail__head { display: flex; flex-direction: column; gap: 18px; }
.service-detail__num { font-family: var(--f-display); font-size: var(--fs-xs); letter-spacing: 0.16em; color: var(--c-text-muted); }
.service-detail__title { font-size: var(--fs-h3); letter-spacing: -0.02em; max-width: 14ch; }
.service-detail__body { display: flex; flex-direction: column; gap: 28px; }
.service-detail__desc { font-size: var(--fs-lg); color: var(--c-text-muted); margin: 0; }
.service-detail__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; }
.service-detail__body .text-link { align-self: flex-start; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.check-list li { position: relative; padding-left: 30px; color: var(--c-text-muted); }
.check-list li strong { color: var(--c-text); font-weight: 500; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 9px; border-left: 1.5px solid var(--c-rose-ink); border-bottom: 1.5px solid var(--c-rose-ink); transform: rotate(-45deg); }
.check-list--compact { gap: 10px; font-size: var(--fs-sm); }

/* ==========================================================================
   10. Tools, principles, timeline
   ========================================================================== */
.tool-groups { display: flex; flex-direction: column; border-bottom: 1px solid #e6d9dc; }
.tool-group { display: flex; flex-wrap: wrap; gap: 16px 40px; padding: 28px 0; border-top: 1px solid #e6d9dc; }
.tool-group__title { flex: 0 1 280px; font-size: 1.1875rem; }
.tool-group .pills { flex: 1 1 480px; }
.band--ivory .pill { background: var(--c-white); }

.principles { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 48px; }
.principle { display: flex; flex-direction: column; gap: 16px; color: var(--c-text-muted); }
.principle__num { font-family: var(--f-display); font-size: 72px; line-height: 1; letter-spacing: -0.05em; color: var(--c-pink); }
.principle__title { font-size: 1.5rem; letter-spacing: -0.015em; }

.timeline { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 0; border-top: 1px solid #ead3d8; }
.timeline__item { display: flex; flex-direction: column; gap: 16px; padding: 32px 28px 8px 0; position: relative; color: var(--c-text-muted); }
.timeline__item::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--c-rose); }
.timeline__item:last-child::before { background: var(--c-charcoal); box-shadow: 0 0 0 5px var(--c-white); }
.timeline__num { font-family: var(--f-display); font-size: var(--fs-xs); letter-spacing: 0.16em; color: var(--c-text-muted); }
.timeline__title { font-size: var(--fs-h4); }
@media (max-width: 700px) {
	.timeline { border-top: 0; border-left: 1px solid #ead3d8; padding-left: 28px; }
	.timeline__item { padding: 0 0 36px; }
	.timeline__item::before { left: -33px; top: 6px; }
}

/* About */
.about-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(40px, 6vw, 96px); align-items: start; padding-bottom: var(--section); }
.about-intro__photo { position: relative; margin: 0; aspect-ratio: 4 / 5; max-width: 460px; overflow: hidden; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); background: linear-gradient(180deg, var(--c-blush), var(--c-ivory)); }
.about-intro__photo img { width: 100%; height: 100%; object-fit: cover; }
.about-intro__text .lead { margin-bottom: 1.2em; }
.pull-quote { margin: 2em 0 0; padding: 28px 0 0; border-top: 1px solid var(--c-line); font-family: var(--f-display); font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); line-height: 1.4; letter-spacing: -0.015em; color: var(--c-text); font-style: italic; }
.approach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 24px; }
.approach { background: var(--c-white); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; color: var(--c-text-muted); }

/* ==========================================================================
   11. CTA band
   ========================================================================== */
.cta-band { padding: 0 clamp(12px, 3vw, 32px) clamp(12px, 3vw, 32px); }
.cta-band__inner {
	position: relative; overflow: hidden; max-width: 1376px; margin: 0 auto;
	background: var(--c-blush); border-radius: 32px;
	padding: clamp(72px, 10vw, 140px) clamp(24px, 5vw, 64px);
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
}
.cta-band__inner > * { position: relative; }
.cta-band__inner .eyebrow { margin: 0; }
.cta-band__ring { position: absolute !important; border-radius: 50%; border: 1px solid #edd5da; pointer-events: none; }
.cta-band__ring--a { width: 560px; height: 560px; top: -280px; right: -160px; }
.cta-band__ring--b { width: 360px; height: 360px; bottom: -220px; left: -80px; }
.cta-band__title { font-size: clamp(2.5rem, 1.6rem + 4vw, 5rem); line-height: 1.02; letter-spacing: -0.04em; max-width: 820px; }
.cta-band__text { font-size: var(--fs-lg); color: var(--c-text-muted); max-width: 520px; margin: 0; }
.cta-band .btn { margin-top: 12px; }

/* ==========================================================================
   12. Case study
   ========================================================================== */
.case-hero { padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 56px); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.case-hero__back { margin-bottom: 16px; }
.case-hero .eyebrow { margin: 0; }
.case-hero__title { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.035em; }
.case-hero__lead { font-size: var(--fs-lg); color: var(--c-text-muted); max-width: 640px; margin: 0; }
.case-layout { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); padding-block: clamp(56px, 7vw, 104px); align-items: start; }
@media (max-width: 860px) { .case-layout { grid-template-columns: 1fr; } }
.case-facts { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 860px) { .case-facts { position: static; } }
.case-facts dl { margin: 0; display: flex; flex-direction: column; }
.case-facts dl > div { padding: 18px 0; border-top: 1px solid var(--c-line); }
.case-facts dl > div:last-child { border-bottom: 1px solid var(--c-line); }
.case-facts dt { font-family: var(--f-display); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: 8px; }
.case-facts dd { margin: 0; }
.case-content { display: flex; flex-direction: column; gap: 56px; min-width: 0; }
.case-section { display: flex; flex-direction: column; gap: 20px; }
.case-section__title { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); letter-spacing: -0.025em; }
.feature-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.feature-list li { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--c-ivory); }
.case-gallery { padding-bottom: clamp(56px, 7vw, 104px); }
.case-gallery .case-section__title { margin-bottom: 32px; }
.gallery-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 24px; }
.gallery-grid a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--c-ivory); }
.gallery-grid img { width: 100%; transition: transform 0.6s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.03); }
.gallery-grid--preview li { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--c-blush); }
.gallery-grid--preview .shot { inset: 10% 8% 0 8%; border-radius: 12px 12px 0 0; }
.case-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-block: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--c-line-soft); }
.case-pager__link { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; transition: background-color 0.25s, border-color 0.25s; }
.case-pager__link:hover { background: var(--c-blush); border-color: var(--c-pink); }
.case-pager__link--next { text-align: right; grid-column: 2; }
.case-pager__link .label { margin: 0; }
.case-pager__title { font-family: var(--f-display); font-size: 1.375rem; font-weight: 500; letter-spacing: -0.015em; }
@media (max-width: 560px) { .case-pager { grid-template-columns: 1fr; } .case-pager__link--next { grid-column: 1; } }

/* ==========================================================================
   13. Contact
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(40px, 6vw, 96px); align-items: start; padding-bottom: var(--section); }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-card { background: var(--c-blush); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 24px; }
.contact-card__list { margin: 0; display: flex; flex-direction: column; gap: 22px; }
.contact-card dt { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: 6px; }
.contact-card dt .icon { color: var(--c-rose-ink); }
.contact-card dd { margin: 0; font-size: var(--fs-lg); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-sm); }
.field .req { color: var(--c-rose-ink); }
.field .opt { color: var(--c-text-muted); font-weight: 400; }
.field input, .field select, .field textarea {
	width: 100%; min-height: 52px; padding: 14px 16px; border-radius: var(--radius-sm);
	border: 1px solid #ddcdd1; background: var(--c-white); color: var(--c-text);
	font: inherit; font-size: var(--fs-base); transition: border-color 0.2s, box-shadow 0.2s;
}
.field select {
	appearance: none; -webkit-appearance: none; padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23383033' stroke-width='1.5'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 18px center;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-pink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-rose); box-shadow: 0 0 0 4px var(--c-blush); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--c-error); }
.field__error { margin: 0; font-size: var(--fs-sm); color: var(--c-error); }
.form-note { margin: 20px 0 24px; font-size: var(--fs-xs); color: var(--c-text-muted); }
.form-notice { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--radius-sm); margin-bottom: 28px; }
.form-notice:focus { outline: none; }
.form-notice--success { background: var(--c-success-bg); color: var(--c-success); }
.form-notice--success strong { color: #2c5a3b; }
.form-notice--error { background: var(--c-error-bg); color: var(--c-error); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   14. Footer
   ========================================================================== */
.site-footer { background: var(--c-white); padding-top: clamp(64px, 8vw, 96px); padding-bottom: 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; padding-bottom: 56px; }
.site-footer__brand { flex: 1 1 340px; max-width: 440px; display: flex; flex-direction: column; gap: 18px; }
.site-footer__statement { font-family: var(--f-display); font-size: 1.375rem; line-height: 1.35; letter-spacing: -0.01em; margin: 0; }
.site-footer__intro { font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.site-footer__label { font-family: var(--f-display); font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-text-muted); margin: 0 0 16px; }
.site-footer__list { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-sm); }
.site-footer__list .nav-link { padding: 2px 0; }
.site-footer__list .admin-hint { margin: 0; padding: 8px 12px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; border-top: 1px solid var(--c-line-soft); font-size: 14px; color: var(--c-text-muted); }
.site-footer__bottom .text-link { font-size: 14px; }

/* Blog list fallback */
.post-list { list-style: none; display: flex; flex-direction: column; }
.post-list__item { padding: 32px 0; border-top: 1px solid var(--c-line); }
.post-list__item h2 a { text-decoration: none; }

/* ==========================================================================
   15. Motion
   ========================================================================== */
.can-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.can-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
	.hero__copy > * { animation: mae-rise 0.9s var(--ease) both; }
	.hero__copy > *:nth-child(2) { animation-delay: 0.08s; }
	.hero__copy > *:nth-child(3) { animation-delay: 0.16s; }
	.hero__copy > *:nth-child(4) { animation-delay: 0.24s; }
	.hero__copy > *:nth-child(5) { animation-delay: 0.32s; }
	.hero__visual { animation: mae-fade 1.2s var(--ease) 0.2s both; }
}
@keyframes mae-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes mae-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   16. Elementor compatibility
   ========================================================================== */
.elementor-page .site-main > .elementor { width: 100%; }
.elementor-widget-text-editor { color: var(--c-text-muted); }
