/*
Theme Name: Focusreel
Theme URI: https://focusreel.studio
Author: Focusreel
Author URI: https://focusreel.studio
Description: Focusreel theme — sound studio, green studio / virtual production and live event services in Budapest. Built on the Focusreel Studio Bali design system.
Version: 1.0.6
Requires at least: 6.0
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: focusreel
*/

/* =========================================================
   FONTS — self-hosted, no external CDN calls at runtime.
   ========================================================= */

/* latin + latin-ext (the latin-ext files cover letters such as ő / ű) */

@font-face {
	font-family: 'Archivo';
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url('assets/fonts/archivo-variable.woff2') format('woff2-variations'),
		url('assets/fonts/archivo-variable.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Archivo';
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url('assets/fonts/archivo-variable-latin-ext.woff2') format('woff2-variations'),
		url('assets/fonts/archivo-variable-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Space Mono';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/space-mono-regular.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Space Mono';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/space-mono-regular-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Space Mono';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('assets/fonts/space-mono-bold.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Space Mono';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('assets/fonts/space-mono-bold-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =========================================================
   DESIGN TOKENS
   ========================================================= */

:root {
	/* colour system — ratio target: ~70% night, 18% paper, 9% rose, 3% indigo */
	--rose: #E83D63;
	--indigo: #223382;
	--night: #0B0B12;
	--paper: #F2ECE4;
	--line: #242433;
	--mute: #7E8095;

	/* tonal helpers derived from the base palette, used for surfaces/hover states only */
	--night-raised: #131320;
	--paper-dim: #E4DCCF;
	--rose-dim: #B22F4C;

	/* type */
	--font-display: 'Archivo', sans-serif;
	--font-body: 'Archivo', sans-serif;
	--font-mono: 'Space Mono', monospace;

	/* the two cinematic registers, as font-variation-settings values */
	--fvs-cinematic: 'wdth' 118, 'wght' 600;
	--fvs-club: 'wdth' 70, 'wght' 900;

	/* spacing scale */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-8: 4.5rem;
	--space-9: 7rem;
	--space-10: 10rem;

	/* layout */
	--container-max: 84rem;
	--container-pad: var(--space-5);
	--header-h: 76px;

	/* graphic system constants */
	--reticle-size: 13px;
	--reticle-weight: 1.5px;
	--chamfer-cut: 14px;

	/* motion — short, mechanical, never bouncy */
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
	--speed: 160ms;

	color-scheme: dark;
}

@media (min-width: 64rem) {
	:root {
		--container-pad: var(--space-8);
	}
}

/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--night);
	color: var(--paper);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.55;
	font-variation-settings: 'wdth' 100, 'wght' 400;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
	overflow-x: hidden;
}

img,
picture,
video,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
h4,
p,
figure {
	margin: 0;
}

input,
select,
textarea {
	font: inherit;
	color: inherit;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

/* display — cinematic register: hero and section titles on premium pages */
.h-cinematic {
	font-family: var(--font-display);
	font-variation-settings: var(--fvs-cinematic);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.05;
	overflow-wrap: break-word;
	-webkit-hyphens: auto;
	hyphens: auto;
}

/* display — club register: large statement type */
.h-club {
	font-family: var(--font-display);
	font-variation-settings: var(--fvs-club);
	text-transform: uppercase;
	letter-spacing: -0.02em;
	line-height: 0.86;
	overflow-wrap: break-word;
	-webkit-hyphens: auto;
	hyphens: auto;
}

/* technical data — timecode, camera counts, labels, dates, locations. never headings. */
.mono {
	font-family: var(--font-mono);
	font-variation-settings: normal;
	letter-spacing: 0.01em;
}

p {
	color: var(--paper);
}

p.text-mute {
	color: var(--mute);
}

/* rose fails contrast at body-text sizes — emphasis and large type only, never paragraphs */
.text-rose {
	color: var(--rose);
}

/* =========================================================
   LAYOUT — left-aligned, asymmetric. no centred containers.
   ========================================================= */

.container {
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-pad);
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1 0 auto;
}

/* =========================================================
   GRAPHIC SYSTEM — reticle corners
   ========================================================= */

.reticle {
	position: relative;
}

.reticle::before,
.reticle::after,
.reticle > .reticle-tl,
.reticle > .reticle-br {
	content: '';
	position: absolute;
	width: var(--reticle-size);
	height: var(--reticle-size);
	pointer-events: none;
}

/* top-left */
.reticle::before {
	top: 0;
	left: 0;
	border-top: var(--reticle-weight) solid var(--rose);
	border-left: var(--reticle-weight) solid var(--rose);
}

/* bottom-right */
.reticle::after {
	bottom: 0;
	right: 0;
	border-bottom: var(--reticle-weight) solid var(--rose);
	border-right: var(--reticle-weight) solid var(--rose);
}

/* the remaining two corners (top-right, bottom-left) via extra elements,
   kept out of ::before/::after since each pseudo-element gives only one */
.reticle-tr,
.reticle-bl {
	position: absolute;
	width: var(--reticle-size);
	height: var(--reticle-size);
	pointer-events: none;
}

.reticle-tr {
	top: 0;
	right: 0;
	border-top: var(--reticle-weight) solid var(--rose);
	border-right: var(--reticle-weight) solid var(--rose);
}

.reticle-bl {
	bottom: 0;
	left: 0;
	border-bottom: var(--reticle-weight) solid var(--rose);
	border-left: var(--reticle-weight) solid var(--rose);
}

/* focus states reuse the reticle mark instead of a generic outline */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.reticle:focus-visible {
	outline: none;
	position: relative;
}

a:focus-visible::after,
button:focus-visible::after {
	content: '';
	position: absolute;
	inset: -6px;
	border: var(--reticle-weight) solid var(--rose);
	clip-path: polygon(
		0 0, var(--reticle-size) 0, var(--reticle-size) var(--reticle-weight), var(--reticle-weight) var(--reticle-weight),
		var(--reticle-weight) var(--reticle-size), 0 var(--reticle-size), 0 0,

		calc(100% - var(--reticle-size)) 0, 100% 0, 100% var(--reticle-size), calc(100% - var(--reticle-weight)) var(--reticle-size),
		calc(100% - var(--reticle-weight)) var(--reticle-weight), calc(100% - var(--reticle-size)) var(--reticle-weight), calc(100% - var(--reticle-size)) 0,

		100% 0, 100% calc(100% - var(--reticle-size)), calc(100% - var(--reticle-weight)) calc(100% - var(--reticle-size)),
		calc(100% - var(--reticle-weight)) calc(100% - var(--reticle-weight)), calc(100% - var(--reticle-size)) calc(100% - var(--reticle-weight)), calc(100% - var(--reticle-size)) 100%,
		100% 100%,

		0 calc(100% - var(--reticle-size)), 0 100%, var(--reticle-size) 100%, var(--reticle-size) calc(100% - var(--reticle-weight)),
		var(--reticle-weight) calc(100% - var(--reticle-weight)), var(--reticle-weight) calc(100% - var(--reticle-size)), 0 calc(100% - var(--reticle-size))
	);
	pointer-events: none;
}

/* =========================================================
   GRAPHIC SYSTEM — chamfered corner
   ========================================================= */

.chamfer {
	clip-path: polygon(
		0 0,
		100% 0,
		100% calc(100% - var(--chamfer-cut)),
		calc(100% - var(--chamfer-cut)) 100%,
		0 100%
	);
}

/* =========================================================
   SKIP LINK
   ========================================================= */

.skip-link {
	position: absolute;
	top: -100%;
	left: var(--space-4);
	z-index: 1000;
	background: var(--paper);
	color: var(--night);
	padding: var(--space-3) var(--space-4);
	font-family: var(--font-mono);
	font-size: 0.85rem;
	transition: top var(--speed) var(--ease);
}

.skip-link:focus {
	top: var(--space-4);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-3) var(--space-5);
	background: var(--rose);
	color: var(--night);
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamfer-cut)), calc(100% - var(--chamfer-cut)) 100%, 0 100%);
	transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}

