/* ==========================================================================
   Justinas theme — custom CSS (v0.2)
   Colors, fonts, sizes and spacing live in theme.json. This file holds what
   theme.json can't express:
   1. Base & accents          6. About (portrait, checks)   11. Header & footer
   2. Block styles            7. Offer band                 12. Other pages
   3. Section heads           8. Projects                   13. Animation states
   4. Hero, glow, frame       9. Process                    14. Reduced motion
   5. Service cards          10. FAQ, Contact
   ========================================================================== */

:root {
	--jj-ink: var(--wp--preset--color--ink, #1F1A17);
	--jj-ink-soft: var(--wp--preset--color--ink-soft, #4A413B);
	--jj-muted: var(--wp--preset--color--muted, #6F665E);
	--jj-paper: var(--wp--preset--color--paper, #F7F2EC);
	--jj-line: var(--wp--preset--color--border, #ECE4DA);
	--jj-accent: var(--wp--preset--color--accent, #B9532E);
	--jj-ease: cubic-bezier(0.65, 0, 0.35, 1);
	--jj-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 1. Base & accents -------------------------------------------------------- */

/* Page sections sit flush: no default gap between header, main and footer */
.wp-site-blocks > * + * { margin-block-start: 0; }

body { -webkit-font-smoothing: antialiased; }
:is(h1, h2, h3) { text-wrap: balance; }
p { text-wrap: pretty; }

/* Accent words: select words in a heading and press Ctrl+I */
:is(h1, h2, h3, h4) em {
	font-style: normal;
	color: var(--jj-accent);
}

::selection { background: #F3D9CC; color: var(--jj-ink); }

:where(a, button, summary, input, textarea, select, .wp-element-button):focus-visible {
	outline: 2px solid var(--jj-ink);
	outline-offset: 3px;
	border-radius: 4px;
}

:where([id]) { scroll-margin-block-start: 1rem; }

.jj-muted { color: var(--jj-muted); }
.jj-tags { font-size: var(--wp--preset--font-size--small); line-height: 1.55; color: var(--jj-muted); }
.jj-lead {
	max-inline-size: 30rem;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.56;
	color: var(--jj-muted);
}
.jj-lead a { color: var(--jj-ink); }

/* Outline button (Styles → Outline): white pill with a thin border */
.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link {
	padding: calc(0.875rem - 1px) calc(1.5rem - 1px);
	border: 1px solid var(--jj-line);
	background: #fff;
	color: var(--jj-ink);
	transition: border-color 0.2s, background-color 0.2s;
}
.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--jj-ink);
	background: #fff;
	color: var(--jj-ink);
}
.wp-block-button__link { transition: background-color 0.2s, color 0.2s; }

/* 2. Block styles -------------------------------------------------------- */

/* Paragraph → "Viršutinė etiketė": small grey label above headings */
.is-style-eyebrow {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 1.4;
	color: var(--jj-muted);
}
.is-style-eyebrow a { color: inherit; text-decoration: none; }
.is-style-eyebrow a:hover { color: var(--jj-ink); }

/* Paragraph → "Ženkliukas su tašku": pill with a pulsing dot */
.is-style-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	inline-size: fit-content;
	padding: 6px 14px 6px 12px;
	border: 1px solid var(--jj-line);
	border-radius: 999px;
	background: rgb(255 255 255 / 0.7);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 1.4;
}
.is-style-badge::before {
	content: "";
	flex: none;
	inline-size: 8px;
	block-size: 8px;
	border-radius: 50%;
	background: var(--jj-accent);
}

/* Group → "Kortelė": cream card */
.wp-block-group.is-style-card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 2rem;
	border-radius: 24px;
	background: var(--jj-paper);
}
.wp-block-group.is-style-card > * { margin: 0; }
.is-style-card h3 { font-size: var(--wp--preset--font-size--large); }

/* Image → "Ikona": 24px icon in a white rounded box */
.wp-block-image.is-style-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	inline-size: 48px;
	block-size: 48px;
	margin-block-end: 1.5rem !important;
	border: 1px solid var(--jj-line);
	border-radius: 16px;
	background: #fff;
}
.wp-block-image.is-style-icon img { inline-size: 24px; block-size: 24px; }

/* Image → "Portretas su parašu": tall photo, caption as a white name card */
.wp-block-image.is-style-portrait {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: 32px;
	background: var(--jj-paper);
}
.wp-block-image.is-style-portrait img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
.wp-block-image.is-style-portrait figcaption {
	position: absolute;
	inset-inline-start: 20px;
	inset-block-end: 20px;
	margin: 0;
	padding: 12px 18px;
	border-radius: 16px;
	background: #fff;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.4;
	text-align: start;
	color: var(--jj-muted);
}
.wp-block-image.is-style-portrait figcaption strong {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--jj-ink);
}

/* Image → "Apvali nuotrauka": round avatar, zoomed in on the face */
.wp-block-image.is-style-avatar {
	box-sizing: border-box;
	inline-size: 72px;
	block-size: 72px;
	overflow: hidden;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--jj-line);
}
.wp-block-image.is-style-avatar img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: 45% 30%;
	transform: scale(1.55);
	transform-origin: 44% 34%;
}

