@charset "UTF-8";
/*
Theme Name: Fratoz
Theme URI: https://fratoz.vn
Author: Fratoz
Author URI: https://fratoz.vn
Description: Block theme for fratoz.vn — wayfinding, installations and brand studio in Hanoi. Pairs with the Fratoz Core plugin (projects, story blocks).
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fratoz-block
*/

/*
 * Only what theme.json can't express lives here: block style variations,
 * the overlay header, focus states and a few layout details.
 * Colors, type and spacing always come from theme.json presets.
 */

/* ---------- Base ---------- */

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

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

img {
	height: auto;
}

/* Highlight format ("We stick around."): a red bar behind the words. */
mark,
mark.has-inline-color {
	padding: 0 0.12em;
	background-color: var(--wp--preset--color--red);
	color: var(--wp--preset--color--white);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* ---------- Header (sticky) ---------- */

/* The template part wrapper is what sticks; it is the header's direct parent in .wp-site-blocks. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}

/* Homepage / project pages: header floats over the hero photo instead of pushing it down. */
.wp-site-blocks > header.wp-block-template-part:has(.fratoz-header.is-overlay) {
	position: fixed;
	right: 0;
	left: 0;
}

/* WordPress' admin bar stops being fixed on small screens — don't leave a gap above the header. */
@media (max-width: 600px) {
	.wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

html {
	scroll-padding-top: 6rem; /* anchor links don't hide under the header */
}

.fratoz-header {
	position: relative;
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.fratoz-header.is-scrolled {
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Over the photo: transparent + white until the visitor scrolls. */
.fratoz-header.is-overlay:not(.is-scrolled) {
	background-color: transparent;
	color: var(--wp--preset--color--white);
}

/* Logo is inline SVG using currentColor: red on white, white over photos. */
.fratoz-logo {
	display: inline-flex;
	color: var(--wp--preset--color--red);
	line-height: 0;
}

.is-overlay:not(.is-scrolled) .fratoz-logo {
	color: var(--wp--preset--color--white);
}

.fratoz-logo svg {
	width: auto;
	height: 26px;
	transition: height 0.25s;
}

.is-scrolled .fratoz-logo svg {
	height: 22px;
}

.fratoz-header .wp-block-navigation a:where(:not(.wp-element-button)) {
	text-decoration: none;
}

.fratoz-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--red);
}

.fratoz-header.is-overlay:not(.is-scrolled) .wp-block-navigation a:hover {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-decoration-color: var(--wp--preset--color--red);
}

/* Mobile menu overlay: full-screen red. */
.fratoz-header .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--red) !important;
	color: var(--wp--preset--color--white) !important;
	font-size: var(--wp--preset--font-size--large);
}

/* ---------- Block styles (registered in functions.php) ---------- */

/* Paragraph: Eyebrow — solid red tag above section headings (white tag on red/ink sections). */
.is-style-eyebrow {
	display: inline-block;
	width: fit-content;
	padding: 0.5em 0.8em 0.45em;
	background: var(--wp--preset--color--red);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.is-style-section-red .is-style-eyebrow,
.has-red-background-color .is-style-eyebrow {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--red);
}

.is-style-section-ink .is-style-eyebrow {
	background: var(--wp--preset--color--red);
	color: var(--wp--preset--color--white);
}

.has-text-align-center.is-style-eyebrow,
.is-style-eyebrow.aligncenter {
	display: table;
	margin-inline: auto;
}

/* Paragraph: Lead — bigger intro text. */
.is-style-lead {
	max-width: 38rem;
	font-size: var(--wp--preset--font-size--medium);
}

/* Paragraph: Number tag — solid red square with a step number ("01"). */
.is-style-number-tag {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 3.25rem;
	height: 3.25rem;
	margin: 0;
	background: var(--wp--preset--color--red);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1;
}

.is-style-section-red .is-style-number-tag {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--red);
}

