/* ==========================================================================
   Nightfall theme styles
   Tokens come from theme.json (--wp--preset--*). This file handles layout,
   the custom block styles and the plugin's dynamic blocks.
   ========================================================================== */

:root {
	--nf-night: var(--wp--preset--color--night, #0b0b0c);
	--nf-charcoal: var(--wp--preset--color--charcoal, #141416);
	--nf-graphite: var(--wp--preset--color--graphite, #1c1b1e);
	--nf-line: var(--wp--preset--color--line, #343137);
	--nf-bone: var(--wp--preset--color--bone, #ebe5dc);
	--nf-ash: var(--wp--preset--color--ash, #b8b1ab);
	--nf-paper: var(--wp--preset--color--paper, #e4ded5);
	--nf-paper-ink: var(--wp--preset--color--paper-ink, #1a191b);
	--nf-plum: var(--wp--preset--color--plum, #654576);
	--nf-lilac: var(--wp--preset--color--lilac, #bea8cb);
	--nf-serif: var(--wp--preset--font-family--serif, Georgia, serif);
	--nf-sans: var(--wp--preset--font-family--sans, system-ui, sans-serif);
	--nf-gutter: var(--wp--style--root--padding-left, clamp(1rem, 5vw, 5rem));
	--nf-wide: 1280px;
	/* Left edge of the 1280px content column, so full-bleed sections line up with it. */
	--nf-edge: max(var(--nf-gutter), calc((100vw - var(--nf-wide)) / 2));
	--nf-section: clamp(2.25rem, 4.2vw, 3.75rem);
	--nf-ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; }
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-optical-sizing: auto;
}
::selection { background: var(--nf-plum); color: #fff; }
img { height: auto; }

p { color: var(--nf-ash); }
strong { color: var(--nf-bone); font-weight: 500; }
h1, h2, h3, h4 { text-wrap: balance; margin-block: 0 .5em; }
p, li { text-wrap: pretty; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
.wp-element-button:focus-visible {
	outline: 2px solid var(--nf-lilac);
	outline-offset: 3px;
}

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

.nf-main { margin-block: 0; }
.nf-main > .wp-block-post-content:not(.nf-prose) > * { margin-block: 0; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* --------------------------------------------------------------------------
   Shared bits
   -------------------------------------------------------------------------- */

.is-style-eyebrow,
.nf-eyebrow,
.nf-roster__title {
	font-family: var(--nf-sans);
	font-size: .6875rem;
	font-weight: 500;
	letter-spacing: .24em;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--nf-lilac);
	margin: 0 0 .9rem;
}
.is-style-eyebrow a { text-decoration: none; }
.is-style-eyebrow a:hover { color: var(--nf-bone); }

.nf-lead { font-size: var(--wp--preset--font-size--lg); max-width: 40rem; }
.nf-meta { font-size: .8125rem; color: var(--nf-ash); letter-spacing: .04em; }

.nf-arrow { display: inline-block; font-family: var(--nf-sans); transition: transform .25s var(--nf-ease); }

/* Buttons ----------------------------------------------------------------- */

.wp-block-buttons { gap: 1rem 1.5rem; align-items: center; }
.wp-element-button,
.wp-block-button__link { transition: background-color .2s, color .2s, border-color .2s; }

.wp-block-button.nf-external .wp-block-button__link::after,
.nf-btn::after { content: " ↗"; letter-spacing: 0; }

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--nf-bone);
	border-color: #6f5a7b;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--nf-plum);
	border-color: var(--nf-plum);
	color: #fff;
}

.wp-block-button.is-style-arrow-link > .wp-block-button__link,
.nf-link {
	display: inline-block;
	background: none;
	border: 0;
	border-bottom: 1px solid #6d6870;
	border-radius: 0;
	padding: 0 0 .3rem;
	color: var(--nf-bone);
	font-family: var(--nf-sans);
	font-size: .875rem;
	font-weight: 400;
	letter-spacing: .02em;
	text-transform: none;
	text-decoration: none;
	line-height: 1.4;
}
.wp-block-button.is-style-arrow-link > .wp-block-button__link::after { content: " ↗"; }
.wp-block-button.is-style-arrow-link > .wp-block-button__link:hover,
.nf-link:hover {
	background: none;
	color: var(--nf-lilac);
	border-bottom-color: var(--nf-lilac);
}
.nf-link--quiet { border-bottom-color: transparent; color: var(--nf-ash); }

.nf-btn {
	display: inline-block;
	background: var(--nf-bone);
	color: var(--nf-night);
	border: 1px solid var(--nf-bone);
	padding: .85rem 1.3rem;
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
}
.nf-btn:hover { background: var(--nf-lilac); border-color: var(--nf-lilac); color: var(--nf-night); }

.nf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin-top: 1.25rem; }

/* --------------------------------------------------------------------------
   Announcement + header
   -------------------------------------------------------------------------- */

.nf-announcement {
	background: var(--nf-plum);
	color: #fff;
	text-align: center;
	padding: .55rem var(--nf-gutter);
	font-size: .8125rem;
	letter-spacing: .03em;
}
.nf-announcement p { margin: 0; color: #fff; }
.nf-announcement a { color: #fff; margin-left: .5rem; text-underline-offset: 3px; }

.nf-header {
	background: #0a0a0b;
	border-bottom: 1px solid var(--nf-line);
	position: relative;
	z-index: 20;
}
.nf-header__inner {
	max-width: calc(var(--nf-wide) + 2 * var(--nf-gutter));
	margin-inline: auto;
	padding: .65rem var(--nf-gutter);
	min-height: 76px;
	gap: 1.5rem;
}
.nf-header__logo img { width: 58px; height: auto; display: block; }
.nf-header__nav { gap: 2rem; }
.nf-nav .wp-block-navigation__container { gap: 1.75rem; }
.nf-nav .wp-block-navigation-item__content {
	color: var(--nf-bone);
	text-decoration: none;
	padding-block: .35rem;
	border-bottom: 1px solid transparent;
	transition: color .2s, border-color .2s;
}
.nf-nav .wp-block-navigation-item__content:hover { color: var(--nf-lilac); }
.nf-nav .current-menu-item > .wp-block-navigation-item__content,
.nf-nav .wp-block-navigation-item__content[aria-current="page"] { border-bottom-color: var(--nf-lilac); }
.nf-header__cta .wp-block-button__link { padding: .75rem 1.15rem; font-size: .6875rem; }

/* Mobile menu (core navigation overlay) */
.nf-nav .wp-block-navigation__responsive-container-open,
.nf-nav .wp-block-navigation__responsive-container-close { color: var(--nf-bone); }
.nf-nav .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
.nf-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--nf-night) !important;
	color: var(--nf-bone) !important;
	padding: 1.5rem var(--nf-gutter) 2rem;
}
.nf-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.5rem; }
.nf-nav .is-menu-open .wp-block-navigation__container { gap: .35rem; }
.nf-nav .is-menu-open .wp-block-navigation-item__content {
	font-family: var(--nf-serif);
	font-size: 2.25rem;
	letter-spacing: -.01em;
	line-height: 1.15;
}

@media (min-width: 600px) and (max-width: 959px) {
	/* Show the menu button up to tablet width; six links do not fit beside the logo. */
	.nf-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.nf-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
@media (max-width: 1099px) {
	.nf-header__cta { display: none !important; }
}
@media (max-width: 1199px) {
	.nf-nav .wp-block-navigation__container { gap: 1.2rem; }
}

/* --------------------------------------------------------------------------
   Hero: large crest with the studio name beside it and the buttons below,
   over one wide photograph (hero.png: the sleeve on the calligraphy mural).
   The image scales with the hero and is anchored on the arm, so narrower
   screens trim the empty left side first and the tattoo stays in view.
   The text column stops before the arm. Nothing is rotated.
   -------------------------------------------------------------------------- */

.nf-hero {
	--nf-hero-h: clamp(460px, 36vw, 540px);
	position: relative;
	display: flex;
	align-items: center;
	min-height: var(--nf-hero-h);
	max-width: 1600px;
	margin-inline: auto;
	overflow: hidden;
	isolation: isolate;
	background: #0b0b0b;
}
/* Purple haze over the dark left side of the photo */
.nf-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: radial-gradient(ellipse 42% 80% at 14% 50%, rgba(127, 35, 173, .2), transparent 70%);
}

.nf-hero__photo {
	position: absolute !important;
	inset: 0;
	margin: 0 !important;
	z-index: 0;
	overflow: hidden;
}
.nf-hero__photo img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	/* The arm sits about 75% across hero.png; keep it in frame at every width. */
	object-position: 76% 50%;
	/* Soft right and bottom edges where the image meets the page on wide screens. */
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 93%, transparent 100%), linear-gradient(180deg, #000 90%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 93%, transparent 100%), linear-gradient(180deg, #000 90%, transparent 100%);
	mask-composite: intersect;
}

.nf-hero__copy {
	position: relative;
	z-index: 2;
	width: 64%;
	padding: 2.5rem 1.5rem 2.5rem max(var(--nf-gutter), calc((min(100vw, 1600px) - var(--nf-wide)) / 2));
}
.nf-hero__brand { display: flex; align-items: center; gap: clamp(1.5rem, 3.2vw, 3.25rem); }
.nf-hero__crest { margin: 0 !important; flex: none; }
.nf-hero__crest img { width: clamp(220px, 21vw, 330px); height: auto; display: block; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
.nf-hero__text { min-width: 0; }
.nf-hero__title {
	font-family: var(--nf-sans);
	font-size: clamp(.875rem, 1.05vw, 1.0625rem);
	font-weight: 500;
	line-height: 1.85;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--nf-bone);
	margin: 0 0 1.1rem;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .8);
}
.nf-hero__title em {
	font-style: normal;
	color: var(--nf-lilac);
	display: inline-flex;
	align-items: center;
	gap: 1.1rem;
	white-space: nowrap;
}
.nf-hero__title em::after { content: ""; width: 5.5rem; height: 1px; background: var(--nf-plum); }
.nf-hero__lead {
	font-family: var(--nf-serif);
	font-size: clamp(1.5rem, 2.15vw, 2.125rem);
	line-height: 1.25;
	letter-spacing: -.01em;
	max-width: 34rem;
	margin: 0;
	color: #ece5dc;
	text-shadow: 0 2px 22px rgba(0, 0, 0, .9);
}
.nf-hero__actions { gap: 1rem 2rem; margin-top: clamp(1.75rem, 3vw, 2.5rem) !important; }
.nf-hero__actions .wp-block-button:not(.is-style-arrow-link) .wp-block-button__link { padding: 1.15rem 1.9rem; font-size: .8125rem; }
.nf-hero__actions .is-style-arrow-link .wp-block-button__link { font-size: 1rem; }

@media (min-width: 1000px) and (max-width: 1199px) {
	.nf-hero__title { font-size: .8125rem; letter-spacing: .22em; }
	.nf-hero__title em::after { display: none; }
	.nf-hero__crest img { width: clamp(190px, 19vw, 220px); }
	.nf-hero__lead { font-size: 1.375rem; }
}

/* Phones and small tablets: the whole hero becomes a wide banner (like the
   desktop composition, scaled down) with the crest large on its dark left
   side and the full arm on the right. Name, line and buttons sit below. */
@media (max-width: 999px) {
	.nf-hero { --nf-band-h: calc(100vw / 2.3); display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
	.nf-hero::before { display: none; }
	.nf-hero__photo { position: relative !important; inset: auto; height: var(--nf-band-h); }
	.nf-hero__photo img {
		object-position: 78% 50%;
		-webkit-mask-image: linear-gradient(180deg, #000 90%, transparent 100%);
		mask-image: linear-gradient(180deg, #000 90%, transparent 100%);
	}
	/* Darken the left of the banner so the crest reads cleanly. */
	.nf-hero__photo::after {
		content: "";
		position: absolute;
		inset: 0;
		pointer-events: none;
		background: linear-gradient(90deg, rgba(11, 11, 11, .96) 0%, rgba(11, 11, 11, .82) 30%, rgba(11, 11, 11, .2) 52%, transparent 62%);
	}
	/* The crest is lifted out of the text column and placed on the banner. */
	.nf-hero__crest {
		position: absolute !important;
		z-index: 3;
		left: var(--nf-gutter);
		top: calc(var(--nf-band-h) / 2);
		transform: translateY(-50%);
		margin: 0 !important;
	}
	.nf-hero__crest img { width: min(42vw, 300px); max-height: calc(var(--nf-band-h) * .92); width: auto; height: min(42vw, 300px); max-width: 42vw; object-fit: contain; }
	.nf-hero__brand { display: block; }
	.nf-hero__copy { position: static; width: 100%; margin: 0; padding: 1.5rem var(--nf-gutter) 2.5rem; }
	.nf-hero__title { font-size: .75rem; letter-spacing: .24em; }
	.nf-hero__lead { font-size: clamp(1.25rem, 3.4vw, 1.625rem); max-width: 30rem; }
}
@media (max-width: 599px) {
	.nf-hero__title em::after { width: 2rem; }
	.nf-hero__actions { flex-direction: column; align-items: flex-start !important; margin-top: 1.5rem !important; }
}

/* Specialties strip */
.is-style-specialties {
	list-style: none;
	margin: 0;
	padding: .85rem var(--nf-gutter);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .35rem 0;
	background: #131314;
	border-block: 1px solid var(--nf-line);
	font-size: .6875rem;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: #d6cfc6;
}
.is-style-specialties li { white-space: nowrap; }
.is-style-specialties li + li::before { content: "/"; margin: 0 1.4em; color: #6b6470; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.nf-section { padding-block: var(--nf-section); }
.nf-section--tight { padding-top: 1rem; }
.nf-section + .nf-section { padding-top: 0; }
.nf-section h2 { font-size: clamp(2rem, 3.4vw, 3rem); }

.nf-intro { padding-block: clamp(2rem, 3.5vw, 3rem); }
.nf-intro__cols { gap: 5%; align-items: center !important; margin: 0; }
.nf-intro h2 { margin: 0; font-size: clamp(2rem, 3vw, 2.75rem); }
.nf-intro p { font-size: 1rem; margin-bottom: .9rem; }

.nf-sectionhead { margin-bottom: 1.1rem; gap: 1rem; }
.nf-sectionhead h2 { margin: 0; }

/* Work tiles (homepage, gallery, artist and project pages) */
.nf-work__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}
.nf-work__item { margin: 0; }
.nf-work__item[hidden] { display: none; }
.nf-work__open {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: var(--nf-graphite);
	aspect-ratio: 4 / 5;
	overflow: hidden;
	cursor: zoom-in;
}
.nf-work__open img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--nf-ease), filter .5s var(--nf-ease);
}
.nf-work__open::after {
	content: "";
	position: absolute;
	inset: 0;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
	background: linear-gradient(0deg, rgba(11, 11, 11, .45), transparent 35%);
	opacity: 0;
	transition: opacity .3s;
}
.nf-work__open:hover img { transform: scale(1.04); }
.nf-work__open:hover::after,
.nf-work__open:focus-visible::after { opacity: 1; }
.nf-work__count {
	position: absolute;
	right: .6rem;
	bottom: .6rem;
	z-index: 1;
	padding: .2rem .5rem;
	background: rgba(11, 11, 11, .72);
	color: var(--nf-bone);
	font-size: .6875rem;
	letter-spacing: .08em;
}
.nf-work--featured .nf-work__open { aspect-ratio: .94; }
.nf-work--project .nf-work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nf-work--project .nf-work__open { aspect-ratio: auto; }
.nf-work--project .nf-work__open img { height: auto; }
.nf-empty { color: var(--nf-ash); }

.nf-filters { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1.25rem; }
.nf-filter {
	background: none;
	border: 0;
	border-bottom: 1px solid transparent;
	color: var(--nf-ash);
	padding: .35rem 0;
	font: 500 .6875rem/1.4 var(--nf-sans);
	letter-spacing: .2em;
	text-transform: uppercase;
	cursor: pointer;
}
.nf-filter:hover { color: var(--nf-bone); }
.nf-filter[aria-pressed="true"] { color: var(--nf-bone); border-bottom-color: var(--nf-lilac); }

/* Featured artist band (light). Content sits in the 1280px column, portrait close to the copy. */
.nf-feature-artist {
	background:
		radial-gradient(ellipse 60% 120% at 0% 50%, rgba(127, 35, 173, .08), transparent 60%),
		var(--nf-paper);
	color: var(--nf-paper-ink);
	border-block: 1px solid #bdb7ae;
	margin-block: 0;
}
.nf-feature-artist__inner {
	max-width: calc(var(--nf-wide) + 2 * var(--nf-gutter));
	margin-inline: auto;
	padding: clamp(1.75rem, 3vw, 2.5rem) var(--nf-gutter);
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: clamp(1.75rem, 4.5vw, 4rem);
	align-items: center;
}
.nf-feature-artist__media img { display: block; width: auto; max-width: 100%; height: clamp(170px, 18vw, 250px); object-fit: contain; filter: drop-shadow(0 14px 22px rgba(26, 25, 27, .22)); }
.nf-feature-artist__copy { max-width: 42rem; }
.nf-feature-artist h2 { color: var(--nf-paper-ink); font-size: clamp(2rem, 3.2vw, 2.875rem); margin-bottom: .6rem; }
.nf-feature-artist p { color: #4f4a4e; margin: 0 0 .5rem; }
.nf-feature-artist .nf-eyebrow { color: var(--nf-plum); }
.nf-feature-artist .nf-eyebrow::before { background: var(--nf-plum); }
.nf-feature-artist strong { color: var(--nf-paper-ink); font-weight: 600; }
.nf-feature-artist__name { color: var(--nf-paper-ink) !important; }
.nf-feature-artist .nf-link { color: var(--nf-paper-ink); border-bottom-color: var(--nf-plum); margin-top: .6rem; }
.nf-feature-artist .nf-link:hover { color: var(--nf-plum); }

/* Process */
.nf-process { border-bottom: 1px solid var(--nf-line); }
.nf-process h2 { margin-bottom: 1rem; }
.nf-process__row { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; }
.nf-process__steps { gap: 2rem; margin: 0; }
.nf-process__steps > .wp-block-column { border-top: 1px solid var(--nf-line); padding-top: .9rem; }
.nf-process h3 { font-size: 1.5rem; margin: 0 0 .25rem; }
.nf-process p { font-size: .9375rem; margin: 0; }
.nf-process--page .nf-process__steps { margin-top: .5rem; }

/* Split photo / copy */
.nf-split {
	display: grid;
	grid-template-columns: 56% 44%;
	background: #121213;
	border-block: 1px solid var(--nf-line);
	margin-block: 0;
}
.nf-split__photo { margin: 0 !important; min-height: 300px; position: relative; overflow: hidden; }
.nf-split__photo img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
.nf-split__copy { padding: clamp(1.75rem, 3vw, 2.75rem) 9%; align-self: center; }
.nf-split__copy h2 { font-size: clamp(2rem, 3vw, 2.75rem); }
.nf-split__copy p { font-size: .9375rem; }
.nf-split--reverse { grid-template-columns: 44% 56%; }
.nf-split--reverse .nf-split__photo { order: 2; }
.nf-split .nf-details { margin: 1.1rem 0 1.25rem; }

/* Definition lists for studio details */
.nf-details dl, dl.nf-details { margin: 0; display: grid; gap: .65rem; }
.nf-details dl { margin-bottom: 1.1rem; }
.nf-details__row { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; }
.nf-details dt {
	font-size: .6875rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: #9c949f;
	padding-top: .2rem;
}
.nf-details dd { margin: 0; color: var(--nf-bone); font-size: .9375rem; line-height: 1.5; }
.nf-details dd a { color: inherit; text-decoration: none; border-bottom: 1px solid #5d5862; }
.nf-details dd a:hover { color: var(--nf-lilac); }

/* Resource cards: each list item is a card, its first link covers the card. */
.nf-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}
.nf-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nf-cards li {
	position: relative;
	border: 1px solid var(--nf-line);
	padding: 1.1rem 1.25rem 1.2rem;
	color: var(--nf-ash);
	font-size: .8125rem;
	line-height: 1.5;
	transition: border-color .2s, background-color .2s;
}
.nf-cards li a {
	display: inline-block;
	margin-bottom: .2rem;
	color: var(--nf-bone);
	font-family: var(--nf-serif);
	font-size: 1.25rem;
	text-decoration: none;
	letter-spacing: -.005em;
}
.nf-cards li a::after { content: " ↗"; font-family: var(--nf-sans); font-size: .8em; color: var(--nf-lilac); }
.nf-cards li a::before { content: ""; position: absolute; inset: 0; }
.nf-cards li:hover { border-color: #7e6a89; background: #121213; }
.nf-cards li:focus-within { border-color: var(--nf-lilac); }
.nf-cards li a:focus-visible { outline: none; }
.nf-resources h2 { margin-bottom: 1.1rem; }

/* Call to action band */
.nf-cta { padding-block: var(--nf-section); border-top: 1px solid var(--nf-line); }
.nf-cta__inner { gap: 1.5rem 3rem; }
.nf-cta h2 { margin-bottom: .35rem; }
.nf-cta p { margin: 0; }

/* Studio page photo row */
.nf-photo-row {
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 8px;
	height: clamp(320px, 42vw, 600px);
	padding-inline: var(--nf-gutter);
	max-width: calc(var(--nf-wide) + 2 * var(--nf-gutter));
	margin-inline: auto !important;
}
.nf-photo-row > .wp-block-image { margin: 0; overflow: hidden; position: relative; }
.nf-photo-row > .wp-block-image img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
.nf-photo-row__main { grid-row: span 2; }

.nf-info-cols { gap: 3rem; }
.nf-info-cols h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.nf-info-cols p { font-size: .9375rem; }
.nf-section.nf-care { border-block: 1px solid var(--nf-line); padding-top: var(--nf-section); margin-bottom: var(--nf-section); }

/* --------------------------------------------------------------------------
   Page headers, prose pages, news
   -------------------------------------------------------------------------- */

.nf-pagehead { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.nf-pagehead h1,
.nf-pagehead .wp-block-post-title,
.nf-pagehead .wp-block-query-title { margin: 0 0 .9rem; font-size: clamp(2.75rem, 6vw, 4.75rem); line-height: 1; }
.nf-pagehead .nf-lead { margin-bottom: 1.5rem; }
/* Constrained layouts centre narrow children; keep page intros on the left edge of the column. */
.nf-pagehead.is-layout-constrained > .nf-lead {
	max-width: min(40rem, 100%) !important;
	margin-left: max(0px, calc((100% - var(--nf-wide)) / 2)) !important;
}
.nf-pagehead .wp-block-buttons { margin-top: .5rem; }

.nf-prose { padding-bottom: var(--nf-section); }
.nf-prose > * + * { margin-top: 1.1rem; }
.nf-prose > * { margin-bottom: 0; }
.nf-prose > .wp-block-heading + * { margin-top: .6rem; }
.nf-prose h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); margin-top: 2.75rem; }
.nf-prose h3 { font-size: 1.375rem; margin-top: 1.75rem; }
.nf-prose p, .nf-prose li { color: #cfc8c1; }
.nf-prose ul:not(.nf-toc), .nf-prose ol { padding-left: 1.2rem; }
.nf-prose ul:not(.nf-toc) li { margin-bottom: .5rem; padding-left: .25rem; }
.nf-prose ul:not(.nf-toc) li::marker { color: var(--nf-lilac); }
.nf-prose a { color: var(--nf-bone); text-underline-offset: 3px; text-decoration-color: #6d6870; }
.nf-prose a:hover { color: var(--nf-lilac); }
.nf-prose .wp-block-separator { border: 0; border-top: 1px solid var(--nf-line); margin-block: 2.5rem; }
.nf-toc { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; border-block: 1px solid var(--nf-line); padding-block: .9rem; }
.nf-toc a { text-decoration: none; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--nf-bone); }
.nf-toc a::after { content: " ↓"; color: var(--nf-lilac); }
.nf-feature-img img { width: 100%; height: auto; display: block; }
.nf-feature-img { margin-block: 0 2rem; }

.nf-postlist { padding-bottom: var(--nf-section); }
.nf-postlist__item { border-top: 1px solid var(--nf-line); padding-block: 1.5rem; }
.nf-postlist__item .wp-block-post-title { margin: .25rem 0 .5rem; }
.nf-postlist__item .wp-block-post-title a { text-decoration: none; }
.nf-postlist__item .wp-block-post-title a:hover { color: var(--nf-lilac); }
.wp-block-post-excerpt__more-link { color: var(--nf-bone); font-size: .875rem; }
.wp-block-query-pagination a { color: var(--nf-bone); }

.nf-backlink { padding-block: 1.5rem var(--nf-section); }

/* --------------------------------------------------------------------------
   Artists
   -------------------------------------------------------------------------- */

.nf-roster + .nf-roster { margin-top: clamp(3rem, 6vw, 5rem); }
.nf-section .nf-roster__title,
.nf-roster__title {
	font-family: var(--nf-sans);
	font-size: .6875rem;
	font-weight: 500;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--nf-lilac);
	display: flex;
	align-items: center;
	gap: .9rem;
	margin: 0 0 1.5rem;
}
.nf-roster__title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(127, 35, 173, .7), transparent); }

.nf-roster__portrait { position: relative; isolation: isolate; }
.nf-roster__portrait::before {
	content: "";
	position: absolute;
	inset: 8% 4% 18%;
	z-index: -1;
	background: radial-gradient(closest-side, rgba(127, 35, 173, .42), transparent);
	filter: blur(24px);
}
.nf-roster__portrait img { width: 100%; height: auto; display: block; }
.nf-roster__name { margin: 0 0 .75rem; }
.nf-roster__name a { text-decoration: none; }
.nf-roster__name a:hover { color: var(--nf-lilac); }
.nf-roster__bio { color: #cfc8c1 !important; }
.nf-roster__dates { color: var(--nf-bone) !important; font-size: .9375rem; }

.nf-chips { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.nf-chips li {
	border: 1px solid rgba(127, 35, 173, .75);
	background: rgba(127, 35, 173, .1);
	color: var(--nf-bone);
	padding: .35rem .8rem;
	font-size: .6875rem;
	letter-spacing: .16em;
	text-transform: uppercase;
}

/* Residents and apprentices: large feature with a strip of work */
.nf-roster--feature .nf-roster__artist {
	display: grid;
	grid-template-columns: minmax(220px, 380px) minmax(0, 1fr);
	gap: clamp(2rem, 6vw, 5.5rem);
	align-items: center;
}
.nf-roster--feature .nf-roster__artist + .nf-roster__artist { margin-top: clamp(3rem, 6vw, 5rem); }
.nf-roster--feature .nf-roster__name { font-size: clamp(2.75rem, 5.5vw, 4.75rem); line-height: .98; }
.nf-roster--feature .nf-roster__bio { font-size: 1.0625rem; max-width: 38rem; }
.nf-roster--feature .nf-actions { margin-top: 1.75rem; }
.nf-roster__work { grid-column: 1 / -1; margin-top: .5rem; }

/* Guests: compact cards, no outlines */
.nf-roster--cards .nf-roster__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 1rem; }
.nf-roster--cards .nf-roster__artist {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 1.75rem;
	align-items: center;
	padding: 1.75rem;
	background: linear-gradient(135deg, #161418, #0f0f10 70%);
}
.nf-roster--cards .nf-roster__name { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.nf-roster--cards .nf-roster__bio { font-size: .9375rem; }

.nf-artist-single__intro { padding-top: clamp(2.5rem, 6vw, 5rem); gap: clamp(2rem, 5vw, 4rem); align-items: center !important; }
.nf-artist-single__portrait img { width: 100%; height: auto; }
.nf-artist-single .wp-block-post-title { font-size: clamp(2.75rem, 6vw, 4.5rem); margin-bottom: .5rem; }
.nf-artist-profile .nf-details { margin: 1rem 0; }
.nf-section-title { font-size: clamp(2rem, 3.4vw, 3rem); margin-top: var(--nf-section); padding-top: 1.5rem; border-top: 1px solid var(--nf-line); }
.nf-project-single .nf-details { margin-top: 1.5rem; }

/* Link card page (/card/) */
.nf-linkcard { padding-block: clamp(2rem, 8vw, 5rem); text-align: center; }
.nf-linkcard .wp-block-site-logo { display: flex; justify-content: center; margin-bottom: 1rem; }
.nf-linkcard__links { gap: .6rem; margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   Footer + mobile quick bar
   -------------------------------------------------------------------------- */

.nf-footer {
	background: #080809;
	border-top: 1px solid var(--nf-line);
	padding: clamp(2.5rem, 5vw, 3.5rem) var(--nf-gutter) 1.25rem;
	margin-top: 0;
	font-size: .875rem;
}
.nf-footer__cols { gap: 2.5rem; margin-bottom: 2.25rem !important; }
.nf-footer__brand .wp-block-site-logo img { width: 150px; }
.nf-footer__brand p { margin: .9rem 0 .75rem; font-size: .875rem; }
.nf-footer__title {
	font-family: var(--nf-sans) !important;
	font-size: .6875rem !important;
	font-weight: 500 !important;
	letter-spacing: .24em !important;
	text-transform: uppercase;
	color: var(--nf-lilac) !important;
	margin: 0 0 1rem !important;
	line-height: 1.5 !important;
}
.nf-footer__links, .nf-footer__social { list-style: none; padding: 0; margin: 0; }
.nf-footer__links li { margin-bottom: .45rem; }
.nf-footer__social { display: flex; gap: 1.25rem; }
.nf-footer a { color: var(--nf-bone); text-decoration: none; }
.nf-footer a:hover { color: var(--nf-lilac); }
.nf-footer .nf-details__row { grid-template-columns: 1fr; gap: .1rem; }
.nf-footer .nf-details dl { gap: .75rem; }
.nf-footer .nf-details dd { font-size: .875rem; }
.nf-footer__base {
	border-top: 1px solid var(--nf-line);
	padding-top: 1.1rem;
	font-size: .75rem;
	gap: .5rem 2rem;
}
.nf-footer__base p { margin: 0; color: #8f8891; }

.nf-mobilebar { display: none; }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.nf-lightbox-open { overflow: hidden; }
.nf-lightbox {
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--nf-bone);
}
.nf-lightbox::backdrop { background: rgba(5, 5, 6, .96); }
.nf-lightbox[open] { display: grid; place-items: center; }
.nf-lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 3.5rem 4.5rem 1.5rem; max-width: 100%; }
.nf-lightbox__figure img { max-width: min(92vw, 1400px); max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; }
.nf-lightbox figcaption { display: flex; gap: 1.5rem; font-size: .8125rem; color: var(--nf-ash); letter-spacing: .04em; }
.nf-lightbox__btn {
	position: fixed;
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border: 1px solid #4a4550;
	background: rgba(11, 11, 11, .6);
	color: var(--nf-bone);
	font: 300 1.75rem/1 var(--nf-sans);
	cursor: pointer;
	transition: border-color .2s, color .2s;
}
.nf-lightbox__btn:hover { border-color: var(--nf-lilac); color: var(--nf-lilac); }
.nf-lightbox__btn[hidden] { display: none; }
.nf-lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.nf-lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.nf-lightbox__close { right: 1rem; top: 1rem; }

/* --------------------------------------------------------------------------
   Purple accents and atmosphere
   Accent colour is Nightfall purple #7f23ad, taken from the current site.
   Photographs are never tinted.
   -------------------------------------------------------------------------- */

/* Film grain over the whole page: very faint, adds texture to the flat blacks. */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 40;
	pointer-events: none;
	opacity: .07;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Buttons */
.nf-btn { background: var(--nf-plum); border-color: var(--nf-plum); color: #fff; }
.nf-btn:hover { background: #9633c9; border-color: #9633c9; color: #fff; }
.wp-block-button.is-style-outline > .wp-block-button__link { border-color: var(--nf-plum); }
.wp-block-button.is-style-arrow-link > .wp-block-button__link,
.nf-link { border-bottom-color: rgba(127, 35, 173, .85); }
.nf-link--quiet { border-bottom-color: transparent; }
.nf-link--quiet:hover { border-bottom-color: var(--nf-plum); }
.wp-block-button.is-style-arrow-link > .wp-block-button__link::after { color: var(--nf-lilac); }

/* Eyebrow labels get a short purple rule */
.is-style-eyebrow,
.nf-eyebrow { display: flex; align-items: center; gap: .75rem; }
.is-style-eyebrow::before,
.nf-eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: var(--nf-plum); flex: none; }
.is-style-eyebrow.has-text-align-center { justify-content: center; }
/* Section text rules (e.g. .nf-intro p) must not enlarge labels. */
.is-style-eyebrow, .nf-eyebrow { font-size: .6875rem !important; line-height: 1.5 !important; margin-bottom: .9rem !important; }

/* Specialties strip */
.is-style-specialties li + li::before { color: var(--nf-plum); }
.is-style-specialties { box-shadow: inset 0 1px 0 rgba(127, 35, 173, .35); }

/* Section heading row: a fading purple line between the heading and its link */
.nf-sectionhead { flex-wrap: nowrap !important; align-items: flex-end !important; }
.nf-sectionhead::after { content: ""; order: 1; flex: 1; height: 1px; margin: 0 0 .75rem; background: linear-gradient(90deg, rgba(127, 35, 173, .8), rgba(52, 49, 55, .6)); }
.nf-sectionhead > .wp-block-buttons { order: 2; }

/* Process steps start with a purple tick */
.nf-process__steps > .wp-block-column { position: relative; }
.nf-process__steps > .wp-block-column::before { content: ""; position: absolute; top: -1px; left: 0; width: 2.5rem; height: 2px; background: var(--nf-plum); }

/* Vertical purple bar beside split-section copy (like the studio band in the reference mockups) */
.nf-split__copy { border-left: 2px solid var(--nf-plum); }

/* Cards */
.nf-cards li:hover { border-color: var(--nf-plum); background: linear-gradient(135deg, rgba(127, 35, 173, .12), transparent 70%); }

/* Footer */
.nf-footer { background: radial-gradient(ellipse 50% 80% at 100% 100%, rgba(127, 35, 173, .1), transparent 70%), #080809; }
.nf-footer__wordmark { margin: 0 !important; }
.nf-footer__wordmark img { width: 170px; height: auto; }

/* Lightbox and filters */
.nf-filter[aria-pressed="true"] { border-bottom-color: var(--nf-plum); }
.nf-lightbox__btn:hover { border-color: var(--nf-plum); }

/* Atmosphere on page headers */
/* Purple glow in the top-left corner of every page. It sits on <main>, which always
   spans the full screen width, so it reaches the screen edge whatever template or
   content width a page uses. The homepage hero covers it with its own background. */
.nf-main { position: relative; isolation: isolate; }
.nf-main::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: clamp(320px, 40vw, 520px);
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(ellipse min(85vw, 640px) clamp(260px, 30vw, 400px) at 0 0, rgba(127, 35, 173, .16), transparent 100%);
}

/* --------------------------------------------------------------------------
   Aftercare: film and bandage instructions side by side
   -------------------------------------------------------------------------- */

.nf-aftercare__cols { gap: clamp(1.5rem, 4vw, 3.5rem) !important; align-items: stretch !important; margin: 0; }
.nf-aftercare__col {
	background: linear-gradient(160deg, #161418, #0f0f10 75%);
	border-top: 2px solid var(--nf-plum);
	padding: clamp(1.5rem, 3vw, 2.25rem);
}
.nf-aftercare__col h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); margin: 0 0 1rem; }
.nf-aftercare__col h3 { font-size: 1.25rem; margin: 1.5rem 0 .6rem; }
.nf-aftercare__col p,
.nf-aftercare__col li { color: #d6cfc8; font-size: 1rem; }
.nf-aftercare__col ul { padding-left: 1.2rem; margin: 0; }
.nf-aftercare__col li { margin-bottom: .55rem; padding-left: .25rem; }
.nf-aftercare__col li::marker { color: var(--nf-lilac); }
.nf-aftercare__note { margin-top: clamp(1.75rem, 3vw, 2.5rem) !important; }
.nf-aftercare.is-layout-constrained > .nf-aftercare__note { max-width: min(46rem, 100%) !important; margin-left: max(0px, calc((100% - var(--nf-wide)) / 2)) !important; }
.nf-aftercare__note p { color: #cfc8c1; }
.nf-aftercare__note a { color: var(--nf-bone); text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   FAQ (Client info): native <details> accordion
   -------------------------------------------------------------------------- */

.nf-section.nf-faq { border-top: 1px solid var(--nf-line); padding-top: var(--nf-section); margin-top: var(--nf-section); }
.nf-faq__cols { gap: clamp(1.5rem, 5vw, 4rem) !important; margin: 0; }
.nf-faq .wp-block-column > p a { color: var(--nf-bone); }
.nf-faq__item { border-bottom: 1px solid var(--nf-line); margin: 0 !important; }
.nf-faq__item:first-child { border-top: 1px solid var(--nf-line); }
.nf-faq__group { margin: 0 0 .75rem !important; }
.nf-faq__group:not(:first-child) { margin-top: clamp(2rem, 3.5vw, 2.75rem) !important; }
.nf-faq__group + .nf-faq__item { border-top: 1px solid var(--nf-line); }
.nf-faq__item summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	padding: 1.1rem 0;
	font-family: var(--nf-serif);
	font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
	color: var(--nf-bone);
}
.nf-faq__item summary::-webkit-details-marker { display: none; }
.nf-faq__item summary::after {
	content: "+";
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	display: grid;
	place-items: center;
	border: 1px solid rgba(127, 35, 173, .8);
	color: var(--nf-lilac);
	font-family: var(--nf-sans);
	font-size: 1.1rem;
	line-height: 1;
	transition: background-color .2s;
}
.nf-faq__item[open] summary::after { content: "\2013"; background: var(--nf-plum); color: #fff; }
.nf-faq__item summary:hover { color: var(--nf-lilac); }
.nf-faq__item > p { margin: 0 0 1.25rem; max-width: 44rem; color: #cfc8c1; }
.nf-faq__item a { color: var(--nf-bone); text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Card (/card/): stacked link buttons with an icon box, like the original card.
   Each button's icon comes from its class (nf-cardlink--book, --instagram, ...).
   -------------------------------------------------------------------------- */

.nf-linkcard { padding-block: clamp(1.5rem, 5vw, 3.5rem); }
.nf-linkcard__links { gap: .75rem !important; align-items: stretch !important; }
.nf-linkcard__links > .nf-cardlink { width: 100% !important; flex-basis: auto !important; }
.nf-cardlink .wp-block-button__link {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-height: 68px;
	padding: .75rem 1rem .75rem calc(68px + 1rem) !important;
	background: linear-gradient(135deg, #18161a, #0f0f10) !important;
	border: 1px solid #3c3640 !important;
	color: var(--nf-bone) !important;
	font-family: var(--nf-serif) !important;
	font-size: clamp(1.25rem, 5vw, 1.625rem) !important;
	font-weight: 400 !important;
	letter-spacing: .02em !important;
	text-transform: none !important;
	text-align: center;
}
.nf-cardlink .wp-block-button__link::before {
	content: "";
	position: absolute;
	top: -1px;
	bottom: -1px;
	left: -1px;
	width: 68px;
	background: var(--nf-plum);
}
.nf-cardlink .wp-block-button__link::after {
	content: "";
	position: absolute;
	left: 20px;
	top: 50%;
	width: 28px;
	height: 28px;
	transform: translateY(-50%);
	background: #fff;
	-webkit-mask: var(--nf-icon) center / contain no-repeat;
	mask: var(--nf-icon) center / contain no-repeat;
}
.nf-cardlink .wp-block-button__link:hover { border-color: var(--nf-plum) !important; color: #fff !important; background: linear-gradient(135deg, #24172b, #0f0f10) !important; }
.nf-cardlink--book { --nf-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='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16' rx='1'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4M7.5 13.5h3M7.5 17h6'/%3E%3C/svg%3E"); }
.nf-cardlink--instagram { --nf-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='1.8'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.3' cy='6.7' r='.6' fill='%23000'/%3E%3C/svg%3E"); }
.nf-cardlink--facebook { --nf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M13.5 22v-8.5h2.9l.4-3.4h-3.3V8c0-1 .3-1.6 1.7-1.6h1.8V3.3c-.3 0-1.4-.1-2.6-.1-2.6 0-4.4 1.6-4.4 4.5v2.4H7v3.4h3V22z'/%3E%3C/svg%3E"); }
.nf-cardlink--email { --nf-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='1.8' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='1'/%3E%3Cpath d='m3 6 9 7 9-7'/%3E%3C/svg%3E"); }
.nf-cardlink--aftercare { --nf-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='1.8' stroke-linejoin='round'%3E%3Crect x='1.8' y='8.2' width='20.4' height='7.6' rx='3.8' transform='rotate(-45 12 12)'/%3E%3Cpath d='m9.2 9.2 5.6 5.6'/%3E%3C/svg%3E"); }
.nf-cardlink--waiver { --nf-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='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2.5H6a1.5 1.5 0 0 0-1.5 1.5v16A1.5 1.5 0 0 0 6 21.5h12a1.5 1.5 0 0 0 1.5-1.5V8z'/%3E%3Cpath d='M14 2.5V8h5.5M8 13h8M8 17h5'/%3E%3C/svg%3E"); }
.nf-cardlink--phone { --nf-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='1.8' stroke-linejoin='round'%3E%3Cpath d='M21 16.5v3a2 2 0 0 1-2.2 2A19.8 19.8 0 0 1 2.5 5.2 2 2 0 0 1 4.5 3h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.4 10.9a16 16 0 0 0 4.7 4.7l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }

/* Blank template (ICF tool): the page's own HTML supplies its look. */
.page-template-page-blank::after,
.page-template-page-blank .nf-mobilebar { display: none !important; }

/* --------------------------------------------------------------------------
   Appointments page
   -------------------------------------------------------------------------- */

.nf-booking h2,
.nf-booking-details h2,
.nf-booking-info h2,
.nf-booking-visit h2 { font-size: clamp(2rem, 3.2vw, 2.75rem); margin-bottom: 1.25rem; }

/* How booking works: four cards in a 2 x 2 grid */
.nf-steps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(.75rem, 1.5vw, 1.25rem);
	counter-reset: nf-step;
	margin-top: 0 !important;
}
.nf-step {
	margin: 0 !important;
	padding: clamp(1.4rem, 2.6vw, 2rem);
	background: linear-gradient(160deg, #161418, #0f0f10 75%);
	border-top: 2px solid var(--nf-plum);
}
.nf-step h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); margin: 0 0 .65rem; }
.nf-step p { margin: 0; color: #d6cfc8; font-size: 1rem; }
.nf-step a { color: var(--nf-bone); text-underline-offset: 3px; }
.nf-step strong { color: var(--nf-bone); }

/* Before you book / Choose your artist */
.nf-booking-details__cols { gap: clamp(2rem, 6vw, 5rem) !important; margin: 0; }
.nf-booking-details p { color: #cfc8c1; }
.nf-checklist { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .55rem; }
.nf-checklist li { position: relative; padding-left: 1.75rem; color: var(--nf-bone); }
.nf-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .45em;
	width: .85rem;
	height: .45rem;
	border-left: 2px solid var(--nf-lilac);
	border-bottom: 2px solid var(--nf-lilac);
	transform: rotate(-45deg);
}

/* Good to know: two rows of three, separated by space rather than rules */
.nf-booking-info .nf-info-cols { margin: 0; gap: clamp(1.5rem, 4vw, 3rem) !important; }
.nf-booking-info .nf-info-cols + .nf-info-cols { margin-top: clamp(1.75rem, 3vw, 2.5rem) !important; }
.nf-booking-info .wp-block-column { padding-left: 1.1rem; border-left: 1px solid rgba(127, 35, 173, .55); }
.nf-booking-info h3 { margin-top: 0; }
.nf-booking-info a { color: var(--nf-bone); text-underline-offset: 3px; }

/* Closing visit panel */
.nf-booking-visit__cols {
	gap: clamp(2rem, 6vw, 5rem) !important;
	margin: 0;
	padding: clamp(1.75rem, 4vw, 3rem);
	background:
		radial-gradient(ellipse 60% 120% at 0% 0%, rgba(127, 35, 173, .18), transparent 70%),
		#121113;
	border: 1px solid #2a262d;
}

/* Sections that follow each other drop their top padding; give it back whenever
   the previous section draws a divider, so a line never sits on top of text. */
.nf-process + .nf-section,
.nf-care + .nf-section,
.nf-section.nf-booking-details,
.nf-section.nf-booking-info,
.nf-section.nf-booking-visit { padding-top: var(--nf-section); }

/* Back to top button (added by assets/js/theme.js on long pages) */
.nf-totop {
	position: fixed;
	right: clamp(1rem, 2.5vw, 2rem);
	bottom: clamp(1rem, 2.5vw, 2rem);
	z-index: 35;
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid var(--nf-plum);
	background: rgba(14, 13, 15, .92);
	color: var(--nf-bone);
	cursor: pointer;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: background-color .2s, color .2s;
	animation: nf-fade-in .25s ease-out;
}
.nf-totop[hidden] { display: none; }
.nf-totop:hover { background: var(--nf-plum); color: #fff; }
@keyframes nf-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Studio map (Google embed, darkened) and the Studio page photo pair
   -------------------------------------------------------------------------- */

.nf-map {
	position: relative;
	overflow: hidden;
	background: #1b1a1d;
	margin: 0 !important;
}
.nf-map__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	/* Turns Google's light map dark while keeping the red pin and label colours. */
	filter: invert(92%) hue-rotate(180deg) brightness(.92) contrast(.92) saturate(.75);
}
/* Phones only: the whole map is a link to Google Maps. Limited to narrow screens
   because some PCs, touch-screen laptops and in-app browsers also report a touch
   pointer; on those the map must stay draggable. */
.nf-map__tap { display: none; }
@media (max-width: 781px) and (pointer: coarse) {
	.nf-map__tap {
		position: absolute;
		inset: 0;
		z-index: 2;
		display: flex;
		align-items: flex-end;
		justify-content: flex-start;
		padding: 1rem;
		text-decoration: none;
	}
	.nf-map__tap > span {
		background: rgba(11, 11, 11, .88);
		border: 1px solid var(--nf-plum);
		color: var(--nf-bone);
		padding: .6rem .9rem;
		font-size: .8125rem;
		letter-spacing: .06em;
	}
}

.nf-split__map { min-height: 420px; align-self: stretch; }
.nf-split--reverse .nf-split__map { order: 2; }
/* With the copy on the left edge of the screen, the accent bar would touch the edge. */
.nf-split--reverse .nf-split__copy { border-left: 0; }

/* Studio page: two edited studio photos side by side */
.nf-photo-row--pair {
	grid-template-columns: 1.55fr 1fr;
	grid-template-rows: 1fr;
	height: clamp(300px, 36vw, 540px);
}
.nf-photo-row--pair .nf-photo-row__main { grid-row: auto; }

/* --------------------------------------------------------------------------
   Privacy policy page: the original statement in a panel, details below
   -------------------------------------------------------------------------- */

.nf-privacy__statement {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: linear-gradient(160deg, #161418, #0f0f10 75%);
	border-top: 2px solid var(--nf-plum);
	margin-bottom: clamp(2rem, 4vw, 3rem) !important;
}
.nf-privacy__statement .nf-privacy__statement-title { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 1rem; }
.nf-privacy__statement p { color: #ddd6cf; font-size: 1.0625rem; line-height: 1.7; margin: 0; }
.nf-privacy h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); margin: 0 0 .75rem; }
.nf-privacy h3 { font-size: 1.3125rem; margin: 1.75rem 0 .5rem; }
.nf-privacy p { color: #cfc8c1; max-width: 46rem; }
.nf-privacy a { color: var(--nf-bone); text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
	.nf-work--portfolio .nf-work__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nf-process__row { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 781px) {
	body { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }

	.nf-header__inner { min-height: 64px; padding-block: .5rem; }
	.nf-header__logo img { width: 46px; }


	.is-style-specialties { font-size: .5625rem; letter-spacing: .2em; line-height: 2; padding-block: .6rem; }
	.is-style-specialties li + li::before { margin: 0 .8em; }

	.nf-intro__cols { gap: .5rem; }
	.nf-intro h2 { margin-bottom: .75rem; }

	.nf-work__grid,
	.nf-work--portfolio .nf-work__grid,
	.nf-work--project .nf-work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }

	.nf-feature-artist__inner { gap: 1.1rem; padding-block: 1.5rem; }
	.nf-feature-artist__media img { height: 130px; }
	.nf-feature-artist h2 { font-size: 1.75rem; }
	.nf-feature-artist p { font-size: .875rem; }

	.nf-process__steps { gap: 1rem !important; }
	.nf-process__steps > .wp-block-column { flex-basis: 100% !important; }

	.nf-split, .nf-split--reverse { grid-template-columns: 1fr; }
	.nf-split__photo { min-height: 230px; }
	.nf-split--reverse .nf-split__photo { order: 0; }
	.nf-split__copy { padding: 1.75rem var(--nf-gutter) 2rem; }

	.nf-cards, .nf-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.nf-aftercare__cols { flex-direction: column; }
	.nf-steps { grid-template-columns: 1fr; }
	.nf-booking-info .nf-info-cols + .nf-info-cols { margin-top: 1.5rem !important; }
	.nf-cards li { padding: .9rem .9rem 1rem; }
	.nf-cards li a { font-size: 1.0625rem; }

	.nf-photo-row { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 460px; }
	.nf-photo-row__main { grid-row: auto; grid-column: span 2; }
	.nf-photo-row--pair { grid-template-columns: 1fr; grid-template-rows: 1.2fr 1fr; height: 520px; }
	.nf-photo-row--pair .nf-photo-row__main { grid-column: auto; }
	.nf-split__map { min-height: 300px; }
	.nf-split--reverse .nf-split__map { order: 0; }

	.nf-roster--feature .nf-roster__artist { grid-template-columns: 1fr; gap: 1.5rem; }
	.nf-roster--feature .nf-roster__portrait { max-width: 240px; }
	.nf-roster--cards .nf-roster__artist { grid-template-columns: 96px minmax(0, 1fr); gap: 1.1rem; padding: 1.25rem; align-items: start; }
	.nf-split__copy { border-left: 0; }

	.nf-footer__cols { gap: 1.75rem; }
	.nf-footer__brand { flex-basis: 100% !important; }

	.nf-mobilebar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 30;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		background: rgba(14, 14, 15, .97);
		border-top: 1px solid #4a4550;
		padding-bottom: env(safe-area-inset-bottom);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
	}
	.nf-mobilebar a {
		display: grid;
		place-items: center;
		min-height: 52px;
		color: var(--nf-bone);
		text-decoration: none;
		font-size: .75rem;
		letter-spacing: .18em;
		text-transform: uppercase;
	}
	.nf-mobilebar a + a { border-left: 1px solid var(--nf-line); }
	.nf-mobilebar a:nth-child(2) { background: var(--nf-plum); color: #fff; }
	/* Sit above the quick-links bar on phones. */
	.nf-totop { bottom: calc(52px + 1rem + env(safe-area-inset-bottom)); right: 1rem; width: 44px; height: 44px; }

	.nf-lightbox__figure { padding: 3.5rem .75rem 5rem; }
	.nf-lightbox__figure img { max-width: 100%; max-height: calc(100dvh - 10rem); }
	.nf-lightbox__prev, .nf-lightbox__next { top: auto; bottom: 1rem; transform: none; }
	.nf-lightbox__prev { left: calc(50% - 56px); }
	.nf-lightbox__next { right: calc(50% - 56px); }
}

@media (max-width: 340px) {
	.nf-feature-artist__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.nf-work__open:hover img { transform: none; }
}

/* Editor: keep the composed sections looking like the front end. */
.editor-styles-wrapper .nf-hero__photo { position: absolute !important; }
.editor-styles-wrapper .nf-mobilebar { display: none !important; }