/* List → "Varnelės": checkmarks in the accent color, lines between items */
.wp-block-list.is-style-checks {
	margin: 0;
	padding: 0;
	list-style: none;
	border-block-end: 1px solid var(--jj-line);
}
.wp-block-list.is-style-checks li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding-block: 16px;
	border-block-start: 1px solid var(--jj-line);
	line-height: 1.625;
}
.wp-block-list.is-style-checks li::before {
	content: "";
	flex: none;
	inline-size: 24px;
	block-size: 24px;
	margin-block-start: 1px;
	background: var(--jj-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 24px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 24px no-repeat;
}

/* Featured image → "Rėmelyje": thin border, rounded, fixed height */
.wp-block-post-featured-image.is-style-framed {
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--jj-line);
	border-radius: 24px;
	background: var(--jj-paper);
}
.wp-block-post-featured-image.is-style-framed img {
	display: block;
	inline-size: 100%;
	transition: transform 0.8s var(--jj-ease);
}

/* 3. Section heads: label + heading on the left, text on the right ------- */
.jj-section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 3rem;
}
.jj-section-head > * { margin: 0; }
.jj-section-head > .wp-block-group > * { margin: 0; }
.jj-section-head > .wp-block-group > * + * { margin-block-start: 1rem; }
.jj-section-head .jj-lead { flex: none; inline-size: 460px; max-inline-size: 100%; }
.jj-section-head + * { margin-block-start: clamp(2rem, 3.5vw, 3rem); }

/* 4. Hero ----------------------------------------------------------------- */
.jj-hero {
	position: relative;
	isolation: isolate;
	overflow: clip;
	padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 4.5vw, 4rem);
	text-align: center;
}
.jj-hero > .is-style-badge { margin-block-start: 0; }
.jj-hero .jj-lead { max-inline-size: 600px; color: #574F49; }
.jj-hero .wp-block-buttons { justify-content: center; padding-block-start: 0.5rem; }
.jj-stage { position: relative; margin-block-start: 2.5rem; }

/* Sunrise: warm light rising from behind the browser frame */
.jj-stage::before,
.jj-stage::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset-inline-start: 50%;
	border-radius: 50%;
	pointer-events: none;
}
.jj-stage::before {
	inset-block-start: 100px;
	inline-size: 1760px;
	block-size: 1120px;
	margin: -560px 0 0 -880px;
	background: radial-gradient(closest-side, rgb(240 138 85 / 0.55), rgb(222 97 41 / 0.26) 40%, rgb(185 83 46 / 0.08) 70%, rgb(185 83 46 / 0));
}
.jj-stage::after {
	inset-block-start: 40px;
	inline-size: 960px;
	block-size: 520px;
	margin: -260px 0 0 -480px;
	background: radial-gradient(closest-side, rgb(222 97 41 / 0.34), rgb(222 97 41 / 0));
}

