/*
Theme Name: Anjack Photography
Theme URI: https://www.anjackphotography.com/
Author: Anjack Photography
Description: A custom block theme for Anjack Photography, rebuilt from the Squarespace site with editorial wedding photography layouts.
Version: 1.0.12
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: anjack-photography
*/

@font-face {
	font-display: swap;
	font-family: "Manrope";
	font-style: normal;
	font-weight: 500 700;
	src: url("assets/fonts/Manrope-Variable.ttf") format("truetype");
}

@font-face {
	font-display: swap;
	font-family: "Poppins";
	font-style: normal;
	font-weight: 400;
	src: url("assets/fonts/Poppins-Regular.ttf") format("truetype");
}

@font-face {
	font-display: swap;
	font-family: "Poppins";
	font-style: italic;
	font-weight: 400;
	src: url("assets/fonts/Poppins-Italic.ttf") format("truetype");
}

@font-face {
	font-display: swap;
	font-family: "Poppins";
	font-style: normal;
	font-weight: 700;
	src: url("assets/fonts/Poppins-Bold.ttf") format("truetype");
}

@font-face {
	font-display: swap;
	font-family: "Poppins";
	font-style: italic;
	font-weight: 700;
	src: url("assets/fonts/Poppins-BoldItalic.ttf") format("truetype");
}

:root {
	--anjack-bg: #fff;
	--anjack-ink: #0e0e0e;
	--anjack-muted: #4f4f4f;
	--anjack-soft: #f6f6f6;
	--anjack-line: #e7e7e7;
	--anjack-field-line: #8b8b8b;
	--anjack-accent: #f0523d;
	--anjack-error: #c62f1a;
	--anjack-charcoal: #272727;
	--anjack-page-padding: clamp(22px, 3vw, 58px);
	--anjack-mobile-padding: clamp(22px, 6vw, 36px);
	--anjack-wide: 1920px;
	--anjack-content: 1320px;
	--anjack-fast: 180ms ease;
	--anjack-slow: 650ms ease;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--anjack-bg);
	color: var(--anjack-ink);
	font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0;
}