.btn:hover {
	background: var(--paper);
	color: var(--night);
}

.btn-outline {
	background: transparent;
	color: var(--paper);
	box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn-outline:hover {
	background: var(--paper);
	color: var(--night);
	box-shadow: none;
}

/* =========================================================
   TECHNICAL CHIPS — Space Mono
   ========================================================= */

.chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
}

.chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.03em;
	color: var(--paper);
	background: rgba(19, 19, 32, 0.6);
	backdrop-filter: blur(4px);
	padding: var(--space-2) var(--space-3) var(--space-2) calc(var(--space-3) + 5px);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}

.chip::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--rose);
}

/* =========================================================
   SITE HEADER
   ========================================================= */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(11, 11, 18, 0.92);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--line);
}

.site-header__bar {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	height: var(--header-h);
}

/* GINOP info block: same row as the logo, right next to it */
.site-funding {
	display: flex;
	align-items: center;
	min-height: 44px;
	flex: 0 1 auto;
	min-width: 0;
}

.site-funding img {
	display: block;
	width: auto;
	height: clamp(24px, 8.5vw, 34px);
}

@media (min-width: 64rem) {
	.site-funding img {
		height: 40px;
	}
}

@media (min-width: 80rem) {
	.site-funding img {
		height: 52px;
	}
}