/* Browser frame */
.jj-frame {
	overflow: hidden;
	border: 1px solid var(--jj-line);
	border-radius: 32px;
	background: var(--jj-paper);
	text-align: start;
}
.jj-frame__bar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 20px;
	border-block-end: 1px solid var(--jj-line);
	background: #fff;
}
.jj-frame__dot { inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--jj-line); }
.jj-frame__url {
	display: inline-block;
	max-inline-size: 120px;
	margin-inline-start: 16px;
	overflow: hidden;
	white-space: nowrap;
	font-size: 13px;
	line-height: 16px;
	color: var(--jj-muted);
}
.jj-frame__progress {
	position: absolute;
	inset-inline: 0;
	inset-block-end: -1px;
	block-size: 2px;
	background: var(--jj-accent);
	transform-origin: left center;
	opacity: 0;
}
.jj-frame__view { position: relative; aspect-ratio: 1280 / 612; overflow: hidden; }
.jj-wf { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; display: none; }
.jj-frame__shot { position: absolute; inset: 0; overflow: hidden; }
.jj-frame__shot img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	--y1: var(--s1); --y2: var(--s2); --y3: var(--s3); --y4: var(--s4); --y5: var(--s5);
}

/* 5. Service cards --------------------------------------------------------- */
.jj-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}
.jj-cards > * { margin: 0; }

/* 6. About ------------------------------------------------------------------ */
.jj-about {
	display: grid;
	grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
	gap: clamp(3rem, 6.7vw, 6rem);
	align-items: center;
}
.jj-about > * { margin: 0; }
.jj-about-text { display: flex; flex-direction: column; gap: 1.5rem; }
.jj-about-text > * { margin: 0; }
.jj-about-text > .wp-block-group > * { margin: 0; }
.jj-about-text > .wp-block-group > * + * { margin-block-start: 1rem; }
.jj-about-text .wp-block-buttons { padding-block-start: 0.5rem; }
.jj-intro { max-inline-size: 580px; font-size: 1.25rem; line-height: 1.6; }
.jj-about .is-style-checks { max-inline-size: 580px; }

/* 7. Offer band (dark) ------------------------------------------------------ */
.jj-band {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 3rem;
	padding: clamp(2.25rem, 4.4vw, 4rem);
	border-radius: 32px;
	background: var(--jj-ink);
	color: #fff;
}
.jj-band > * { margin: 0; }
.jj-band-text > * { margin: 0; }
.jj-band-text > * + * { margin-block-start: 1rem; }
.jj-band .is-style-eyebrow { color: var(--wp--preset--color--accent-light); }
.jj-band h2 { color: #fff; }
.jj-band h2 em {
	background-image: linear-gradient(180deg, #F08A55 0%, #DE6129 55%, #B9532E 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.jj-band-text > p:last-child {
	max-inline-size: 560px;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.56;
	color: var(--wp--preset--color--on-dark);
}
.jj-band .wp-block-buttons { flex: none; }
.jj-band .wp-block-button__link { background: #fff; color: var(--jj-ink); }
.jj-band .wp-block-button__link:hover { background: var(--jj-paper); color: var(--jj-ink); }
.jj-band :focus-visible { outline-color: #fff; }

/* 8. Projects --------------------------------------------------------------- */
.jj-projects {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	align-items: start;
}
.jj-projects > * { margin: 0; }
.jj-project-query .wp-block-post-template,
.jj-project-grid { margin: 0; padding: 0; list-style: none; }
.jj-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 1.5rem; }
.jj-project-card { display: flex; flex-direction: column; gap: 1rem; }
.jj-project-card > * { margin: 0; }
.jj-project-card .is-style-framed img { block-size: 390px; object-fit: cover; object-position: left top; }
.jj-project-card:hover .is-style-framed img { transform: scale(1.03); }
.jj-project-meta { gap: 0.5rem 1rem; }
.jj-project-meta > * { margin: 0; }
.jj-project-card .wp-block-post-title { font-size: var(--wp--preset--font-size--large); }
.jj-project-card .wp-block-post-excerpt__excerpt { margin: 0; }
.jj-project-card .wp-block-read-more { color: var(--jj-ink); }
.jj-project-card .wp-block-read-more:hover { text-decoration: underline; }

.jj-slot {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	box-sizing: border-box;
	min-block-size: 390px;
	padding: 2rem;
	border: 1.5px dashed #D9CEC1;
	border-radius: 24px;
	text-align: center;
}
.jj-slot > * { margin: 0; }
.jj-slot .wp-block-buttons { justify-content: center; margin-block-start: 0.5rem; }

/* 9. Process ---------------------------------------------------------------- */
.jj-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem;
}
.jj-steps > * { margin: 0; }
.jj-step {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-block-start: 1.5rem;
	border-block-start: 1px solid #E0D6CA;
}
.jj-step > * { margin: 0; }
.jj-step:nth-child(2) { padding-block-start: calc(1.5rem - 1px); border-block-start: 2px solid var(--jj-accent); }
.jj-step-num { font-size: var(--wp--preset--font-size--small); font-weight: 500; color: var(--jj-muted); }
.jj-step h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.015em; }
.jj-step > p:last-child { font-size: var(--wp--preset--font-size--small); line-height: 1.6; color: var(--jj-muted); }

/* 10. FAQ ------------------------------------------------------------------- */
.jj-faq {
	display: grid;
	grid-template-columns: minmax(0, 400px) minmax(0, 760px);
	justify-content: space-between;
	gap: 4rem;
	align-items: start;
}
.jj-faq > * { margin: 0; }
.jj-faq-intro > * { margin: 0; }
.jj-faq-intro > * + * { margin-block-start: 1rem; }
.jj-faq-list { border-block-start: 1px solid var(--jj-line); }
.jj-faq-list > * { margin: 0; }
.jj-faq .wp-block-details { padding-block: 24px; border-block-end: 1px solid var(--jj-line); }
.jj-faq .wp-block-details summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	cursor: pointer;
	list-style: none;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.1875rem;
	font-weight: 600;
	line-height: 1.37;
	letter-spacing: -0.015em;
}
.jj-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.jj-faq .wp-block-details summary::marker { content: ""; }
.jj-faq .wp-block-details summary::after {
	content: "";
	flex: none;
	inline-size: 20px;
	block-size: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E") center / 20px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E") center / 20px no-repeat;
	transition: transform 0.3s var(--jj-ease);
}
.jj-faq .wp-block-details[open] summary::after {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
	transform: rotate(180deg);
}
.jj-faq .wp-block-details > :not(summary) {
	max-inline-size: 680px;
	margin: 12px 0 0;
	line-height: 1.625;
	color: var(--jj-muted);
}