/* Button: Arrow link — text link with a thick underline. */
.wp-block-button.is-style-arrow .wp-block-button__link {
	padding: 0 0 0.35rem;
	border: 0;
	border-bottom: 3px solid var(--wp--preset--color--red);
	background: none !important;
	color: inherit !important;
}

.wp-block-button.is-style-arrow .wp-block-button__link::after {
	content: " →";
}

.is-style-section-red .wp-block-button.is-style-arrow .wp-block-button__link,
.is-style-section-ink .wp-block-button.is-style-arrow .wp-block-button__link {
	border-color: currentColor;
}

/* Button: Outline (core style) — keep it on-brand. */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: inherit;
	border-color: currentColor;
}

/* Cover: Hero — darker at the bottom so white text stays readable on busy photos. */
.wp-block-cover.is-style-hero {
	align-items: flex-end;
	min-height: min(100svh, 940px) !important;
	padding-top: 8rem;
	padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.wp-block-cover.is-style-hero .wp-block-cover__background {
	opacity: 1 !important;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.05) 25%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.85) 100%) !important;
}

/* Gallery: Masonry — mixed heights, good for event photos. */
.wp-block-gallery.is-style-masonry.has-nested-images {
	display: block;
	columns: 2;
	column-gap: var(--wp--preset--spacing--30);
}

@media (min-width: 782px) {
	.wp-block-gallery.is-style-masonry.has-nested-images {
		columns: 3;
	}
}

.wp-block-gallery.is-style-masonry.has-nested-images figure.wp-block-image {
	width: 100% !important;
	margin: 0 0 var(--wp--preset--spacing--30);
	break-inside: avoid;
}

.wp-block-gallery.is-style-masonry.has-nested-images figure.wp-block-image img {
	height: auto !important;
	object-fit: initial !important;
}

/* Gallery: Logos — grey client logos in a tidy grid. */
.wp-block-gallery.is-style-logos.has-nested-images {
	align-items: center;
	gap: 1.75rem 2rem;
}

.wp-block-gallery.is-style-logos.has-nested-images figure.wp-block-image {
	width: calc(33.333% - 2rem) !important;
	justify-content: center;
}

@media (min-width: 782px) {
	.wp-block-gallery.is-style-logos.has-nested-images figure.wp-block-image {
		width: calc(16.666% - 2rem) !important;
	}
}

.wp-block-gallery.is-style-logos.has-nested-images figure.wp-block-image img {
	width: auto !important;
	max-height: 34px;
	margin-inline: auto;
	object-fit: contain !important;
	filter: grayscale(1) contrast(1.1);
	opacity: 0.7;
	transition: opacity 0.2s, filter 0.2s;
}

.wp-block-gallery.is-style-logos.has-nested-images figure.wp-block-image img:hover {
	filter: none;
	opacity: 1;
}

/* Group: Card — white box with an ink border (service cards).
   In a row of columns, all cards stretch to the tallest one and their links line up at the bottom. */
.wp-block-group.is-style-card {
	display: flex;
	flex-direction: column;
	border: 2px solid var(--wp--preset--color--ink);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

.wp-block-column > .wp-block-group.is-style-card:only-child {
	height: 100%;
}

.wp-block-group.is-style-card > .wp-block-group:last-child {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.wp-block-group.is-style-card > .wp-block-group:last-child > .wp-block-buttons:last-child {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--20);
}

/* ---------- Project grids (Work page, homepage sections) ---------- */

.fratoz-project-grid .wp-block-post-featured-image {
	overflow: hidden;
}

.fratoz-project-grid .wp-block-post-featured-image img {
	transition: transform 0.5s;
}

.fratoz-project-grid .wp-block-post:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}

.fratoz-project-grid .wp-block-post-title a {
	text-decoration: none;
}