.primary-nav,
.nav-toggle {
	margin-left: auto;
}

.site-branding {
	display: flex;
	align-items: center;
	min-height: 44px;
	flex: 0 0 auto;
	gap: var(--space-3);
	color: var(--paper);
}

.site-branding img,
.site-branding svg {
	height: clamp(20px, 6vw, 32px);
	width: auto;
	color: var(--paper);
}

.primary-nav {
	display: none;
}

@media (min-width: 64rem) {
	.primary-nav {
		display: flex;
	}
}

.primary-nav ul {
	display: flex;
	gap: 1.25rem;
}

@media (min-width: 80rem) {
	.primary-nav ul {
		gap: var(--space-6);
	}
}

.primary-nav a {
	font-family: var(--font-mono);
	font-size: 0.82rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--paper);
	padding: var(--space-2) 0;
	border-bottom: 1px solid transparent;
	transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
	color: var(--rose);
	border-color: var(--rose);
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--paper);
	border: 1px solid var(--line);
	padding: var(--space-2) var(--space-3);
	min-width: 44px;
	min-height: 44px;
	justify-content: center;
}

@media (min-width: 64rem) {
	.nav-toggle {
		display: none;
	}
}

/* on small screens the button is just the three bars */
.nav-toggle__label {
	display: none;
}

@media (min-width: 40rem) {
	.nav-toggle__label {
		display: inline;
	}
}

.nav-toggle__bars {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nav-toggle__bars span {
	display: block;
	width: 18px;
	height: 1.5px;
	background: var(--paper);
	transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
	transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
	transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-nav {
	position: fixed;
	inset: var(--header-h) 0 0 0;
	background: var(--night);
	border-top: 1px solid var(--line);
	padding: var(--space-5) var(--container-pad) calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translateY(-8px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease), visibility 0s linear var(--speed);
	z-index: 99;
}

.mobile-nav.is-open {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

@media (min-width: 64rem) {
	.mobile-nav {
		display: none;
	}
}

.mobile-nav ul {
	display: flex;
	flex-direction: column;
}

.mobile-nav li {
	border-bottom: 1px solid var(--line);
}

.mobile-nav a {
	font-family: var(--font-display);
	font-variation-settings: var(--fvs-club);
	text-transform: uppercase;
	font-size: clamp(1.6rem, 8vw, 2.25rem);
	letter-spacing: -0.02em;
	color: var(--paper);
	display: flex;
	align-items: center;
	min-height: 4rem;
}

.mobile-nav a[aria-current="page"] {
	color: var(--rose);
}

.mobile-nav a:hover {
	color: var(--rose);
}

/* =========================================================
   SITE FOOTER
   ========================================================= */

.site-footer {
	border-top: 1px solid var(--line);
	padding-block: var(--space-8);
	background: var(--night);
}

.site-footer__grid {
	display: grid;
	gap: var(--space-7);
	grid-template-columns: minmax(0,1fr);
}

@media (min-width: 48rem) {
	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0,1fr));
	}
}

@media (min-width: 64rem) {
	.site-footer__grid {
		grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) minmax(0,0.8fr);
	}
}

.site-footer__heading {
	margin: 0 0 var(--space-4);
	font-size: 0.72rem;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rose);
}

.site-footer__cta {
	font-family: var(--font-display);
	font-variation-settings: var(--fvs-cinematic);
	text-transform: uppercase;
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	letter-spacing: 0.02em;
	max-width: 20ch;
}