/* Contact ------------------------------------------------------------------- */
.jj-contact {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	padding: clamp(3.5rem, 7.8vw, 7rem) clamp(1.5rem, 4.4vw, 4rem);
	border-radius: 32px;
	background: var(--jj-paper);
	text-align: center;
}
.jj-contact > * { margin: 0; }
.jj-contact-title { font-size: var(--wp--preset--font-size--xx-large); line-height: 1.02; letter-spacing: -0.035em; }
.jj-contact .jj-lead { max-inline-size: 600px; }
.jj-contact .wp-block-buttons { justify-content: center; padding-block-start: 0.5rem; }
.jj-contact-mail { font-size: var(--wp--preset--font-size--small); }
.jj-contact-mail a { color: var(--jj-muted); text-decoration: none; }
.jj-contact-mail a:hover { color: var(--jj-ink); text-decoration: underline; }

/* 11. Header & footer --------------------------------------------------------- */
.jj-brand > * { margin: 0; }
.jj-mark a {
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 32px;
	block-size: 32px;
	border-radius: 9px;
	background: var(--jj-ink);
	color: #fff;
	font-family: var(--wp--preset--font-family--display);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
	text-decoration: none;
}
.jj-header .wp-block-site-title a { color: var(--jj-ink); }
.jj-nav,
.jj-nav .wp-block-navigation__container { gap: 2rem; }
.jj-nav .wp-block-navigation-item__content { color: var(--jj-muted); transition: color 0.2s; }
.jj-nav .wp-block-navigation-item__content:hover { color: var(--jj-ink); }
.jj-nav .jj-only-menu { display: none; }
.jj-header-cta .wp-block-button__link { padding: 0.75rem 1.375rem; }

/* Phone menu (opens full screen) */
.jj-nav .wp-block-navigation__responsive-container.is-menu-open .jj-only-menu { display: flex; }
.jj-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--jj-ink);
}
.jj-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 1rem; }

