/*
 * The large moments of the page Chi sono (site:statement/shores, gemini, now), as the preview approved on 2026-11-21.
 * Dark bands of the palette: the sea veiled with its dark at the top and the bottom, the sunset of the twins made of
 * the dark and the button's colour, the prints white paper (the button's text colour) with the light band's text.
 */

.axyo-site-statement {
	--st-paper: var(--color-section-dark-text);
	container-type: inline-size;
	overflow-x: clip;
}

.axyo-site-statement figure { margin: 0; }
.axyo-site-statement .st-n { display: block; margin: 0; font: 500 0.75em ui-monospace, monospace; letter-spacing: 0.08em; color: var(--section-accent); }
.axyo-site-statement .st-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

.axyo-site-statement .st-print {
	position: relative;
	padding: 0.55em 0.55em 0;
	background: var(--st-paper);
	box-shadow: 0 2em 3em -1em color-mix(in srgb, var(--color-section-dark-bg) 80%, transparent);
}

.axyo-site-statement .st-print figcaption { padding: 0.55em 0.1em 0.75em; font-size: 0.6875em; font-weight: 600; letter-spacing: 0.14em; text-align: left; text-transform: uppercase; color: var(--color-section-dark-bg); opacity: 0.72; }

/* The circle that closes: the sea fills the band. */
.axyo-site-statement:has(.st-shores) { position: relative; overflow: clip; }
.axyo-site-statement:has(.st-shores)::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--color-section-dark-bg) 72%, transparent), transparent 42% 70%, color-mix(in srgb, var(--color-section-dark-bg) 70%, transparent)); pointer-events: none; }
.axyo-site-statement .st-sea { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.axyo-site-statement .st-shores { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; min-height: clamp(26em, 52cqi, 42em); color: var(--color-section-dark-text); }
.axyo-site-statement .st-shores > :not(.st-sea) { position: relative; z-index: 1; }
.axyo-site-statement .st-head { grid-column: 1 / -1; display: grid; margin: 0; font: 800 clamp(2em, 4.6vw, 4em) / 1 var(--axyo-font-heading); letter-spacing: -0.045em; text-shadow: 0 0.2em 1.6em color-mix(in srgb, var(--color-section-dark-bg) 50%, transparent); }
.axyo-site-statement .st-head .st-n { margin-bottom: 1em; font-size: 0.1875em; letter-spacing: 0.08em; text-shadow: none; }
.axyo-site-statement .st-head em { font-style: normal; color: var(--section-accent); }
.axyo-site-statement .is-shore { grid-column: 2; grid-row: 2 / 4; align-self: end; width: clamp(10em, 21cqi, 17em); margin: 0 clamp(0em, 4cqi, 4em) 2.5em 0; rotate: 5deg; }
.axyo-site-statement .is-shore .st-img { aspect-ratio: 3 / 4; }
.axyo-site-statement .st-where { grid-column: 1; grid-row: 3; align-self: end; display: grid; gap: 0.25em; max-width: 30ch; margin: 0; font-size: 0.9375em; color: var(--color-section-dark-text); }
.axyo-site-statement .st-where b { font: 600 0.8em ui-monospace, monospace; letter-spacing: 0.16em; text-transform: uppercase; }

/* The twins: a sunset of the palette, the sign behind, the motto, two prints. */
.axyo-site-statement:has(.st-gemini) {
	background-image: linear-gradient(180deg, var(--color-section-dark-bg) 0%, color-mix(in srgb, var(--color-section-dark-bg) 78%, var(--color-danger)) 42%, color-mix(in srgb, var(--color-button) 58%, var(--color-section-dark-bg)) 82%, color-mix(in srgb, var(--color-button) 78%, var(--color-section-dark-bg)) 100%);
}

.axyo-site-statement .st-gemini { position: relative; display: grid; justify-items: center; gap: 1.2em; text-align: center; view-timeline-name: --statement-gem; }
.axyo-site-statement .st-sign { position: absolute; left: 50%; top: 40%; width: min(92cqi, 46em); aspect-ratio: 1; translate: -50% -50%; container-type: inline-size; opacity: 0.16; pointer-events: none; }
.axyo-site-statement .st-sign > * { position: absolute; display: block; border: 0 solid var(--section-accent); }
.axyo-site-statement .st-arc { left: 14%; top: 13%; width: 72%; height: 14%; border-bottom-width: 3.5cqi; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.axyo-site-statement .st-arc.is-low { top: auto; bottom: 13%; border-bottom-width: 0; border-top-width: 3.5cqi; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.axyo-site-statement .st-bar { left: 34.25%; top: 24%; width: 3.5cqi; height: 52%; border-radius: 2cqi; background: var(--section-accent); }
.axyo-site-statement .st-bar.is-right { left: 62.25%; }
.axyo-site-statement .st-motto { position: relative; z-index: 1; margin: 0; font: 800 clamp(2.25em, 6.6vw, 5.75em) / 1 var(--axyo-font-heading); letter-spacing: -0.05em; }
.axyo-site-statement .st-motto span { display: block; }
.axyo-site-statement .st-motto em { font-style: normal; color: var(--section-accent); }
.axyo-site-statement .st-pair { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: clamp(1em, 3cqi, 2.4em); width: 100%; margin-top: clamp(1em, 3cqi, 2.5em); padding-block: 1em; }
.axyo-site-statement .st-pair .st-print { flex: 0 1 30em; min-width: 0; rotate: var(--rot); transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1); }
.axyo-site-statement .st-pair .st-print:first-child { --rot: -3deg; flex-basis: 19em; }
.axyo-site-statement .st-pair .st-print:first-child .st-img { aspect-ratio: 3 / 4; }
.axyo-site-statement .st-pair .st-print:last-child { --rot: 2.5deg; translate: 0 1.2em; }
.axyo-site-statement .st-pair .st-print:is(:hover, :focus-visible) { z-index: 2; transform: rotate(calc(var(--rot) * -1)) scale(1.04); }

/* The chapter still open. */
.axyo-site-statement .st-anchor { scroll-margin-top: 0; }
.axyo-site-statement .st-now { view-timeline-name: --ado-c12; }
.axyo-site-statement .st-title { margin: 0.6em 0 0; font: 800 clamp(2.5em, 7vw, 6em) / 0.95 var(--axyo-font-heading); letter-spacing: -0.05em; }
.axyo-site-statement .st-title em { font-style: normal; color: var(--section-accent); }
.axyo-site-statement .st-text { max-width: 48ch; margin: 1.6em 0 0; font: 500 clamp(1.125em, 1.6vw, 1.375em) / 1.55 var(--axyo-font-heading); }
.axyo-site-statement .st-go { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8em; margin: 2em 0 0; }
/* Beside the copper button the second way has its shape, and an edge that is seen on the black and on the light (the
   user, 2026-11-22: the same in Chi sono, Officina and the bench, no pill). */
.axyo-site-statement :is(.st-go, .st-o-go) .st-alt { padding: var(--axyo-button-pad-y) var(--axyo-button-pad-x); border-radius: var(--axyo-radius-button); font-weight: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 48%, transparent); }
.axyo-site-statement .st-later { margin: 1.2em 0 0; font-size: 0.8125em; color: var(--section-muted); }

/* On a phone the two ways are as wide as the column (the user, 2026-11-22). */
@container (max-width: 30em) {
	.axyo-site-statement .st-go { flex-direction: column; align-items: stretch; }
	.axyo-site-statement .st-go > a { justify-content: center; text-align: center; }
}

@container (max-width: 48em) {
	.axyo-site-statement .st-shores { grid-template-columns: minmax(0, 1fr); min-height: 40em; }
	.axyo-site-statement .st-sea { object-position: 22% 50%; }
	.axyo-site-statement .is-shore { grid-column: 1; grid-row: 2; justify-self: end; align-self: end; width: 9.5em; margin: 0 0 1.5em; }
	/* On a phone the prints stand one under the other, whole (the user, 2026-11-21). */
	.axyo-site-statement .st-pair { flex-direction: column; gap: 1.6em; }
	.axyo-site-statement .st-pair .st-print { flex: none; width: 100%; translate: none; }
}

@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.axyo-site-statement:has(.st-shores) { view-timeline-name: --statement-shores; }
		.axyo-site-statement .st-sea { animation: statement-sea linear both; animation-timeline: --statement-shores; animation-range: entry 0% exit 100%; }
		.axyo-site-statement .st-head { animation: statement-up linear both; animation-timeline: --statement-shores; animation-range: entry 10% exit 90%; }
		.axyo-site-statement .is-shore { animation: statement-print linear both; animation-timeline: --statement-shores; animation-range: entry 30% exit 100%; }
		.axyo-site-statement .st-l1 { animation: statement-left linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
		.axyo-site-statement .st-l2 { animation: statement-right linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
		.axyo-site-statement .st-sign { animation: statement-turn linear both; animation-timeline: --statement-gem; animation-range: entry 0% exit 100%; }
		.axyo-site-statement .st-arc { animation: statement-draw-x linear both; animation-timeline: --statement-gem; animation-range: entry 15% cover 55%; }
		.axyo-site-statement .st-bar { animation: statement-draw-y linear both; animation-timeline: --statement-gem; animation-range: entry 15% cover 55%; }
		.axyo-site-statement .st-pair .st-print { animation: statement-deal-left linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
		.axyo-site-statement .st-pair .st-print:last-child { animation-name: statement-deal-right; }
		.axyo-site-statement .st-now { animation: statement-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
	}
}

@media (prefers-reduced-motion: reduce) {
	.axyo-site-statement * { animation: none; }
}

@keyframes statement-sea { from { scale: 1.18; } to { scale: 1; } }
@keyframes statement-up { 0% { opacity: 0; translate: 0 30%; } 28%, 72% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -12%; } }
@keyframes statement-rise { from { opacity: 0; translate: 0 3em; } to { opacity: 1; translate: 0 0; } }
@keyframes statement-print { 0% { opacity: 0; translate: 60% 20%; rotate: 22deg; } 30%, 75% { opacity: 1; translate: 0 0; rotate: 5deg; } 100% { opacity: 0; translate: 30% -10%; rotate: 14deg; } }
@keyframes statement-left { 0% { opacity: 0; translate: -35% 0; } 28%, 72% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: -35% 0; } }
@keyframes statement-right { 0% { opacity: 0; translate: 35% 0; } 28%, 72% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 35% 0; } }
@keyframes statement-turn { from { rotate: -8deg; scale: 0.9; } to { rotate: 6deg; scale: 1.05; } }
@keyframes statement-draw-x { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes statement-draw-y { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes statement-deal-left { 0% { opacity: 0; translate: -45% 8%; rotate: -16deg; } 28%, 72% { opacity: 1; translate: 0 0; rotate: var(--rot); } 100% { opacity: 0; translate: -40% 0; rotate: -12deg; } }
@keyframes statement-deal-right { 0% { opacity: 0; translate: 45% 8%; rotate: 16deg; } 28%, 72% { opacity: 1; translate: 0 0; rotate: var(--rot); } 100% { opacity: 0; translate: 40% 0; rotate: 12deg; } }

/* The good cause and the door of the page Officina (site:statement/cause, door), as the preview approved on
   2026-11-21: the words in the middle; the good cause on the page's colour warmed by the accent. */
.axyo-site-statement:has(.st-cause) { --section-bg: color-mix(in srgb, var(--section-accent) 10%, var(--color-background)); background-color: var(--section-bg); }
.axyo-site-statement :is(.st-cause, .st-door) { display: grid; justify-items: center; text-align: center; }
/* Il banco apre la pagina con la porta: sopra, lo spazio di Frequenze sotto l'intestazione fissa (2026-11-22). */
.axyo-site-statement.wp-block-axyo-section.axp:first-child:has(> .st-door) { padding-top: calc(4rem + var(--axp-space) + var(--hdr-extra, 0px)); }
.axyo-site-statement .st-o-title { margin: 0.3em 0 0; font: 800 clamp(2em, 4vw, 3.4em) / 1 var(--axyo-font-heading); letter-spacing: -0.045em; }
.axyo-site-statement .st-o-title.is-large { font-size: clamp(2.2em, 5vw, 4.4em); }
.axyo-site-statement .st-o-title em { font-style: normal; color: var(--section-accent); }
.axyo-site-statement .st-o-lead { max-width: 52ch; margin: 1.4em 0 0; font-size: 1.15em; line-height: 1.6; color: var(--section-muted); }
.axyo-site-statement .st-o-go { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8em; margin: 2em 0 0; }
.axyo-site-statement .st-alt { display: inline-flex; align-items: center; padding: 0.85em 1.35em; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--section-line); color: var(--section-fg); font-weight: 600; text-decoration: none; transition: box-shadow 0.3s, color 0.3s; }
.axyo-site-statement .st-alt:is(:hover, :focus-visible) { box-shadow: inset 0 0 0 1px var(--section-accent); color: var(--section-accent); }
.axyo-site-statement .st-alt:focus-visible { outline: 2px solid var(--section-accent); outline-offset: 0.25em; }
/* On a phone the buttons are as wide as the column (the user, 2026-11-22): the grid above would shrink their row. */
@container (max-width: 30em) {
	.axyo-site-statement .st-o-go { justify-self: stretch; flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
	/* block: on two lines the words keep the middle, the arrow after them. */
	.axyo-site-statement .st-o-go > a { display: block; text-align: center; }
}

.axyo-site-statement .st-o-note { margin: 1.2em 0 0;font: 500 0.72em ui-monospace, monospace; color: var(--section-muted); }

@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.axyo-site-statement :is(.st-cause, .st-door) { animation: statement-o-up linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
	}
}

@keyframes statement-o-up { from { opacity: 0; translate: 0 2.5em; } to { opacity: 1; translate: 0 0; } }