body,
button,
input,
textarea,
select {
	font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-logo,
.eyebrow,
.metric-number {
	font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

img {
	display: block;
	height: auto;
	max-width: 100%;
}

.wp-site-blocks {
	min-height: 100vh;
	overflow-x: clip;
}

.wp-block-post-content > .anjack-page {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: none !important;
	width: 100%;
}

.anjack-header {
	align-items: center;
	box-sizing: border-box;
	color: var(--anjack-ink);
	display: flex;
	gap: 28px;
	justify-content: space-between;
	left: 0;
	padding: clamp(18px, 3vw, 44px) var(--anjack-page-padding);
	position: fixed;
	right: 0;
	top: 0;
	transition: background var(--anjack-fast), border-color var(--anjack-fast), box-shadow var(--anjack-fast), color var(--anjack-fast), padding var(--anjack-fast);
	width: 100%;
	z-index: 30;
}

.anjack-header.is-over-media:not(.is-scrolled):not(.is-menu-open) {
	color: #fff;
	text-shadow: 0 1px 18px rgba(0, 0, 0, 0.38);
}

.anjack-header.is-scrolled,
.anjack-header.is-menu-open {
	background: rgba(255, 255, 255, 0.93);
	border-bottom: 1px solid rgba(14, 14, 14, 0.08);
	box-shadow: 0 14px 44px rgba(0, 0, 0, 0.06);
	color: var(--anjack-ink);
	padding-bottom: clamp(14px, 1.4vw, 20px);
	padding-top: clamp(14px, 1.4vw, 20px);
	text-shadow: none;
}

@supports (backdrop-filter: blur(14px)) {
	.anjack-header.is-scrolled,
	.anjack-header.is-menu-open {
		backdrop-filter: blur(14px);
		background: rgba(255, 255, 255, 0.82);
	}
}

.site-logo {
	font-size: clamp(1.04rem, 1.35vw, 1.3rem);
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.primary-nav {
	align-items: center;
	display: flex;
	gap: clamp(18px, 2vw, 34px);
	font-size: 0.82rem;
	font-weight: 500;
}

.primary-nav a {
	position: relative;
	text-decoration: none;
}

.primary-nav a::after {
	background: currentColor;
	bottom: -0.42em;
	content: "";
	height: 1px;
	left: 0;
	position: absolute;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--anjack-fast);
	width: 100%;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
	transform: scaleX(1);
}

.menu-toggle {
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 999px;
	color: inherit;
	cursor: pointer;
	display: none;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
	padding: 10px 14px;
	text-transform: uppercase;
}

.anjack-footer {
	background: #fff;
	border-top: 1px solid var(--anjack-line);
	box-sizing: border-box;
	margin-top: clamp(72px, 10vw, 150px);
	padding: clamp(48px, 7vw, 96px) var(--anjack-page-padding);
	text-align: center;
}

.footer-intro {
	color: var(--anjack-ink);
	font-family: "Manrope", system-ui, sans-serif;
	font-size: clamp(1.05rem, 1.45vw, 1.35rem);
	font-weight: 700;
	line-height: 1.4;
	margin: 0 auto 22px;
	max-width: 720px;
}

.footer-contact {
	color: var(--anjack-muted);
	font-size: 0.86rem;
	line-height: 1.7;
	margin: 0 auto 32px;
	max-width: 680px;
}

.footer-contact a {
	color: var(--anjack-ink);
	font-weight: 700;
	text-decoration: none;
}

.footer-socials,
.footer-links {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 18px 26px;
	justify-content: center;
}

.footer-socials {
	margin-bottom: 32px;
}

.social-button {
	align-items: center;
	border: 1px solid var(--anjack-line);
	border-radius: 999px;
	display: inline-flex;
	font-size: 0.78rem;
	font-weight: 700;
	gap: 8px;
	min-height: 38px;
	padding: 0 16px;
	text-decoration: none;
	transition: background var(--anjack-fast), border-color var(--anjack-fast), color var(--anjack-fast);
}

.social-button:hover,
.social-button:focus-visible {
	background: var(--anjack-ink);
	border-color: var(--anjack-ink);
	color: #fff;
}

.footer-links {
	font-size: 0.84rem;
	margin-bottom: 18px;
}

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

.footer-credit {
	color: var(--anjack-muted);
	font-size: 0.78rem;
	margin: 0;
}

.anjack-page {
	--section-space: clamp(76px, 10vw, 150px);
}

.anjack-section {
	box-sizing: border-box;
	margin-inline: auto;
	max-width: var(--anjack-wide);
	padding: var(--section-space) var(--anjack-page-padding) 0;
	width: 100%;
}

.anjack-section.is-narrow {
	max-width: var(--anjack-content);
}

.anjack-section.is-soft {
	background: var(--anjack-soft);
	margin-top: var(--section-space);
	max-width: none;
	padding-bottom: var(--section-space);
}

.anjack-section.is-soft > * {
	margin-inline: auto;
	max-width: var(--anjack-wide);
}

.hero {
	box-sizing: border-box;
	display: grid;
	min-height: clamp(680px, 100vh, 980px);
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	overflow: hidden;
	position: relative;
	width: 100vw;
}

.hero::after {
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.22) 54%, rgba(0, 0, 0, 0.08)),
		linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.1) 42%, rgba(0, 0, 0, 0.52));
	content: "";
	inset: 0;
	position: absolute;
	z-index: 2;
}

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

.hero-video-frame {
	height: 100%;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	position: absolute;
	width: 100%;
	z-index: 1;
}

.hero-video-frame iframe {
	border: 0;
	height: 56.25vw;
	left: 50%;
	min-height: 100%;
	min-width: 177.78vh;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 100vw;
}

.hero-video-frame.video-consent {
	align-items: end;
	background: transparent;
	display: flex;
	justify-content: end;
	max-width: 100vw;
	padding: clamp(24px, 4vw, 56px);
	pointer-events: none;
	width: 100vw;
	z-index: 4;
}

.hero-video-frame.video-consent.is-loaded {
	display: block;
	padding: 0;
	z-index: 1;
}

.hero-video-frame.video-consent iframe {
	pointer-events: none;
}

.hero-video-consent {
	pointer-events: auto;
}

.hero-has-video .hero-poster {
	z-index: 0;
}

.hero-content {
	align-self: end;
	box-sizing: border-box;
	color: #fff;
	max-width: min(920px, 100%);
	padding: clamp(160px, 18vw, 260px) var(--anjack-page-padding) clamp(58px, 10vw, 110px);
	position: relative;
	z-index: 3;
}