.jj-footer {
	border-block-start: 1px solid var(--jj-line);
	font-size: var(--wp--preset--font-size--small);
	color: var(--jj-muted);
}
.jj-footer p { margin: 0; }
.jj-footer a { color: var(--jj-muted); text-decoration: none; }
.jj-footer a:hover { color: var(--jj-ink); }
.jj-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* 12. Other pages --------------------------------------------------------------- */
.jj-page-hero .jj-lead { margin-block-start: 1rem; }
.jj-post-nav { border-block-start: 1px solid var(--jj-line); }
.wp-block-post-excerpt.jj-lead { flex: 0 1 620px; max-inline-size: 620px; }

/* Responsive ----------------------------------------------------------------- */
@media (max-width: 1023px) {
	.jj-header .wp-block-site-title { display: none; }
	.jj-nav,
	.jj-nav .wp-block-navigation__container { gap: 1.25rem; }
	.jj-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
	.jj-faq { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.jj-about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
}

@media (max-width: 781px) {
	.jj-section-head { flex-direction: column; align-items: flex-start; gap: 0.875rem; }
	.jj-section-head .jj-lead { inline-size: auto; }
	.wp-block-buttons.jj-header-cta { display: none; }
	.jj-nav .jj-only-menu { display: flex; }

	.jj-stage { margin-block-start: 1rem; }
	.jj-stage::before { inset-block-start: 60px; inline-size: 900px; block-size: 700px; margin: -350px 0 0 -450px; }
	.jj-stage::after { inset-block-start: 30px; inline-size: 520px; block-size: 340px; margin: -170px 0 0 -260px; }
	.jj-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.jj-hero .wp-block-button__link { display: block; inline-size: 100%; box-sizing: border-box; }
	.jj-frame { border-radius: 20px; }
	.jj-frame__bar { gap: 6px; padding: 10px 14px; }
	.jj-frame__dot { inline-size: 8px; block-size: 8px; }
	.jj-frame__url { margin-inline-start: 10px; font-size: 12px; }
	.jj-frame__view { aspect-ratio: 4 / 5; }
	.jj-frame__shot img { --y1: var(--m1); --y2: var(--m2); --y3: var(--m3); --y4: var(--m4); --y5: var(--m5); }

	.jj-cards { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
	.wp-block-group.is-style-card { gap: 0.75rem; padding: 1.5rem; border-radius: 20px; }
	.wp-block-image.is-style-icon { inline-size: 44px; block-size: 44px; margin-block-end: 0.75rem !important; border-radius: 14px; }

	.jj-about { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.wp-block-image.is-style-portrait { border-radius: 20px; }
	.wp-block-image.is-style-portrait figcaption { inset-inline-start: 14px; inset-block-end: 14px; padding: 10px 14px; border-radius: 12px; }
	.jj-intro { font-size: 1.0625rem; }

	.jj-band { flex-direction: column; align-items: stretch; gap: 1.5rem; border-radius: 24px; }
	.jj-band h2 br { display: none; }
	.jj-band .wp-block-button, .jj-band .wp-block-button__link { inline-size: 100%; box-sizing: border-box; text-align: center; }

	.jj-projects, .jj-project-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.jj-project-card .is-style-framed { border-radius: 20px; }
	.jj-project-card .is-style-framed img { block-size: 220px; }
	.jj-slot { min-block-size: 0; padding: 2.5rem 1.5rem; border-radius: 20px; }

	.jj-steps { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }

	.jj-faq .wp-block-details summary { font-size: 1.0625rem; }

	.jj-contact { border-radius: 24px; }
	.jj-contact .wp-block-buttons { flex-direction: column; align-items: stretch; align-self: stretch; }
	.jj-contact .wp-block-button__link { display: block; inline-size: 100%; box-sizing: border-box; }
	.wp-block-image.is-style-avatar { inline-size: 64px; block-size: 64px; }

	.jj-footer .alignwide { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 599px) {
	.jj-header .wp-block-site-title { display: block; }
}

/* 13. Animation ---------------------------------------------------------------
   Only for visitors who haven't asked for reduced motion.
   Hero frame timeline: address types (0.15 s) → sketch draws (0.1–1.2 s)
   → real site wipes in (1.1–1.8 s) → sketch fades → site browses slowly, forever.
   The page pauses the browsing when the frame is off screen or hovered. */
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }

	/* reveal start states (GSAP shows them, see animations.js) */
	.jj-anim .reveal,
	.jj-anim .reveal-stagger > * { opacity: 0; }

	.is-style-badge::before { animation: jj-ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite; }

	.jj-stage::before { animation: jj-rise 1.8s var(--jj-out) both, jj-breathe 9s ease-in-out 1.8s infinite alternate; }
	.jj-stage::after { animation: jj-rise 1.8s var(--jj-out) 0.15s both, jj-sway 14s ease-in-out 2s infinite alternate; }

	.jj-frame__url { animation: jj-type 0.5s steps(15, end) 0.15s both; }
	.jj-frame__progress { animation: jj-progress 1.9s cubic-bezier(0.3, 0.6, 0.4, 1) 0.2s both; }
	.jj-wf--desktop { display: block; animation: jj-fade-out 0.45s ease 1.7s forwards; }
	.jj-wf .g { transform-box: fill-box; transform-origin: left center; animation: jj-grow 0.56s var(--jj-out) var(--d, 0s) both; }
	.jj-wf .l { stroke-dasharray: 1400; animation: jj-stroke 0.7s cubic-bezier(0.4, 0, 0.2, 1) var(--d, 0s) both; }
	.jj-frame__shot { animation: jj-reveal 0.7s var(--jj-ease) 1.1s both; }
	.jj-frame__shot img { animation: jj-browse 40s 2.6s infinite; }
	.jj-frame:hover .jj-frame__shot img,
	.jj-stage.is-offscreen .jj-frame__shot img,
	.jj-stage.is-offscreen::before,
	.jj-stage.is-offscreen::after { animation-play-state: paused; }

	@media (max-width: 781px) {
		.jj-wf--desktop { display: none; }
		.jj-wf--mobile { display: block; animation: jj-fade-out 0.45s ease 1.7s forwards; }
	}

	/* FAQ answers slide open (browsers that support it) */
	@supports (interpolate-size: allow-keywords) {
		.jj-faq { interpolate-size: allow-keywords; }
		.jj-faq .wp-block-details::details-content {
			block-size: 0;
			overflow: clip;
			transition: block-size 0.35s var(--jj-ease), content-visibility 0.35s allow-discrete;
		}
		.jj-faq .wp-block-details[open]::details-content { block-size: auto; }
	}
}

@keyframes jj-ping {
	0% { box-shadow: 0 0 0 0 rgb(185 83 46 / 0.45); }
	80%, 100% { box-shadow: 0 0 0 7px rgb(185 83 46 / 0); }
}
@keyframes jj-rise { from { transform: translateY(180px) scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes jj-breathe { from { transform: scale(1); opacity: 1; } to { transform: scale(1.07); opacity: 0.8; } }
@keyframes jj-sway { 0% { transform: translateX(0); } 33% { transform: translateX(-14.6%); } 100% { transform: translateX(14.6%); } }
@keyframes jj-type { from { max-inline-size: 0; } to { max-inline-size: 120px; } }
@keyframes jj-progress {
	0% { transform: scaleX(0); opacity: 1; }
	75% { transform: scaleX(0.9); opacity: 1; }
	88% { transform: scaleX(1); opacity: 1; }
	100% { transform: scaleX(1); opacity: 0; }
}
@keyframes jj-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes jj-stroke { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@keyframes jj-fade-out { to { opacity: 0; visibility: hidden; } }
@keyframes jj-reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
/* Browse: scroll → pause → scroll … → back to the top.
   The stops come from the --s1…--s5 (desktop) and --m1…--m5 (phone) values on .jj-frame */
@keyframes jj-browse {
	0%, 7% { transform: translateY(0); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
	13%, 22% { transform: translateY(var(--y1)); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
	28%, 37% { transform: translateY(var(--y2)); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
	43%, 52% { transform: translateY(var(--y3)); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
	58%, 67% { transform: translateY(var(--y4)); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
	73%, 88% { transform: translateY(var(--y5)); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
	97%, 100% { transform: translateY(0); }
}

/* 14. Reduced motion: no animation, everything visible ---------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* 15. Request page (Nemokamas dizainas) -------------------------------------
   Desktop: intro and steps on the left, the form card on the right.
   Phone: intro → form → steps, so nobody scrolls past the steps to find the form. */
.jj-request-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 640px);
	grid-template-rows: auto 1fr;
	column-gap: clamp(3rem, 6.7vw, 6rem);
	row-gap: 2.5rem;
	align-items: start;
}
.jj-request-grid > * { margin: 0; }
.jj-request-intro { grid-column: 1; grid-row: 1; padding-block-start: 0.5rem; }
.jj-request-card { grid-column: 2; grid-row: 1 / span 2; }
.jj-request-next { grid-column: 1; grid-row: 2; }
.jj-request-intro > *, .jj-request-next > * { margin: 0; }
.jj-request-intro > * + * { margin-block-start: 1.25rem; }
.jj-request-next > * + * { margin-block-start: 1.25rem; }
.jj-request-title { font-size: clamp(2.375rem, 1.6rem + 2.6vw, 3.5rem); line-height: 1.04; }
.jj-small-title { font-size: 1.25rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.015em; }

.jj-request-card {
	box-sizing: border-box;
	padding: clamp(1.75rem, 2.8vw, 2.5rem) clamp(1.25rem, 2.8vw, 2.5rem);
	border-radius: 28px;
	background: var(--jj-paper);
}
.jj-request-card > * { margin: 0; }

/* List → "Žingsniai": numbered steps in small circles */
.wp-block-list.is-style-steps {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: jj-step;
}
.wp-block-list.is-style-steps li {
	position: relative;
	min-block-size: 36px;
	padding-block-start: 5px;
	padding-inline-start: 52px;
	counter-increment: jj-step;
	line-height: 1.6;
	color: var(--jj-muted);
}
.wp-block-list.is-style-steps li strong { font-weight: 600; color: var(--jj-ink); }
.wp-block-list.is-style-steps li::before {
	content: counter(jj-step);
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	inline-size: 36px;
	block-size: 36px;
	border: 1px solid var(--jj-line);
	border-radius: 50%;
	background: #fff;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--jj-ink);
}

.jj-note { gap: 14px; padding-block-start: 1.5rem; border-block-start: 1px solid var(--jj-line); }
.jj-note > * { margin: 0; }
.jj-note .wp-block-image.is-style-avatar { inline-size: 48px; block-size: 48px; border-width: 0; }
.jj-note .wp-block-group > * { margin: 0; font-size: 0.9375rem; line-height: 1.45; }

/* The form */
.jj-form-head { margin-block-end: 22px; }
.jj-form-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.625rem;
	font-weight: 600;
	line-height: 1.23;
	letter-spacing: -0.02em;
}
.jj-form-note { margin: 4px 0 0; font-size: 0.9375rem; color: var(--jj-muted); }
.jj-form-alert {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-radius: 12px;
	background: #FCE9E6;
	font-size: 0.9375rem;
	color: #8A1C12;
}
.jj-form { display: flex; flex-direction: column; gap: 22px; margin: 0; }
.jj-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.jj-form-field { display: flex; flex-direction: column; gap: 8px; }
.jj-form label,
.jj-form legend { font-size: var(--wp--preset--font-size--small); font-weight: 500; color: var(--jj-ink); }
.jj-opt { font-weight: 400; color: var(--jj-muted); }
.jj-input {
	box-sizing: border-box;
	inline-size: 100%;
	min-block-size: 52px;
	padding: 0 16px;
	border: 1px solid #948A81;
	border-radius: 12px;
	background: #fff;
	font: inherit;
	font-size: 1rem;
	color: var(--jj-ink);
	transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.jj-input { min-block-size: 128px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.jj-input::placeholder { color: #7D736B; }
.jj-input:hover { border-color: var(--jj-muted); }
.jj-input:focus { outline: none; border-color: var(--jj-ink); box-shadow: 0 0 0 3px rgb(185 83 46 / 0.22); }
.jj-input[aria-invalid="true"] { border-color: #B42318; }
.jj-form-error { margin: 0; font-size: var(--wp--preset--font-size--x-small); color: #B42318; }

.jj-chips { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.jj-chips legend { margin-block-end: 10px; padding: 0; }
.jj-chips-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.jj-chip { position: relative; display: block; }
.jj-chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.jj-chip span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-block-size: 48px;
	padding: 0 18px;
	border: 1px solid #948A81;
	border-radius: 999px;
	background: #fff;
	font-size: 0.9375rem;
	font-weight: 500;
	text-align: center;
	color: var(--jj-ink);
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.jj-chip:hover span { border-color: var(--jj-ink); }
.jj-chip input:checked + span { border-color: var(--jj-ink); background: var(--jj-ink); color: #fff; }
.jj-chip input:focus-visible + span { outline: 2px solid var(--jj-ink); outline-offset: 3px; }

.jj-hp { position: absolute !important; inset-inline-start: -9999px; inline-size: 1px; block-size: 1px; overflow: hidden; }

.jj-form-actions { display: flex; flex-direction: column; gap: 14px; padding-block-start: 4px; }
.jj-form-submit { inline-size: 100%; min-block-size: 56px; border: 0; font-size: 1rem; cursor: pointer; }
.jj-form-privacy { margin: 0; font-size: var(--wp--preset--font-size--x-small); line-height: 1.55; text-align: center; color: var(--jj-muted); }
.jj-form-privacy a { color: var(--jj-ink); text-underline-offset: 3px; }

.jj-form-thanks { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-block: 1rem; }
.jj-form-thanks > * { margin: 0; }
.jj-form-thanks__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 56px;
	block-size: 56px;
	border-radius: 50%;
	background: #fff;
	color: var(--jj-accent);
}
.jj-form-thanks h2 { font-size: clamp(1.875rem, 1.5rem + 1vw, 2.25rem); line-height: 1.08; }
.jj-form-thanks p { max-inline-size: 480px; line-height: 1.6; color: var(--jj-muted); }
.jj-form-thanks p a { color: var(--jj-ink); text-underline-offset: 3px; }
.jj-form-thanks .wp-element-button { text-decoration: none; }

/* 16. Text pages and project stories --------------------------------------- */
.jj-page-title { font-size: clamp(2.375rem, 1.6rem + 2.6vw, 3.5rem); line-height: 1.04; }
.jj-prose { margin-block-start: 2rem; }
:is(.jj-prose, .wp-block-post-content) > h2 {
	margin-block-start: clamp(2.5rem, 4vw, 3.5rem);
	font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.25rem);
	line-height: 1.12;
}
:is(.jj-prose, .wp-block-post-content) > h3 { margin-block-start: 2rem; font-size: 1.25rem; }
:is(.jj-prose, .wp-block-post-content) :where(p, li) { line-height: 1.7; }
:is(.jj-prose, .wp-block-post-content) > :where(ul, ol):not(.is-style-checks):not(.is-style-steps) { padding-inline-start: 1.25rem; }
:is(.jj-prose, .wp-block-post-content) a { text-underline-offset: 3px; }
.jj-prose .jj-updated { font-size: var(--wp--preset--font-size--small); color: var(--jj-muted); }
.wp-block-post-content > .jj-lead { max-inline-size: var(--wp--style--global--content-size, 720px); }
.wp-block-post-content > .wp-block-image img { border: 1px solid var(--jj-line); border-radius: 24px; }
.wp-block-post-content > .wp-block-image figcaption { margin-block-start: 0.75rem; text-align: center; color: var(--jj-muted); }
.wp-block-image.jj-phone-shot { max-inline-size: 320px; margin-inline: auto !important; }
.wp-block-image.jj-phone-shot img { border-radius: 28px; }
.jj-quote { padding: 1.75rem 2rem; border-radius: 24px; background: var(--jj-paper); }
.jj-quote p { margin: 0; }

@media (max-width: 781px) {
	.jj-request-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 2rem; }
	.jj-request-intro, .jj-request-card, .jj-request-next { grid-column: auto; grid-row: auto; }
	.jj-request-card { border-radius: 24px; }
	.jj-form-grid, .jj-chips-grid { grid-template-columns: minmax(0, 1fr); }
	.jj-form-title { font-size: 1.375rem; }
}