.site-footer__cta a {
	color: var(--rose);
}

.site-footer nav ul {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.site-footer nav a {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--mute);
}

.site-footer nav a:hover {
	color: var(--paper);
}

.site-footer__social {
	display: flex;
	gap: var(--space-4);
}

.site-footer__social a {
	color: var(--paper);
	width: 20px;
	height: 20px;
}

.site-footer__social a:hover {
	color: var(--rose);
}

.site-footer__meta {
	margin-top: var(--space-8);
	padding-top: var(--space-5);
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-3);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--mute);
}

.site-footer__meta img,
.site-footer__meta svg {
	height: 18px;
	width: auto;
	color: var(--mute);
}

/* =========================================================
   HOME — hero
   ========================================================= */

.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
}

.hero__bg {
	position: absolute;
	inset: 0;
	background-color: var(--night);
	background-image:
		radial-gradient(ellipse 60% 50% at 18% 20%, rgba(232, 61, 99, 0.35), transparent 60%),
		radial-gradient(ellipse 50% 45% at 85% 15%, rgba(34, 51, 130, 0.45), transparent 65%),
		radial-gradient(ellipse 70% 60% at 50% 100%, rgba(232, 61, 99, 0.12), transparent 70%);
	filter: blur(40px);
	transform: scale(1.1);
}

.hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}

.hero__mark {
	position: absolute;
	top: var(--space-7);
	right: var(--container-pad);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-3);
}

.hero__mark-svg {
	width: 76px;
	height: auto;
}

@media (max-width: 40rem) {
	.hero__mark {
		display: none;
	}
}

.hero__frame {
	position: absolute;
	inset: var(--space-5);
	z-index: 2;
	pointer-events: none;
}

.hero__content {
	position: relative;
	z-index: 2;
	padding-block: var(--space-8) var(--space-9);
	width: 100%;
}

.hero__headline {
	font-size: clamp(3rem, 11vw, 8rem);
	max-width: 16ch;
}

.hero__subline {
	margin-top: var(--space-5);
	max-width: 48ch;
	font-size: 1.05rem;
	color: var(--paper);
}

.hero__chips {
	margin-top: var(--space-7);
}

/* =========================================================
   SECTION SCAFFOLDING — used across home and contact
   ========================================================= */

.section {
	padding-block: var(--space-9);
	border-bottom: 1px solid var(--line);
}

.section:last-of-type {
	border-bottom: 0;
}

.section__eyebrow {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rose);
	margin-bottom: var(--space-3);
}

.section__title {
	font-size: clamp(2rem, 6vw, 3.25rem);
	max-width: 20ch;
}

.page-intro {
	padding-block: var(--space-8) var(--space-6);
}

.page-intro__title {
	font-size: clamp(2rem, 8vw, 5rem);
	max-width: 18ch;
}

/* =========================================================
   HOME — about
   ========================================================= */

.about {
	padding-block: var(--space-9);
	border-bottom: 1px solid var(--line);
}

.about__grid {
	display: grid;
	grid-template-columns: minmax(0,1fr);
	gap: var(--space-6);
	align-items: start;
}

@media (min-width: 64rem) {
	.about__grid {
		grid-template-columns: minmax(0,1fr) minmax(0,1.3fr);
	}
}

.about__copy {
	max-width: 60ch;
	font-size: clamp(1.05rem, 1.7vw, 1.3rem);
	line-height: 1.65;
}

/* =========================================================
   HOME — service sections
   ========================================================= */

.section__head {
	max-width: 62rem;
	margin-bottom: var(--space-7);
}

.section__tagline {
	color: var(--mute);
	margin-bottom: var(--space-3);
}

.section__lead {
	margin-top: var(--space-4);
	max-width: 60ch;
	font-size: 1.05rem;
}

.service-block {
	display: grid;
	grid-template-columns: minmax(0,1fr);
	gap: var(--space-7);
	align-items: start;
}

@media (min-width: 64rem) {
	.service-block {
		grid-template-columns: minmax(0,1fr) minmax(0,1fr);
		gap: var(--space-8);
	}

	.service-block--reverse .service-block__media {
		order: 2;
	}
}