.eyebrow {
	font-size: clamp(0.72rem, 0.85vw, 0.86rem);
	font-weight: 700;
	margin: 0 0 18px;
	text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
	font-size: clamp(3rem, 6.5vw, 7.2rem);
	font-weight: 700;
	line-height: 0.92;
	margin: 0;
	max-width: 13ch;
	text-wrap: balance;
}

.hero p,
.page-hero p {
	font-size: clamp(1rem, 1.35vw, 1.35rem);
	line-height: 1.7;
	margin: clamp(22px, 3vw, 38px) 0 0;
	max-width: 720px;
	text-wrap: pretty;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: clamp(28px, 4vw, 46px);
}

.anjack-button,
.wp-block-button__link,
.form-submit {
	align-items: center;
	background: var(--anjack-ink);
	border: 1px solid var(--anjack-ink);
	border-radius: 0;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.8rem;
	font-weight: 700;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	text-decoration: none;
	transition: background var(--anjack-fast), color var(--anjack-fast), border-color var(--anjack-fast);
}

.anjack-button.is-light {
	background: #fff;
	border-color: #fff;
	color: var(--anjack-ink);
}

.anjack-button.is-ghost {
	background: transparent;
	border-color: currentColor;
	color: inherit;
}

.anjack-button:hover,
.anjack-button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.form-submit:hover,
.form-submit:focus-visible {
	background: var(--anjack-accent);
	border-color: var(--anjack-accent);
	color: #fff;
}

.metrics-grid {
	border-bottom: 1px solid var(--anjack-line);
	border-top: 1px solid var(--anjack-line);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0 auto;
	max-width: var(--anjack-wide);
	padding: 0 var(--anjack-page-padding);
}

.metric {
	border-left: 1px solid var(--anjack-line);
	padding: clamp(28px, 4vw, 54px) clamp(16px, 3vw, 40px);
}

.metric:first-child {
	border-left: 0;
}

.metric-number {
	display: block;
	font-size: clamp(2.1rem, 4.5vw, 5rem);
	font-weight: 700;
	line-height: 0.95;
}

.metric-label {
	color: var(--anjack-muted);
	display: block;
	font-size: 0.78rem;
	margin-top: 12px;
	text-transform: uppercase;
}

.home-about {
	align-items: start;
	display: grid;
	gap: clamp(34px, 5vw, 110px);
	grid-template-columns: minmax(340px, 0.34fr) minmax(0, 1fr);
}

.home-about-media {
	aspect-ratio: 3 / 5;
	background: #f1f0ee;
	overflow: hidden;
	position: relative;
}

.home-about-media img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.home-about-kicker {
	color: var(--anjack-ink);
	font-size: clamp(0.98rem, 1.05vw, 1.22rem);
	line-height: 1.45;
	margin: 0 0 clamp(18px, 2.4vw, 34px);
}

.home-about-quote {
	color: var(--anjack-ink);
	font-family: "Manrope", system-ui, sans-serif;
	font-size: clamp(2rem, 3.25vw, 4.2rem);
	font-weight: 500;
	line-height: 1.14;
	margin: 0;
	text-wrap: balance;
}

.home-about-metrics {
	display: grid;
	gap: clamp(14px, 1.6vw, 24px);
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: clamp(26px, 3.8vw, 58px);
}

.home-about-metric {
	align-content: center;
	background: var(--anjack-soft);
	border-radius: 8px;
	box-sizing: border-box;
	display: grid;
	min-height: clamp(116px, 8.5vw, 170px);
	padding: clamp(16px, 1.8vw, 28px);
	text-align: center;
}

.home-about-metric strong {
	display: block;
	font-family: "Manrope", system-ui, sans-serif;
	font-size: clamp(2rem, 2.85vw, 3.5rem);
	font-weight: 700;
	line-height: 1;
}

.home-about-metric span {
	display: block;
	font-family: "Manrope", system-ui, sans-serif;
	font-size: clamp(0.86rem, 0.95vw, 1.05rem);
	font-weight: 700;
	line-height: 1.1;
	margin-top: clamp(10px, 1.4vw, 20px);
	overflow-wrap: normal;
}