.fratoz-project-grid .taxonomy-portfolio-category,
.fratoz-meta {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fratoz-project-grid .taxonomy-portfolio-category a {
	text-decoration: none;
}

/* Service filter on the Work page. */
.fratoz-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fratoz-filter a {
	display: inline-block;
	padding: 0.55rem 0.9rem;
	border: 2px solid var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}

.fratoz-filter a:hover,
.fratoz-filter a[aria-current="page"] {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

/* ---------- Footer ---------- */

.fratoz-footer a {
	text-decoration: none;
}

.fratoz-footer a:hover {
	color: #ff8a8e;
}

.fratoz-footer .fratoz-logo {
	color: var(--wp--preset--color--white);
}

.fratoz-footer h2 {
	color: #9a9a9a;
}

.fratoz-footer-line em {
	font-style: normal;
	color: #ff6b70;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

/* ---------- Fixes from the first real-site check ---------- */

/* Header needs air above/below the logo and menu. */
.fratoz-header__bar {
	padding-top: 1.1rem;
	padding-bottom: 1.1rem;
	transition: padding 0.25s;
}

.is-scrolled .fratoz-header__bar {
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

/* Outline buttons: visible border in whatever colour the text is. */
.wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid currentColor;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink) !important;
	border-color: var(--wp--preset--color--white);
}

/* Footer lists: no bullets. */
.fratoz-footer ul.wp-block-list {
	padding-left: 0;
	list-style: none;
}

/* Caption rows (project · year): the year never breaks. */
.fratoz-meta > p:last-child {
	flex-shrink: 0;
}

/* Project stories: the cover screen (fratoz/project-hero) sits flush on top, then the timeline and the story
   blocks with a generous, even rhythm; the last block leaves room before previous / next. */
.single-portfolio main > .wp-block-post-content { margin-block: 0; padding-block-end: var(--wp--preset--spacing--60); }
.single-portfolio .wp-block-post-content > * + * {
	margin-block-start: var(--wp--preset--spacing--60);
}
.single-portfolio .wp-block-post-content > .wp-block-fratoz-project-summary { margin-block-start: 0; }
.single-portfolio .wp-block-post-content > .wp-block-fratoz-project-summary + * { margin-block-start: 0; }
.single-portfolio main > * { margin-block-start: 0; }

/* Full-width sections sit flush against each other (no white strip between coloured bands). */
.wp-block-post-content > .alignfull + .alignfull {
	margin-block-start: 0;
}

/* Footer bottom line may wrap on phones (the no-shrink rule above is for "project · year" captions). */
.fratoz-footer .fratoz-meta > p:last-child {
	flex-shrink: 1;
}

/* ---------- Columns: Steps — full-width photo panels (How we work) ----------
   Each column holds one Cover block. Panels sit edge to edge; the hovered one widens,
   red arrow badges link the steps. Stacks on phones. */

.wp-block-columns.is-style-steps {
	gap: 0 !important;
	margin-top: 0;
	margin-bottom: 0;
}

.wp-block-columns.is-style-steps > .wp-block-column {
	position: relative;
	transition: flex-grow 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Equal panels side by side from tablet up; phones keep WordPress' stacking (full width each). */
@media (min-width: 782px) {
	.wp-block-columns.is-style-steps > .wp-block-column {
		flex: 1 1 0 !important;
	}
}

.wp-block-columns.is-style-steps .wp-block-cover {
	height: 100%;
	min-height: min(78vh, 680px) !important;
	padding: clamp(1.5rem, 3vw, 3rem);
	overflow: hidden;
	color: var(--wp--preset--color--white);
}

/* Darker at the bottom, where the text sits. */
.wp-block-columns.is-style-steps .wp-block-cover__background {
	opacity: 1 !important;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0.85) 100%) !important;
}

.wp-block-columns.is-style-steps .wp-block-cover__image-background {
	transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.wp-block-columns.is-style-steps .wp-block-cover__inner-container {
	max-width: 26rem;
}

.wp-block-columns.is-style-steps .wp-block-cover h3 {
	margin-top: var(--wp--preset--spacing--30);
	font-size: clamp(2.25rem, 4vw, 3.5rem);
}

.wp-block-columns.is-style-steps .is-style-number-tag {
	width: 4.25rem;
	height: 4.25rem;
	font-size: 1.5rem;
}

/* Thin divider between panels. */
.wp-block-columns.is-style-steps > .wp-block-column + .wp-block-column {
	border-left: 1px solid rgba(255, 255, 255, 0.25);
}

/* Red arrow badge between panels. */
.wp-block-columns.is-style-steps > .wp-block-column:not(:last-child)::after {
	content: "→";
	position: absolute;
	top: 50%;
	right: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--red);
	color: var(--wp--preset--color--white);
	font-size: 1.5rem;
	font-weight: 700;
	transform: translate(50%, -50%);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

@media (min-width: 782px) and (hover: hover) {
	.wp-block-columns.is-style-steps > .wp-block-column:hover {
		flex-grow: 1.6 !important;
	}

	.wp-block-columns.is-style-steps > .wp-block-column:hover .wp-block-cover__image-background {
		transform: scale(1.05);
	}
}

@media (max-width: 781px) {
	.wp-block-columns.is-style-steps .wp-block-cover {
		min-height: 115vw !important;
	}

	.wp-block-columns.is-style-steps > .wp-block-column + .wp-block-column {
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.25);
	}

	.wp-block-columns.is-style-steps > .wp-block-column:not(:last-child)::after {
		content: "↓";
		top: auto;
		right: auto;
		bottom: 0;
		left: 50%;
		transform: translate(-50%, 50%);
	}
}

/* ---------- Quick brief form (Contact Form 7) in the "Got a wild idea?" section ---------- */

.fratoz-form-card {
	padding: clamp(1.25rem, 3vw, 2.25rem);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.45);
}