.service-block__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.service-block__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* keep the reticle brackets above the photo */
.service-block__media::before,
.service-block__media::after,
.service-block__media > span {
	z-index: 2;
}

.service-block__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-6);
}

.service-sub__title {
	font-size: 1.25rem;
	max-width: 24ch;
}

.service-sub__text {
	margin-top: var(--space-3);
	max-width: 52ch;
}

.service-list {
	margin-top: var(--space-3);
	display: grid;
	gap: var(--space-2);
	font-size: 0.85rem;
}

.service-list li {
	display: flex;
	gap: 0.7em;
}

.service-list li::before {
	content: '//';
	color: var(--mute);
}

/* thumbnail glow system — one colour per block, never two */
.glow-rose {
	background-color: #150818;
	background-image: radial-gradient(56% 42% at 60% 28%, rgba(232, 61, 99, 0.55), transparent 70%);
}

.glow-indigo {
	background-color: #080c2c;
	background-image: radial-gradient(56% 42% at 38% 28%, rgba(34, 51, 130, 0.85), transparent 70%);
}

.glow-paper {
	background-color: #0e0b16;
	background-image: radial-gradient(56% 42% at 50% 24%, rgba(242, 236, 228, 0.28), transparent 70%);
}

/* =========================================================
   HOME — process steps and closing CTA
   ========================================================= */

.steps__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0,1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

@media (min-width: 48rem) {
	.steps__grid {
		grid-template-columns: repeat(3, minmax(0,1fr));
	}
}

.step {
	background: var(--night);
	padding: var(--space-6);
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	min-height: 180px;
}

.step__num {
	font-size: 0.78rem;
	color: var(--rose);
}

.step__title {
	font-size: 1.25rem;
}

.cta__grid {
	display: grid;
	grid-template-columns: minmax(0,1fr);
	gap: var(--space-6);
	align-items: start;
}

@media (min-width: 64rem) {
	.cta__grid {
		grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
	}
}

.cta__text {
	max-width: 52ch;
	margin-bottom: var(--space-5);
}

/* =========================================================
   GINOP project information page — full width, info block beside the title
   ========================================================= */

.is-ginop .site-main .container {
	max-width: none;
}

.ginop-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-6);
}

.ginop-head > div:first-child {
	flex: 1 1 22rem;
	min-width: 0;
}

.ginop-head .page-intro__title--long {
	font-size: clamp(1.5rem, 3.6vw, 3rem);
	max-width: none;
}

.ginop-head__logo {
	flex: 0 1 clamp(14rem, 30vw, 28rem);
	min-width: 0;
}

.ginop-head__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.page-intro__title--long {
	font-size: clamp(1.5rem, 4.6vw, 3.25rem);
	max-width: 26ch;
}

.ginop__facts {
	display: grid;
	grid-template-columns: minmax(0,1fr);
	gap: 1px;
	margin: 0 0 var(--space-6);
	background: var(--line);
	border: 1px solid var(--line);
}

@media (min-width: 48rem) {
	.ginop__facts {
		grid-template-columns: repeat(2, minmax(0,1fr));
	}
}

.ginop__fact {
	background: var(--night);
	padding: var(--space-4) var(--space-5);
}

.ginop__fact dt {
	font-size: 0.72rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--mute);
}

.ginop__fact dd {
	margin: var(--space-2) 0 0;
	font-weight: 600;
}

.ginop__statement {
	margin-bottom: var(--space-8);
	padding-left: var(--space-4);
	border-left: 3px solid var(--rose);
}

.ginop__details-title {
	font-size: 1.5rem;
	margin-bottom: var(--space-5);
}

.ginop__text {
	margin-bottom: var(--space-4);
}

/* descriptive text blocks are justified */
.about__copy,
.section__lead,
.service-sub__text,
.cta__text,
.contact-ask__text,
.page-intro__lead,
.ginop__statement,
.ginop__text {
	text-align: justify;
	text-justify: inter-word;
	-webkit-hyphens: auto;
	hyphens: auto;
}

/* =========================================================
   CONTACT page intro
   ========================================================= */

.page-intro__lead {
	margin-top: var(--space-5);
	max-width: 62ch;
	font-size: 1.1rem;
}

.contact-ask__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.contact-ask__text {
	margin: var(--space-3) 0 var(--space-6);
	max-width: 52ch;
}