.split-section {
	align-items: center;
	display: grid;
	gap: clamp(34px, 6vw, 90px);
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.split-section.is-reversed {
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.split-copy h2,
.section-heading h2,
.page-hero h1,
.card h3,
.pricing-card h3 {
	font-weight: 700;
}

.split-copy h2,
.section-heading h2 {
	font-size: clamp(2.2rem, 4.8vw, 5.8rem);
	line-height: 0.98;
	margin: 0;
	text-wrap: balance;
}

.split-copy p,
.section-heading p,
.card p,
.pricing-card p,
.faq-item p {
	color: var(--anjack-muted);
	font-size: clamp(0.98rem, 1.08vw, 1.08rem);
	line-height: 1.8;
}

.split-media,
.card-media,
.video-frame,
.gallery-image {
	background: #f1f0ee;
	overflow: hidden;
	position: relative;
}

.split-media {
	aspect-ratio: 4 / 5;
}

.split-media.is-wide {
	aspect-ratio: 16 / 10;
}

.split-media img,
.card-media img,
.gallery-image img {
	height: 100%;
	object-fit: cover;
	transition: transform var(--anjack-slow);
	width: 100%;
}

.split-media:hover img,
.gallery-card:hover img,
.video-card:hover img,
.gallery-image:hover img {
	transform: scale(1.035);
}

.section-heading {
	margin-bottom: clamp(30px, 5vw, 70px);
	max-width: 980px;
}

.portfolio-grid,
.video-grid,
.pricing-grid {
	display: grid;
	gap: clamp(20px, 3vw, 44px);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-grid.is-two,
.pricing-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.pricing-card {
	position: relative;
}

.card {
	transition: color var(--anjack-fast), transform var(--anjack-fast);
}

.card:hover,
.card:focus-within {
	transform: translateY(-3px);
}

.card a,
.video-card a {
	text-decoration: none;
}

.card-media {
	aspect-ratio: 4 / 5;
	margin-bottom: 18px;
}

.card-media::after {
	background: linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.1));
	content: "";
	inset: 0;
	opacity: 0;
	position: absolute;
	transition: opacity var(--anjack-fast);
}

.card:hover .card-media::after,
.card:focus-within .card-media::after {
	opacity: 1;
}

.portfolio-grid.is-two .card-media,
.video-card .card-media {
	aspect-ratio: 16 / 10;
}

.card h3,
.video-card h3,
.pricing-card h3 {
	font-size: clamp(1.35rem, 2.1vw, 2.4rem);
	line-height: 1.08;
	margin: 0 0 10px;
	text-wrap: balance;
}

.card-meta {
	color: var(--anjack-muted);
	font-size: 0.76rem;
	font-weight: 700;
	text-transform: uppercase;
}

.pricing-card {
	border: 1px solid var(--anjack-line);
	background: #fff;
	padding: clamp(26px, 4vw, 48px);
	transition: border-color var(--anjack-fast), box-shadow var(--anjack-fast), transform var(--anjack-fast);
}

.pricing-card:hover,
.pricing-card:focus-within {
	border-color: rgba(14, 14, 14, 0.2);
	box-shadow: 0 22px 70px rgba(0, 0, 0, 0.07);
	transform: translateY(-2px);
}

.price {
	color: var(--anjack-accent);
	display: block;
	font-family: "Manrope", system-ui, sans-serif;
	font-size: clamp(2rem, 4vw, 4.3rem);
	font-weight: 700;
	line-height: 1;
	margin: 18px 0 20px;
}

.pricing-card ul,
.service-list {
	color: var(--anjack-muted);
	line-height: 1.8;
	margin: 22px 0 0;
	padding-left: 1.1em;
}

.pricing-card .anjack-button,
.section-actions .anjack-button {
	margin-top: 26px;
}

.section-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: clamp(28px, 4vw, 48px);
}

.section-actions.is-centered {
	justify-content: center;
}

.trust-strip {
	border-bottom: 1px solid var(--anjack-line);
	border-top: 1px solid var(--anjack-line);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: clamp(34px, 5vw, 72px);
}

.trust-strip .metric {
	padding: clamp(24px, 3vw, 38px) clamp(14px, 2vw, 28px);
}

.page-hero {
	box-sizing: border-box;
	display: grid;
	min-height: clamp(520px, 74vh, 780px);
	overflow: hidden;
	padding: clamp(150px, 16vw, 240px) var(--anjack-page-padding) clamp(58px, 8vw, 100px);
	position: relative;
}

.page-hero.has-image {
	color: #fff;
}

.page-hero.has-image::after {
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.2) 58%, rgba(0, 0, 0, 0.08)),
		linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.52));
	content: "";
	inset: 0;
	position: absolute;
	z-index: 1;
}