.fratoz-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.25rem;
}

.fratoz-form .is-wide {
	grid-column: 1 / -1;
}

@media (max-width: 600px) {
	.fratoz-form {
		grid-template-columns: 1fr;
	}
}

.fratoz-form__field {
	display: grid;
	gap: 0.4rem;
}

.fratoz-form__field > span:first-child {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fratoz-form input[type="text"],
.fratoz-form input[type="email"],
.fratoz-form input[type="tel"],
.fratoz-form select,
.fratoz-form textarea {
	width: 100%;
	padding: 0.8rem 0.9rem;
	border: 2px solid var(--wp--preset--color--line);
	border-radius: 0;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 1rem;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.fratoz-form textarea {
	min-height: 7.5rem;
	resize: vertical;
}

.fratoz-form input:focus,
.fratoz-form select:focus,
.fratoz-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--red);
	box-shadow: 0 0 0 3px rgba(171, 31, 36, 0.18);
}

.fratoz-form select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--wp--preset--color--ink) 50%), linear-gradient(135deg, var(--wp--preset--color--ink) 50%, transparent 50%);
	background-position: calc(100% - 1.15rem) 50%, calc(100% - 0.8rem) 50%;
	background-size: 0.35rem 0.35rem;
	background-repeat: no-repeat;
}