.site-footer__contact p {
	margin-bottom: var(--space-2);
	font-size: 0.85rem;
	color: var(--mute);
}

/* reveal buttons (phone number and email are never in the page as text) */
.reveal-contact {
	display: block;
	padding: 0 0 0.2rem;
	font-size: 0.9rem;
	color: var(--paper);
	text-align: left;
	border-bottom: 1px dashed var(--mute);
	transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.reveal-contact:hover {
	color: var(--rose);
	border-color: var(--rose);
}

.site-footer__contact .reveal-contact {
	display: inline-block;
	font-size: 0.85rem;
	color: var(--mute);
}

.site-footer__contact .reveal-contact:hover {
	color: var(--paper);
}

.contact-direct .reveal-contact {
	margin-bottom: var(--space-4);
}

.site-footer__contact a:hover {
	color: var(--paper);
}

.site-footer__contact .site-footer__social {
	margin-top: var(--space-4);
}

/* =========================================================
   PARTNERS — paper tiles, greyscale until hover
   ========================================================= */

.partners-grid {
	list-style: none;
	margin: 0;
	padding: var(--space-7) 0 var(--space-9);
	display: grid;
	grid-template-columns: repeat(2, minmax(0,1fr));
	gap: var(--space-5);
}

@media (min-width: 48rem) {
	.partners-grid {
		grid-template-columns: repeat(4, minmax(0,1fr));
	}
}

.partner-tile {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--paper);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamfer-cut)), calc(100% - var(--chamfer-cut)) 100%, 0 100%);
}

.partner-tile img {
	position: absolute;
	inset: var(--space-5);
	width: calc(100% - 2 * var(--space-5));
	height: calc(100% - 2 * var(--space-5));
	object-fit: contain;
	mix-blend-mode: multiply;
	filter: grayscale(1);
	transition: filter var(--speed) var(--ease);
}

.partner-tile:hover img,
.partner-tile:focus-visible img {
	filter: none;
}

/* clip-path would hide the reticle focus brackets, so drop it while focused */
.btn:focus-visible,
.partner-tile:focus-visible {
	clip-path: none;
}

/* =========================================================
   CONTACT page + form
   ========================================================= */

.contact-layout {
	display: grid;
	grid-template-columns: minmax(0,1fr);
	gap: var(--space-8);
	align-items: start;
}

@media (min-width: 64rem) {
	.contact-layout {
		grid-template-columns: minmax(0,1.5fr) minmax(0,1fr);
	}
}

.contact-form__row {
	margin-bottom: var(--space-5);
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.contact-form__row--split {
	display: grid;
	grid-template-columns: minmax(0,1fr) minmax(0,1fr);
	gap: var(--space-5);
}

.contact-form__row--split > div {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.contact-form label {
	font-size: 0.75rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--mute);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="date"],
.contact-form select,
.contact-form textarea {
	background: var(--night-raised);
	border: 1px solid var(--line);
	color: var(--paper);
	padding: var(--space-3);
	font-family: var(--font-body);
	width: 100%;
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
	outline: 1.5px solid var(--rose);
	outline-offset: 2px;
}

.contact-form textarea {
	resize: vertical;
}

/* honeypot — kept in the flow (not display:none) but off-screen, so bots that ignore CSS still fill it */
.fr-hp {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-notice {
	padding: var(--space-3) var(--space-4);
	margin-bottom: var(--space-6);
	border: 1px solid var(--line);
	font-size: 0.82rem;
}

.form-notice--success {
	border-color: var(--rose);
	color: var(--paper);
}

.form-notice--error {
	border-color: var(--mute);
	color: var(--mute);
}

.contact-direct {
	border-top: 1px solid var(--line);
	padding-top: var(--space-5);
}

@media (min-width: 64rem) {
	.contact-direct {
		border-top: 0;
		border-left: 1px solid var(--line);
		padding-top: 0;
		padding-left: var(--space-6);
	}
}

.contact-direct__link {
	display: block;
	font-size: 0.9rem;
	margin-bottom: var(--space-4);
	color: var(--paper);
}

.contact-direct__link:hover {
	color: var(--rose);
}

.contact-direct .site-footer__social {
	margin-top: var(--space-6);
}


/* =========================================================
   LEGAL documents (privacy, cookies, terms)
   ========================================================= */

.legal__body {
	max-width: 62rem;
}

.legal-h2 {
	font-size: clamp(1.25rem, 2.6vw, 1.75rem);
	margin: var(--space-8) 0 var(--space-4);
	max-width: 32ch;
}

.legal-h2:first-child {
	margin-top: 0;
}

.legal-h3 {
	font-size: 1rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: var(--space-7) 0 var(--space-3);
}

.legal-p,
.legal-list {
	max-width: 72ch;
	margin-bottom: var(--space-4);
	line-height: 1.7;
}

.legal-subhead {
	max-width: 72ch;
	margin: var(--space-6) 0 var(--space-3);
	font-weight: 700;
}

.legal-list {
	padding-left: 1.4rem;
	list-style: disc;
}

ol.legal-list {
	list-style: decimal;
}

.legal-list li {
	margin-bottom: var(--space-2);
}

.legal-p a,
.legal-list a {
	text-decoration: underline;
	text-decoration-color: var(--rose);
	text-underline-offset: 3px;
}

.legal-p a:hover,
.legal-list a:hover {
	color: var(--rose);
}

.legal-table-wrap {
	overflow-x: auto;
	margin: 0 0 var(--space-6);
	border: 1px solid var(--line);
}

.legal-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.legal-table td {
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--line);
	vertical-align: top;
}

/* the protected email button, inline inside running text */
.reveal-contact.legal-reveal {
	display: inline;
	padding: 0;
	font-size: inherit;
	color: var(--paper);
	border-bottom: 1px dashed var(--mute);
}

/* footer link lists */
.site-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.site-footer__links a {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--mute);
}