.page-hero > img {
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
}

.page-hero-content {
	align-self: end;
	box-sizing: border-box;
	max-width: 920px;
	min-width: 0;
	position: relative;
	width: 100%;
	z-index: 2;
}

.gallery-masonry {
	column-count: 3;
	column-gap: clamp(14px, 2vw, 30px);
	margin: 0 auto;
	max-width: var(--anjack-wide);
	padding: var(--section-space) var(--anjack-page-padding) 0;
}

.gallery-image {
	break-inside: avoid;
	margin-bottom: clamp(14px, 2vw, 30px);
}

.gallery-image button {
	background: transparent;
	border: 0;
	cursor: zoom-in;
	display: block;
	padding: 0;
	width: 100%;
}

.video-frame {
	aspect-ratio: 16 / 9;
}

.video-frame iframe,
.video-frame .video-consent {
	border: 0;
	height: 100%;
	inset: 0;
	position: absolute;
	width: 100%;
}

.video-consent {
	align-items: center;
	background:
		linear-gradient(135deg, rgba(14, 14, 14, 0.78), rgba(14, 14, 14, 0.58)),
		var(--anjack-charcoal);
	color: #fff;
	display: flex;
	justify-content: center;
	min-height: 100%;
	overflow: hidden;
	padding: clamp(22px, 4vw, 42px);
	text-align: center;
}

.video-consent.is-loaded {
	background: transparent;
	padding: 0;
}

.video-consent iframe {
	border: 0;
	height: 100%;
	inset: 0;
	position: absolute;
	width: 100%;
}

.video-consent-button {
	align-items: center;
	appearance: none;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 0;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
	color: var(--anjack-ink);
	cursor: pointer;
	display: inline-flex;
	flex-direction: column;
	font-weight: 700;
	gap: 6px;
	justify-content: center;
	min-width: min(100%, 260px);
	padding: 16px 22px;
	transition: background var(--anjack-fast), transform var(--anjack-fast), border-color var(--anjack-fast);
}

.video-consent-button:hover,
.video-consent-button:focus-visible {
	background: #fff;
	border-color: #fff;
	transform: translateY(-2px);
}

.video-consent-title {
	font-family: "Manrope", system-ui, sans-serif;
	font-size: 0.98rem;
	line-height: 1.2;
}

.video-consent-copy {
	color: rgba(14, 14, 14, 0.68);
	font-size: 0.78rem;
	font-weight: 500;
	line-height: 1.45;
}

.hero-video-consent {
	background: rgba(14, 14, 14, 0.56);
	border-color: rgba(255, 255, 255, 0.55);
	bottom: clamp(96px, 12vh, 150px);
	box-shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
	color: #fff;
	left: var(--anjack-page-padding);
	min-width: 230px;
	position: absolute;
	right: auto;
}

.hero-video-consent:hover,
.hero-video-consent:focus-visible {
	background: rgba(14, 14, 14, 0.78);
	border-color: rgba(255, 255, 255, 0.82);
}

.hero-video-consent .video-consent-copy {
	color: rgba(255, 255, 255, 0.76);
}

.video-placeholder {
	align-items: center;
	background: var(--anjack-charcoal);
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 18px;
	height: 100%;
	justify-content: center;
	padding: 28px;
	text-align: center;
}

.hero-location {
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin: 14px 0 0;
	text-transform: uppercase;
}

.testimonial {
	margin: 0 auto;
	max-width: 760px;
	text-align: center;
}

.testimonial p {
	color: var(--anjack-ink);
	font-family: "Manrope", system-ui, sans-serif;
	font-size: clamp(1.35rem, 2.4vw, 2.1rem);
	font-weight: 500;
	line-height: 1.45;
	margin: 0;
}

.testimonial cite {
	color: var(--anjack-muted);
	display: block;
	font-size: 0.85rem;
	font-style: normal;
	font-weight: 700;
	margin-top: 22px;
	text-transform: uppercase;
}

.legal-page {
	color: var(--anjack-ink);
	font-size: clamp(0.98rem, 1.02vw, 1.08rem);
	line-height: 1.85;
	min-width: 0;
}

.legal-page > * + * {
	margin-top: clamp(30px, 4vw, 54px);
}