.fratoz-form__send {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.fratoz-form .wpcf7-submit {
	padding: 1rem 1.6rem;
	border: 2px solid var(--wp--preset--color--red);
	background: var(--wp--preset--color--red);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.fratoz-form .wpcf7-submit:hover,
.fratoz-form .wpcf7-submit:focus-visible {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
}

.fratoz-form .wpcf7-not-valid {
	border-color: var(--wp--preset--color--red) !important;
}

.fratoz-form-card .wpcf7-not-valid-tip {
	margin-top: 0.3rem;
	color: var(--wp--preset--color--red);
	font-size: 0.8125rem;
	font-weight: 600;
}

.fratoz-form-card .wpcf7 form .wpcf7-response-output {
	margin: 1.25rem 0 0;
	padding: 0.9rem 1rem;
	border: 0;
	border-left: 4px solid var(--wp--preset--color--red);
	background: var(--wp--preset--color--sand);
	font-weight: 500;
}

.fratoz-form-card .wpcf7 form.sent .wpcf7-response-output {
	border-left-color: #2e7d32;
}

.fratoz-form-card .wpcf7-spinner {
	margin: 0;
}

/* Contact line under the Zalo button. */
.fratoz-contact-line {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.7;
}

.fratoz-contact-line a {
	text-decoration: underline 2px rgba(255, 255, 255, 0.45);
	text-underline-offset: 0.3em;
}

.fratoz-contact-line a:hover {
	text-decoration-color: currentColor;
}

/* Envelope / phone icon in front of any email or phone link (inline-block, so not underlined). */
.fratoz-contact-line a[href^="mailto:"]::before,
.fratoz-contact-line a[href^="tel:"]::before {
	content: "";
	display: inline-block;
	width: 1.15em;
	height: 1.15em;
	margin-right: 0.55em;
	vertical-align: -0.2em;
	background: currentColor;
	-webkit-mask: var(--fratoz-icon) center / contain no-repeat;
	mask: var(--fratoz-icon) center / contain no-repeat;
}

.fratoz-contact-line a[href^="mailto:"] {
	--fratoz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2.5'/%3E%3Cpath d='m3.5 6.5 8.5 7 8.5-7'/%3E%3C/svg%3E");
}

.fratoz-contact-line a[href^="tel:"] {
	--fratoz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6.6 3.5h-2a1.6 1.6 0 0 0-1.6 1.7C3.6 13.4 10.6 20.4 18.8 21a1.6 1.6 0 0 0 1.7-1.6v-2a1.5 1.5 0 0 0-1.2-1.5l-3.2-.7a1.5 1.5 0 0 0-1.4.4l-1.3 1.3a12 12 0 0 1-5.1-5.1l1.3-1.3a1.5 1.5 0 0 0 .4-1.4l-.7-3.2a1.5 1.5 0 0 0-1.5-1.2Z'/%3E%3C/svg%3E");
}

.fratoz-form .wpcf7-form-control-wrap {
	display: block;
}

/* Choice groups (checkboxes / radios) as chips, e.g. "What kinds of tasks?" on the hire page. */
.fratoz-form fieldset.fratoz-form__field {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.fratoz-form fieldset.fratoz-form__field > legend {
	margin-bottom: 0.5rem;
	padding: 0;
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fratoz-form__chips .wpcf7-checkbox,
.fratoz-form__chips .wpcf7-radio {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.fratoz-form__chips .wpcf7-list-item {
	margin: 0;
}

.fratoz-form__chips .wpcf7-list-item label {
	position: relative;
	display: block;
	cursor: pointer;
}

.fratoz-form__chips .wpcf7-list-item input {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.fratoz-form__chips .wpcf7-list-item-label {
	display: inline-block;
	padding: 0.55rem 0.8rem;
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1;
	text-transform: uppercase;
	transition: background-color 0.15s, color 0.15s;
}

.fratoz-form__chips .wpcf7-list-item input:checked + .wpcf7-list-item-label {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

.fratoz-form__chips .wpcf7-list-item input:focus-visible + .wpcf7-list-item-label {
	outline: 3px solid var(--wp--preset--color--red);
	outline-offset: 2px;
}

/* ---------- FAQ (Details blocks in a group with the class fratoz-faq) ---------- */

.fratoz-faq .wp-block-details {
	margin: 0;
	padding: 1rem 0;
	border-top: 2px solid var(--wp--preset--color--ink);
}

.fratoz-faq .wp-block-details:last-child {
	border-bottom: 2px solid var(--wp--preset--color--ink);
}

.fratoz-faq .wp-block-details summary {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	list-style: none;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.3;
	text-transform: uppercase;
}

.fratoz-faq .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.fratoz-faq .wp-block-details summary::after {
	content: "+";
	color: var(--wp--preset--color--red);
	font-size: 1.5rem;
	font-weight: 900;
	line-height: 1;
	transition: transform 0.3s;
}

.fratoz-faq .wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

.fratoz-faq .wp-block-details summary:focus-visible {
	outline: 3px solid var(--wp--preset--color--red);
	outline-offset: 4px;
}

.fratoz-faq .wp-block-details > :not(summary) {
	max-width: 46rem;
	margin-top: 0.7rem;
	margin-bottom: 0;
}

.fratoz-form input,
.fratoz-form select,
.fratoz-form textarea {
	box-sizing: border-box;
	max-width: 100%;
}

/* Text for screen readers only (visible when focused, e.g. skip links). */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	top: 5px;
	left: 5px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 15px 23px 14px;
	clip: auto;
	clip-path: none;
	background: #fff;
	color: #141414;
	font-weight: 700;
	text-decoration: none;
}

/* ---------- Project pages (assets/js/project.js) ----------
   Photo viewer, fade-up on scroll, the "Technical drawing" image style, image + text. */
.fratoz-story img.fz-zoom { cursor: zoom-in; }
.fratoz-story img.fz-zoom:focus-visible { outline: 3px solid var(--wp--preset--color--red); outline-offset: 3px; }
.fz-lb { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(10, 10, 10, .94); }
.fz-lb[hidden] { display: none; }
.fz-lb img { max-width: 92vw; max-height: 84vh; object-fit: contain; animation: fz-lb-in .3s ease; }
@keyframes fz-lb-in { from { opacity: 0; transform: scale(.97); } }
.fz-lb button { position: absolute; padding: 1rem; border: 0; background: none; color: #fff; font: 900 2rem/1 var(--wp--preset--font-family--montserrat); cursor: pointer; }
.fz-lb button:hover { color: var(--wp--preset--color--red-light, #ff6a6f); }
.fz-lb button:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.fz-lb .fz-lb-x { top: .5rem; right: .8rem; }
.fz-lb .fz-lb-p { left: .5rem; top: 50%; transform: translateY(-50%); }
.fz-lb .fz-lb-n { right: .5rem; top: 50%; transform: translateY(-50%); }
.fz-lb .fz-lb-c { position: absolute; left: 0; right: 0; bottom: 1rem; margin: 0; color: #ccc; font: 700 .8rem/1 var(--wp--preset--font-family--montserrat); letter-spacing: .1em; text-align: center; }
.fz-lb-open, .fz-lb-open body { overflow: hidden; }

.fz-rv { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.fz-rv.fz-in { opacity: 1; transform: none; }

/* Technical drawing: shown whole on sand; on smaller screens it keeps a readable size and scrolls sideways. */
.wp-block-image.is-style-drawing { padding: clamp(1rem, 3vw, 2.5rem); background: var(--wp--preset--color--sand); }
.wp-block-image.is-style-drawing img { width: 100%; height: auto; }
@media (max-width: 1100px) {
	.wp-block-image.is-style-drawing { overflow-x: auto; scrollbar-width: thin; }
	.wp-block-image.is-style-drawing img { width: 1100px; max-width: none; }
	.wp-block-image.is-style-drawing::before { content: "Swipe along the drawing →"; position: sticky; left: 0; display: block; margin-bottom: .8rem; color: var(--wp--preset--color--red); font: 800 .72rem/1 var(--wp--preset--font-family--montserrat); letter-spacing: .1em; text-transform: uppercase; }
}

/* Image + text inside project stories: bold uppercase title, photo cropped 4:3. */
.fratoz-story .wp-block-media-text { gap: clamp(2rem, 5vw, 4rem); }
.fratoz-story .wp-block-media-text .wp-block-media-text__content { padding: 0; }
.fratoz-story .wp-block-media-text h2, .fratoz-story .wp-block-media-text h3 { font-weight: 900; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1; text-transform: uppercase; }
.fratoz-story .wp-block-media-text__media img { aspect-ratio: 4 / 3; object-fit: cover; }
.fratoz-story .wp-block-image.alignfull img { width: 100%; max-height: 88vh; object-fit: cover; }
.fratoz-story figcaption { color: var(--wp--preset--color--muted); font-size: .9rem; }
.fratoz-story > .wp-block-image.alignfull figcaption { width: min(100% - 2rem, 1240px); margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { .fz-rv { opacity: 1; transform: none; transition: none; } }