.site-footer__links a:hover {
	color: var(--paper);
}

/* =========================================================
   TOUCH / MOBILE
   ========================================================= */

html {
	-webkit-tap-highlight-color: transparent;
}

a,
button,
select,
input,
textarea {
	touch-action: manipulation;
}

.site-footer__links {
	gap: 0;
}

.site-footer__links a {
	display: flex;
	align-items: center;
	min-height: 44px;
}

.site-footer__social {
	gap: var(--space-1);
	margin-left: -11px;
}

.site-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
}

.site-footer__social a svg {
	width: 22px;
	height: 22px;
}

.reveal-contact {
	min-height: 44px;
	padding-bottom: 0;
	display: inline-flex;
	align-items: center;
	border-bottom: 0;
	text-decoration: underline dashed var(--mute);
	text-underline-offset: 6px;
}

.reveal-contact:hover {
	text-decoration-color: var(--rose);
}

.contact-direct__link {
	min-height: 44px;
}

.contact-direct a.contact-direct__link {
	display: flex;
	align-items: center;
}

.btn {
	min-height: 44px;
}

@media (max-width: 47.99rem) {
	.site-footer__contact p {
		margin-bottom: 0;
	}

	.site-footer__grid {
		gap: var(--space-6);
	}
}

.site-footer__meta > a {
	display: flex;
	align-items: center;
	min-height: 44px;
}

/* =========================================================
   Footer / contact rhythm — one consistent row height (~44px tap target)
   ========================================================= */

.site-footer .site-footer__links {
	gap: 0;
}

.site-footer .site-footer__links a {
	display: block;
	min-height: 0;
	padding-block: 0.8rem;
	line-height: 1.4;
}

.site-footer__contact p {
	margin: 0;
	padding-block: 0.8rem;
	line-height: 1.4;
}

.site-footer__contact p:has(> .reveal-contact) {
	padding-block: 0;
}

.reveal-contact {
	display: block;
	width: fit-content;
	max-width: 100%;
	min-height: 0;
	padding-block: 0.8rem;
	line-height: 1.4;
}

.site-footer__contact .reveal-contact {
	display: block;
}

.reveal-contact.legal-reveal {
	display: inline;
	padding-block: 0;
}

.contact-direct__link {
	min-height: 0;
	margin-bottom: 0;
	padding-block: 0.8rem;
	line-height: 1.4;
}

.contact-direct .reveal-contact {
	margin-bottom: 0;
}

.site-footer__social-item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--mute);
	cursor: default;
}

.site-footer__social-item svg {
	width: 22px;
	height: 22px;
}