.legal-page h2 {
	font-size: clamp(1.55rem, 2.4vw, 2.55rem);
	line-height: 1.12;
	margin: 0 0 16px;
}

.legal-page h3 {
	font-size: clamp(1.15rem, 1.4vw, 1.35rem);
	line-height: 1.3;
	margin: 24px 0 8px;
}

.legal-page p,
.legal-page li,
.legal-page dd {
	color: var(--anjack-muted);
	overflow-wrap: anywhere;
}

.legal-page a {
	color: var(--anjack-ink);
	font-weight: 700;
	overflow-wrap: anywhere;
}

.legal-page dl {
	border-bottom: 1px solid var(--anjack-line);
	border-top: 1px solid var(--anjack-line);
	display: grid;
	gap: 0;
	margin: 0;
}

.legal-page dt,
.legal-page dd {
	border-top: 1px solid var(--anjack-line);
	margin: 0;
	padding: 14px 0;
}

.legal-page dt:first-child,
.legal-page dt:first-child + dd {
	border-top: 0;
}

.legal-page dt {
	color: var(--anjack-ink);
	font-weight: 700;
}

.legal-note {
	background: var(--anjack-soft);
	border-left: 3px solid var(--anjack-accent);
	box-sizing: border-box;
	padding: clamp(18px, 2vw, 26px);
}

.faq-list {
	border-top: 1px solid var(--anjack-line);
}

.faq-item {
	border-bottom: 1px solid var(--anjack-line);
	padding: clamp(22px, 3vw, 38px) 0;
}

.faq-item h3 {
	font-size: clamp(1.2rem, 1.7vw, 1.8rem);
	margin: 0 0 10px;
}

.contact-form {
	display: grid;
	gap: 18px;
	margin-top: 28px;
}

.form-row {
	display: grid;
	gap: 8px;
}

.form-row label {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
}

.form-row input,
.form-row textarea,
.form-row select {
	background: #fff;
	border: 1px solid var(--anjack-line);
	border-radius: 0;
	box-sizing: border-box;
	color: var(--anjack-ink);
	font: inherit;
	min-height: 48px;
	padding: 12px 14px;
	width: 100%;
}

.form-row textarea {
	min-height: 150px;
	resize: vertical;
}

.form-hidden {
	left: -9999px;
	position: absolute;
	top: auto;
}

.form-notice {
	background: var(--anjack-soft);
	border-left: 3px solid var(--anjack-accent);
	margin: 0 0 24px;
	padding: 14px 16px;
}

.anjack-lightbox {
	align-items: center;
	background: rgba(0, 0, 0, 0.9);
	display: none;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 200;
}

.anjack-lightbox.is-open {
	display: flex;
}

.anjack-lightbox img {
	max-height: 92vh;
	max-width: 92vw;
	object-fit: contain;
}

.anjack-lightbox button {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: #fff;
	cursor: pointer;
	font-size: 0.8rem;
	font-weight: 700;
	padding: 10px 14px;
	position: absolute;
	right: 22px;
	top: 22px;
}

.animate-in {
	opacity: 1;
	transform: translateY(12px);
	transition: transform var(--anjack-slow);
}

.animate-in.is-visible {
	transform: none;
}

@media (max-width: 920px) {
	.anjack-header {
		padding: clamp(22px, 6vw, 36px) var(--anjack-mobile-padding);
	}

	.menu-toggle {
		display: inline-flex;
	}

	.primary-nav {
		background: rgba(255, 255, 255, 0.98);
		border: 1px solid var(--anjack-line);
		box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
		color: var(--anjack-ink);
		display: none;
		flex-direction: column;
		font-size: 1.05rem;
		gap: 0;
		min-width: min(320px, calc(100vw - 44px));
		padding: 14px;
		position: absolute;
		right: var(--anjack-mobile-padding);
		top: calc(100% - 10px);
	}

	.primary-nav.is-open {
		display: flex;
	}

	.primary-nav a {
		box-sizing: border-box;
		padding: 14px 10px;
		width: 100%;
	}

	.hero-content,
	.page-hero,
	.anjack-section,
	.gallery-masonry,
	.anjack-footer {
		padding-left: var(--anjack-mobile-padding);
		padding-right: var(--anjack-mobile-padding);
	}

	.hero,
	.page-hero {
		min-height: 620px;
	}

	.metrics-grid,
	.split-section,
	.split-section.is-reversed,
	.home-about,
	.portfolio-grid,
	.portfolio-grid.is-two,
	.video-grid,
	.pricing-grid,
	.trust-strip {
		grid-template-columns: 1fr;
	}

	.metrics-grid {
		padding-left: var(--anjack-mobile-padding);
		padding-right: var(--anjack-mobile-padding);
	}

	.metric {
		border-left: 0;
		border-top: 1px solid var(--anjack-line);
	}

	.metric:first-child {
		border-top: 0;
	}

	.trust-strip .metric {
		border-left: 0;
		border-top: 1px solid var(--anjack-line);
	}

	.trust-strip .metric:first-child {
		border-top: 0;
	}

	.gallery-masonry {
		column-count: 2;
	}

	.home-about-media {
		aspect-ratio: 4 / 5;
		max-width: 520px;
	}

	.home-about-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.anjack-page {
		--section-space: clamp(54px, 14vw, 82px);
	}

	.hero-video-frame {
		display: none;
	}

	.hero-content {
		padding-bottom: clamp(42px, 11vw, 58px);
		padding-top: clamp(130px, 30vw, 170px);
	}

	.page-hero {
		padding-bottom: clamp(44px, 11vw, 64px);
		padding-top: clamp(132px, 30vw, 176px);
	}

	.hero h1,
	.page-hero h1 {
		font-size: clamp(2.25rem, 10vw, 3.75rem);
		line-height: 0.98;
		max-width: 100%;
	}

	.page-hero:not(.has-image) h1 {
		font-size: clamp(2.2rem, 10vw, 3.05rem);
		overflow-wrap: anywhere;
	}

	.hero p,
	.page-hero p {
		font-size: 0.96rem;
		line-height: 1.58;
		max-width: 100%;
		overflow-wrap: anywhere;
	}

	.split-copy h2,
	.section-heading h2 {
		font-size: clamp(2rem, 10vw, 3.3rem);
		line-height: 1;
	}

	.home-about {
		gap: 28px;
	}

	.home-about-kicker {
		font-size: 0.98rem;
		margin-bottom: 18px;
	}

	.home-about-quote {
		font-size: clamp(2rem, 10vw, 3.35rem);
		line-height: 1.08;
	}

	.home-about-metrics {
		gap: 12px;
		grid-template-columns: 1fr 1fr;
		margin-top: 28px;
	}

	.home-about-metric {
		min-height: 120px;
		padding: 18px 12px;
	}

	.home-about-metric strong {
		font-size: clamp(2rem, 10vw, 3.2rem);
	}

	.home-about-metric span {
		font-size: clamp(1rem, 5.5vw, 1.45rem);
		margin-top: 10px;
	}

	.gallery-masonry {
		column-count: 1;
	}

	.card-media,
	.split-media,
	.split-media.is-wide {
		aspect-ratio: 4 / 5;
	}

	.footer-socials,
	.footer-links,
	.section-actions {
		gap: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-video-frame {
		display: none;
	}
}

/* ---- Enquiry form -------------------------------------------------------
   Extends the .contact-form / .form-row rules above with the states a real
   form needs. Deliberately ALL global: putting any of it in contact.astro's
   scoped <style> would add an attribute selector to the component's rules and
   silently outrank these, so the two files would fight over every shared
   value. One home for form styling, no specificity races.

   --anjack-error #c62f1a is 5.49:1 on white, so it is safe as small bold
   error text; --anjack-accent is only 3.51:1 and must not be used for it.
   --anjack-field-line #8b8b8b is 3.41:1, clearing the 3:1 floor that
   WCAG 1.4.11 sets for a control boundary (--anjack-line is 1.24:1). */

/* Any element toggled with the `hidden` attribute must actually hide. An
   author `display` declaration beats the UA [hidden] rule, which is how a
   "hidden" success panel ends up permanently visible. */
[hidden] {
	display: none !important;
}

.form-required-note {
	color: var(--anjack-muted);
	font-size: 0.8rem;
	line-height: 1.6;
	margin: 28px 0 0;
}

.form-required-note + .contact-form {
	margin-top: 12px;
}

.form-required {
	color: var(--anjack-error);
	font-weight: 700;
	margin-left: 0.3em;
}

.contact-form .form-row input,
.contact-form .form-row textarea,
.contact-form .form-row select {
	border-color: var(--anjack-field-line);
	transition: border-color var(--anjack-fast), box-shadow var(--anjack-fast);
}

.contact-form .form-row input:focus-visible,
.contact-form .form-row textarea:focus-visible,
.contact-form .form-row select:focus-visible,
.form-consent input:focus-visible,
.form-submit:focus-visible {
	outline: 2px solid var(--anjack-ink);
	outline-offset: 2px;
}

/* Invalid state carries a border colour AND an inset bar, so it never depends
   on colour alone. The selector must stay at least as specific as the
   `.contact-form .form-row input` rule above — that one is (0,2,1) thanks to
   the type selector, so a plain `.contact-form [aria-invalid]` at (0,2,0)
   loses the border-color and the field would show only the bar. */
.contact-form .form-row [aria-invalid='true'] {
	border-color: var(--anjack-error);
	box-shadow: inset 3px 0 0 var(--anjack-error);
}

.form-consent [aria-invalid='true'] {
	outline: 2px solid var(--anjack-error);
	outline-offset: 2px;
}

.form-error {
	align-items: flex-start;
	color: var(--anjack-error);
	display: flex;
	font-size: 0.85rem;
	font-weight: 700;
	gap: 8px;
	line-height: 1.45;
	margin: 0;
}

.form-error::before {
	border: 1px solid currentColor;
	border-radius: 50%;
	content: '!';
	flex: 0 0 auto;
	font-size: 0.72rem;
	height: 16px;
	line-height: 15px;
	text-align: center;
	width: 16px;
}

/* Sits outside .form-row on purpose: .form-row label forces uppercase 700 and
   .form-row input forces min-height 48px / width 100%, all wrong for a
   checkbox. 24px track meets the WCAG 2.5.8 target size. */
.form-consent {
	align-items: start;
	display: grid;
	gap: 12px;
	grid-template-columns: 24px minmax(0, 1fr);
	margin: 4px 0 0;
}

.form-consent input {
	accent-color: var(--anjack-ink);
	height: 24px;
	margin: 0;
	width: 24px;
}

.form-consent span {
	color: var(--anjack-muted);
	font-size: 0.9rem;
	line-height: 1.6;
}

.form-consent a {
	color: var(--anjack-ink);
	font-weight: 700;
}

/* Live region. Never display:none — a hidden live region is not in the
   accessibility tree, so the first message injected into it is the one most
   likely to go unannounced. Collapse its margin instead. */
.form-status {
	color: var(--anjack-muted);
	font-size: 0.85rem;
	line-height: 1.6;
	margin: 0;
}

.form-status:empty {
	margin: 0;
}

.form-status[data-state='error'] {
	color: var(--anjack-error);
	font-weight: 700;
}

/* aria-disabled rather than [disabled]: a disabled button drops focus and
   leaves the tab order mid-interaction. */
.form-submit[aria-disabled='true'],
.form-submit[aria-disabled='true']:hover,
.form-submit[aria-disabled='true']:focus-visible {
	background: var(--anjack-muted);
	border-color: var(--anjack-muted);
	color: #fff;
	cursor: progress;
}

.form-submit.is-sending::before {
	animation: form-submit-spin 760ms linear infinite;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	border-top-color: #fff;
	box-sizing: border-box;
	content: '';
	height: 15px;
	margin-right: 10px;
	width: 15px;
}

@keyframes form-submit-spin {
	to {
		transform: rotate(360deg);
	}
}

/* No display property here: see the [hidden] note at the top of this block. */
.form-feedback {
	background: var(--anjack-soft);
	border-left: 3px solid var(--anjack-accent);
	box-sizing: border-box;
	margin-top: 28px;
	padding: clamp(18px, 2vw, 26px);
}

.form-feedback.is-error {
	border-left-color: var(--anjack-error);
}

.form-feedback h2 {
	font-size: clamp(1.15rem, 1.4vw, 1.35rem);
	line-height: 1.3;
	margin: 0 0 8px;
}

.form-feedback p {
	color: var(--anjack-muted);
	line-height: 1.8;
	margin: 0;
}

.form-feedback p + p {
	margin-top: 12px;
}

.form-alt {
	color: var(--anjack-muted);
	font-size: 0.9rem;
	line-height: 1.7;
	margin: 4px 0 0;
}

@media (prefers-reduced-motion: reduce) {
	.form-submit.is-sending::before {
		animation-duration: 0s;
		border-top-color: rgba(255, 255, 255, 0.4);
	}
}
