/* =============================================================================
   Nelson Sosa Music
   -----------------------------------------------------------------------------
   Built on two brand colours — #dd990f and #e2ae1d — pulled up into a warm
   pastel range rather than used as flood fills. Gold is the accent; the page
   itself is cream, sand and a warm near-black that reads as brown rather than
   grey. The intent is a site that feels like afternoon light on a guitar top.

   Contents
     1  Tokens
     2  Base & typography
     3  Utilities, motif, buttons
     4  Header, navigation, drawer
     5  Hero & credits marquee
     6  Front page: sections, story, timeline
     7  Section pages
     8  Closer & footer
     9  Modal & form
    10  Responsive
   ========================================================================== */


/* 1 --------------------------------------------------------------- tokens - */

:root {
	/* Brand, as given. */
	--nsm-gold:      #dd990f;
	--nsm-amber:     #e2ae1d;

	/* Derived shades. Darker for hover and for text that must stay legible. */
	--nsm-gold-hi:   #c4860a;
	--nsm-gold-deep: #9a6a08;

	/* Warm pastel field. */
	--nsm-cream:     #fefaf3;
	--nsm-sand:      #faf1e0;
	--nsm-blush:     #f5e6cb;
	--nsm-line:      #ecd9b7;

	/* Warm inks — brown-black, never neutral grey. */
	--nsm-ink:       #2b2015;
	--nsm-body:      #5d4a35;
	--nsm-muted:     #8a745a;

	/* The one deep surface, used for the closing band and footer. */
	--nsm-deep:      #241a10;
	--nsm-deep-2:    #33261722;

	--nsm-serif:     'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
	--nsm-sans:      'Outfit', ui-sans-serif, -apple-system, 'Segoe UI', Roboto, sans-serif;

	--nsm-wrap:      1180px;
	--nsm-gutter:    clamp(1.25rem, 5vw, 3rem);
	--nsm-section:   clamp(4.5rem, 10vw, 8.5rem);

	--nsm-radius:    18px;
	--nsm-radius-sm: 10px;

	/* Shadows are tinted with the brand rather than black, so nothing on the
	   page ever goes cold. */
	--nsm-shadow:    0 1px 2px rgba(94, 66, 15, .05),
	                 0 12px 28px -12px rgba(94, 66, 15, .18);
	--nsm-shadow-lg: 0 2px 4px rgba(94, 66, 15, .06),
	                 0 34px 64px -24px rgba(94, 66, 15, .28);

	--nsm-ease:      cubic-bezier(.2, .7, .3, 1);
}


/* 2 ------------------------------------------------------ base & type - */

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

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

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

body {
	margin: 0;
	background: var(--nsm-cream);
	color: var(--nsm-body);
	font-family: var(--nsm-sans);
	font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.nsm-locked { overflow: hidden; }

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

a { color: var(--nsm-gold-deep); text-decoration-color: color-mix(in srgb, var(--nsm-gold) 40%, transparent); text-underline-offset: .18em; }
a:hover { color: var(--nsm-gold-hi); }

h1, h2, h3, h4 {
	font-family: var(--nsm-serif);
	font-optical-sizing: auto;
	color: var(--nsm-ink);
	line-height: 1.08;
	letter-spacing: -.015em;
	margin: 0 0 .5em;
	font-weight: 600;
	text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(1.95rem, 1.4rem + 2.4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + .7vw, 1.6rem); }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--nsm-amber); color: var(--nsm-ink); }

:focus-visible {
	outline: 2px solid var(--nsm-gold-hi);
	outline-offset: 3px;
	border-radius: 4px;
}


/* 3 ------------------------------------------- utilities, motif, buttons - */

.nsm-wrap {
	width: 100%;
	max-width: var(--nsm-wrap);
	margin-inline: auto;
	padding-inline: var(--nsm-gutter);
}

.nsm-sr {
	position: absolute; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.nsm-skip {
	position: absolute; left: -9999px; top: 0; z-index: 200;
	background: var(--nsm-ink); color: #fff;
	padding: .75rem 1.25rem; border-radius: 0 0 var(--nsm-radius-sm) 0;
}
.nsm-skip:focus { left: 0; color: #fff; }

.nsm-eyebrow {
	display: inline-flex; align-items: center; gap: .55rem;
	font-family: var(--nsm-sans);
	font-size: .75rem; font-weight: 600;
	letter-spacing: .16em; text-transform: uppercase;
	color: var(--nsm-gold-deep);
	margin-bottom: 1rem;
}
.nsm-eyebrow::before {
	content: ''; width: 26px; height: 2px; flex: none;
	background: linear-gradient(90deg, var(--nsm-gold), var(--nsm-amber));
}
.nsm-eyebrow--light { color: var(--nsm-amber); }

/* The woven band — an Andean textile edge, drawn with gradients rather than an
   image so it scales and recolours for free. Used sparingly: once under the
   hero, once above the footer. */
.nsm-weave {
	height: 10px;
	background-image:
		linear-gradient(135deg, var(--nsm-gold) 25%, transparent 25%),
		linear-gradient(225deg, var(--nsm-gold) 25%, transparent 25%),
		linear-gradient(315deg, var(--nsm-amber) 25%, transparent 25%),
		linear-gradient(45deg,  var(--nsm-amber) 25%, transparent 25%);
	background-size: 20px 20px;
	background-position: 0 0, 0 0, 10px 10px, 10px 10px;
	opacity: .55;
}

/* The Chilean flag, sized in em so it tracks whatever text it sits beside.
   The hairline ring matters: without it the white half disappears into the
   cream background. */
.nsm-flag {
	display: inline-block;
	width: 1em;
	height: auto;
	aspect-ratio: 3 / 2;
	vertical-align: -.1em;
	margin-right: .4em;
	border-radius: 1.5px;
	box-shadow: 0 0 0 1px rgba(43, 32, 21, .18);
	flex: none;
}

/* Beside his name in the masthead it is a signature, not a badge — kept small
   enough to read as punctuation next to the role line. */
.nsm-brand__role .nsm-flag {
	width: .9em;
	/* The role line shrinks on small screens, and .9em of a 0.6rem font is a
	   speck. A pixel floor keeps the flag legible at every size. */
	min-width: 11px;
	margin-right: .35em;
}

.nsm-rule {
	width: 64px; height: 3px; border: 0; margin: 0 0 1.75rem;
	background: linear-gradient(90deg, var(--nsm-gold), var(--nsm-amber));
	border-radius: 3px;
}

.nsm-lede {
	font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
	line-height: 1.6;
	color: var(--nsm-body);
	max-width: 62ch;
}

/* Reveal on scroll. `is-armed` is only ever applied by JS, so with scripting
   off every element renders in its final state. */
[data-nsm-reveal].is-armed {
	opacity: 0;
	transform: translateY(22px);
}
[data-nsm-reveal].is-in {
	opacity: 1;
	transform: none;
	transition: opacity .7s var(--nsm-ease), transform .7s var(--nsm-ease);
}

.nsm-btn {
	--btn-bg: var(--nsm-gold);
	--btn-fg: #fff;
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font-family: var(--nsm-sans);
	font-size: .95rem; font-weight: 600; letter-spacing: .01em;
	padding: .95rem 1.75rem;
	border: 1px solid transparent; border-radius: 999px;
	background: var(--btn-bg); color: var(--btn-fg);
	cursor: pointer; text-decoration: none;
	/* Accent edge: a deeper gold rim plus a hairline of light along the top, so
	   the button reads as a struck object rather than a flat coloured rectangle. */
	border-color: color-mix(in srgb, var(--nsm-gold-deep) 50%, transparent);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3),
	            0 10px 22px -12px rgba(180, 122, 10, .75);
	transition: transform .25s var(--nsm-ease), box-shadow .25s var(--nsm-ease),
	            background-color .25s var(--nsm-ease), border-color .25s var(--nsm-ease);
}
.nsm-btn:hover {
	--btn-bg: var(--nsm-gold-hi);
	color: var(--btn-fg);
	transform: translateY(-2px);
	border-color: var(--nsm-gold-deep);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32),
	            0 16px 30px -14px rgba(180, 122, 10, .9);
}
.nsm-btn:active { transform: translateY(0); }
.nsm-btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.nsm-btn--sm  { padding: .65rem 1.25rem; font-size: .875rem; }
.nsm-btn--lg  { padding: 1.1rem 2.25rem; font-size: 1.05rem; }
.nsm-btn--block { display: flex; width: 100%; }

/* On the dark closing band a gold rim would vanish, so this variant carries a
   warm light edge instead. */
.nsm-btn--light {
	--btn-bg: var(--nsm-amber);
	--btn-fg: var(--nsm-ink);
	border-color: color-mix(in srgb, #fff 45%, transparent);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
.nsm-btn--light:hover {
	--btn-bg: #eebc35;
	border-color: #fff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 14px 26px -14px rgba(0, 0, 0, .5);
}

.nsm-btn--ghost {
	--btn-bg: transparent;
	--btn-fg: var(--nsm-amber);
	border-color: color-mix(in srgb, var(--nsm-amber) 55%, transparent);
	box-shadow: none;
}
.nsm-btn--ghost:hover {
	--btn-bg: color-mix(in srgb, var(--nsm-amber) 14%, transparent);
	--btn-fg: var(--nsm-amber);
}

/* Figures, and the placeholders standing in for photographs not yet supplied.
   The placeholder carries the filename it is waiting for — it is the shot list
   as much as it is a layout device. */
.nsm-figure {
	margin: 0;
	border-radius: var(--nsm-radius);
	overflow: hidden;
	background: var(--nsm-blush);
	box-shadow: var(--nsm-shadow);
}
.nsm-figure img { width: 100%; height: 100%; object-fit: cover; }

/* Landscape photographs. The figure slots are portrait by default, which suits
   a single subject; a two-person shot forced into that frame loses one of them.
   Sections carrying a wide photo opt in via image_class. */
.nsm-figure--wide,
.nsm-split__figure .nsm-figure--wide,
.nsm-story__figure .nsm-figure--wide,
.nsm-hero__figure .nsm-figure--wide { aspect-ratio: 3 / 2; }

/* Full-body shots on a white backdrop.
   Cropping one of these to fill a frame clips his feet, or the flags he is
   holding at arm's length — which is exactly what looked broken. These are
   contained rather than covered, on a white card that reads as a studio
   backdrop instead of a mistake. */
.nsm-figure--full,
.nsm-split__figure .nsm-figure--full,
.nsm-story__figure .nsm-figure--full {
	aspect-ratio: 4 / 5;
	background: #fff;
	border: 1px solid var(--nsm-line);
}
.nsm-figure--full img { object-fit: contain; }

.nsm-figure--empty {
	display: grid; place-content: center; gap: .75rem; justify-items: center;
	min-height: 340px; padding: 2rem; text-align: center;
	background:
		repeating-linear-gradient(45deg, rgba(221,153,15,.05) 0 12px, transparent 12px 24px),
		linear-gradient(160deg, var(--nsm-blush), var(--nsm-sand));
	border: 1px dashed color-mix(in srgb, var(--nsm-gold) 35%, transparent);
	box-shadow: none;
}
.nsm-figure__mark { color: var(--nsm-gold); opacity: .55; }
.nsm-figure__mark svg { width: 40px; height: 40px; }
.nsm-figure__note {
	font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
	color: var(--nsm-muted);
}


/* 4 -------------------------------------- header, navigation, drawer - */

.nsm-header {
	position: sticky; top: 0; z-index: 90;
	background: color-mix(in srgb, var(--nsm-cream) 88%, transparent);
	backdrop-filter: saturate(140%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: background-color .3s var(--nsm-ease), border-color .3s var(--nsm-ease), box-shadow .3s var(--nsm-ease);
}
.nsm-header.is-stuck {
	border-bottom-color: var(--nsm-line);
	box-shadow: 0 10px 30px -22px rgba(94, 66, 15, .55);
}

.nsm-header__inner {
	max-width: var(--nsm-wrap);
	margin-inline: auto;
	padding: .85rem var(--nsm-gutter);
	display: flex; align-items: center; gap: 1.5rem;
}

.nsm-brand {
	display: inline-flex; align-items: center; gap: .7rem;
	text-decoration: none; color: inherit; margin-right: auto;
}
.nsm-brand__mark {
	display: grid; place-items: center;
	width: 42px; height: 42px; flex: none;
	border-radius: 50%;
	color: #fff;
	background: linear-gradient(140deg, var(--nsm-gold), var(--nsm-amber));
	/* An accent ring held off the disc by a hairline of page colour, so the mark
	   reads as a struck medallion rather than a filled circle. */
	box-shadow: 0 0 0 2px var(--nsm-cream),
	            0 0 0 3.5px color-mix(in srgb, var(--nsm-amber) 85%, transparent),
	            0 6px 14px -6px rgba(180, 122, 10, .8);
	transition: box-shadow .3s var(--nsm-ease);
}
.nsm-brand:hover .nsm-brand__mark {
	box-shadow: 0 0 0 2px var(--nsm-cream),
	            0 0 0 3.5px var(--nsm-gold),
	            0 8px 18px -6px rgba(180, 122, 10, .9);
}
.nsm-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.nsm-brand__name {
	font-family: var(--nsm-serif); font-size: 1.35rem; font-weight: 600;
	color: var(--nsm-ink); letter-spacing: -.01em;
}
/* The second line of the logo lockup. Short enough now ("Folk Guitarist", not
   the full origin line) to carry a larger size and wide tracking, which is what
   makes it read as a mark rather than a caption. */
.nsm-brand__role {
	font-size: .8rem;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--nsm-muted);
}

.nsm-nav__list {
	display: flex; align-items: center; gap: 1.9rem;
	list-style: none; margin: 0; padding: 0;
}
.nsm-nav__list a {
	position: relative;
	font-size: .93rem; font-weight: 500;
	color: var(--nsm-body); text-decoration: none;
	padding-block: .35rem;
	transition: color .2s var(--nsm-ease);
}
.nsm-nav__list a::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0;
	height: 2px; border-radius: 2px;
	background: linear-gradient(90deg, var(--nsm-gold), var(--nsm-amber));
	transform: scaleX(0); transform-origin: left;
	transition: transform .3s var(--nsm-ease);
}
.nsm-nav__list a:hover { color: var(--nsm-ink); }
.nsm-nav__list a:hover::after,
.nsm-nav__list .current-menu-item > a::after { transform: scaleX(1); }
.nsm-nav__list .current-menu-item > a { color: var(--nsm-ink); }

.nsm-header__actions { display: flex; align-items: center; gap: .75rem; }

.nsm-burger {
	display: none;
	width: 42px; height: 42px;
	align-items: center; justify-content: center;
	background: transparent; border: 1px solid var(--nsm-line);
	border-radius: 12px; cursor: pointer; color: var(--nsm-ink);
}
.nsm-burger__box { display: grid; gap: 4px; width: 18px; }
.nsm-burger__box i { display: block; height: 2px; background: currentColor; border-radius: 2px; }

.nsm-drawer {
	position: sticky; top: 68px; z-index: 89;
	display: grid; gap: 1.25rem;
	padding: 1.5rem var(--nsm-gutter) 2rem;
	background: var(--nsm-cream);
	border-bottom: 1px solid var(--nsm-line);
	box-shadow: var(--nsm-shadow);
}
.nsm-drawer[hidden] { display: none; }
.nsm-drawer .nsm-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
.nsm-drawer .nsm-nav__list li + li { border-top: 1px solid var(--nsm-line); }
.nsm-drawer .nsm-nav__list a { display: block; padding: .9rem 0; font-size: 1.05rem; }
.nsm-drawer .nsm-nav__list a::after { display: none; }


/* 5 --------------------------------------------- hero & credits marquee - */

.nsm-hero {
	position: relative;
	padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 7vw, 6rem);
	background:
		radial-gradient(120% 90% at 85% 0%,  rgba(226,174,29,.28) 0%, transparent 55%),
		radial-gradient(90% 80% at 0% 100%,  rgba(221,153,15,.16) 0%, transparent 60%),
		linear-gradient(175deg, var(--nsm-sand), var(--nsm-cream) 70%);
	overflow: hidden;
}

/* A faint set of strings running down the right of the hero. Decorative, and
   invisible to assistive tech. */
.nsm-hero::after {
	content: ''; position: absolute; inset: 0 0 0 auto; width: 40%;
	background-image: repeating-linear-gradient(
		90deg,
		color-mix(in srgb, var(--nsm-gold) 22%, transparent) 0 1px,
		transparent 1px 34px
	);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 60%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 60%, transparent);
	opacity: .5; pointer-events: none;
}

.nsm-hero__inner {
	position: relative; z-index: 1;
	display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
	grid-template-columns: 1.1fr .9fr;
	align-items: center;
}

.nsm-hero__title { margin-bottom: 1.25rem; }
.nsm-hero__title em {
	font-style: italic;
	color: var(--nsm-gold-deep);
}
.nsm-hero__lede { margin-bottom: 2rem; }

.nsm-hero__actions {
	display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
}
.nsm-hero__note { font-size: .88rem; color: var(--nsm-muted); margin: 0; }

.nsm-hero__figure { position: relative; }
.nsm-hero__figure .nsm-figure { aspect-ratio: 4 / 5; }
.nsm-hero__figure .nsm-figure--empty { min-height: 0; height: 100%; }

/* The badge tucked against the portrait. */
.nsm-hero__badge {
	position: absolute; left: -1.25rem; bottom: 1.75rem;
	display: grid; gap: .1rem;
	padding: 1rem 1.4rem;
	background: #fff; border-radius: var(--nsm-radius-sm);
	box-shadow: var(--nsm-shadow-lg);
	border-left: 3px solid var(--nsm-gold);
}
.nsm-hero__badge b {
	font-family: var(--nsm-serif); font-size: 1.6rem; color: var(--nsm-ink); line-height: 1;
}
.nsm-hero__badge span {
	font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--nsm-muted);
}

.nsm-credits {
	border-block: 1px solid var(--nsm-line);
	background: var(--nsm-cream);
	padding-block: 1.1rem;
	overflow: hidden;
}
.nsm-credits__list {
	display: flex; flex-wrap: wrap; justify-content: center;
	gap: .6rem 2.25rem;
	list-style: none; margin: 0; padding-inline: var(--nsm-gutter);
}
.nsm-credits__list li {
	display: inline-flex; align-items: center; gap: 2.25rem;
	font-size: .78rem; font-weight: 500;
	letter-spacing: .1em; text-transform: uppercase;
	color: var(--nsm-muted);
	white-space: nowrap;
}
.nsm-credits__list li:not(:last-child)::after {
	content: ''; width: 4px; height: 4px; border-radius: 50%;
	background: var(--nsm-gold); opacity: .5;
}


/* 6 ------------------------------ front page: sections, story, timeline - */

.nsm-section { padding-block: var(--nsm-section); }
.nsm-section--sand { background: var(--nsm-sand); }

.nsm-section__head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.nsm-section__head--center { margin-inline: auto; text-align: center; }
.nsm-section__head--center .nsm-rule { margin-inline: auto; }
.nsm-section__head--center .nsm-lede { margin-inline: auto; }

/* The four things Nelson does, as cards. Two up on desktop; the alternating
   accent keeps a four-card grid from reading as a spreadsheet. */
.nsm-cards {
	display: grid; gap: clamp(1.25rem, 2.5vw, 2rem);
	grid-template-columns: repeat(2, 1fr);
}

.nsm-card {
	position: relative; display: flex; flex-direction: column;
	padding: clamp(1.75rem, 3vw, 2.5rem);
	background: #fff;
	border: 1px solid var(--nsm-line);
	border-radius: var(--nsm-radius);
	box-shadow: var(--nsm-shadow);
	overflow: hidden;
	transition: transform .35s var(--nsm-ease), box-shadow .35s var(--nsm-ease);
}
.nsm-card::before {
	content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
	background: linear-gradient(90deg, var(--nsm-gold), var(--nsm-amber));
	transform: scaleX(0); transform-origin: left;
	transition: transform .45s var(--nsm-ease);
}
.nsm-card:hover { transform: translateY(-4px); box-shadow: var(--nsm-shadow-lg); }
.nsm-card:hover::before { transform: scaleX(1); }

.nsm-card__num {
	font-family: var(--nsm-serif); font-size: .95rem; font-weight: 600;
	color: var(--nsm-gold); letter-spacing: .08em;
	margin-bottom: .9rem;
}
.nsm-card__title { margin-bottom: .35rem; }
.nsm-card__kicker {
	display: block; font-family: var(--nsm-sans);
	font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--nsm-muted); margin-bottom: 1rem;
}
.nsm-card__text { margin-bottom: 1.75rem; }
.nsm-card__link {
	margin-top: auto; align-self: flex-start;
	display: inline-flex; align-items: center; gap: .5rem;
	font-weight: 600; font-size: .93rem; text-decoration: none;
	color: var(--nsm-gold-deep);
}
.nsm-card__link::after {
	content: '→'; transition: transform .25s var(--nsm-ease);
}
.nsm-card__link:hover::after { transform: translateX(4px); }

/* The story, portrait beside prose. */
.nsm-story {
	display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
	grid-template-columns: .85fr 1.15fr;
	align-items: center;
}
.nsm-story__figure .nsm-figure { aspect-ratio: 3 / 4; }
.nsm-story__figure .nsm-figure--empty { min-height: 0; height: 100%; }

/* Career milestones. A vertical rule with gold nodes — no library, just a
   border and some pseudo-elements. */
.nsm-timeline { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.nsm-timeline li {
	position: relative;
	display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.5rem;
	padding: 0 0 2rem 0;
}
.nsm-timeline li::before {
	content: ''; position: absolute; left: 5.05rem; top: .55rem;
	width: 11px; height: 11px; border-radius: 50%;
	background: var(--nsm-gold);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--nsm-amber) 28%, transparent);
}
.nsm-timeline li::after {
	content: ''; position: absolute; left: 5.5rem; top: 1.5rem; bottom: -.5rem;
	width: 1px; background: var(--nsm-line);
}
.nsm-timeline li:last-child { padding-bottom: 0; }
.nsm-timeline li:last-child::after { display: none; }
.nsm-timeline__year {
	font-family: var(--nsm-serif); font-size: 1.15rem; font-weight: 600;
	color: var(--nsm-ink); text-align: right; padding-right: 1.5rem;
}
.nsm-timeline__text { margin: 0; padding-left: 1rem; }


/* 7 ---------------------------------------------------- section pages - */

.nsm-page-hero {
	position: relative;
	padding-block: clamp(3rem, 6vw, 5.5rem);
	background:
		radial-gradient(90% 120% at 100% 0%, rgba(226,174,29,.24) 0%, transparent 55%),
		linear-gradient(180deg, var(--nsm-sand), var(--nsm-cream));
	border-bottom: 1px solid var(--nsm-line);
}
.nsm-page-hero__inner { display: grid; gap: 1rem; max-width: 56rem; }
.nsm-page-hero__lede {
	font-family: var(--nsm-serif); font-style: italic;
	font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem);
	color: var(--nsm-gold-deep); line-height: 1.45; margin: 0;
}

.nsm-split {
	display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
	grid-template-columns: 1.15fr .85fr;
	align-items: start;
}
.nsm-split__figure { position: sticky; top: 6.5rem; }
.nsm-split__figure .nsm-figure { aspect-ratio: 4 / 5; }
.nsm-split__figure .nsm-figure--empty { min-height: 0; height: 100%; }

.nsm-prose > * + * { margin-top: 1.15em; }
.nsm-prose p:last-child { margin-bottom: 0; }

/* A checked list, gold ticks, no bullets. */
.nsm-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.nsm-ticks li {
	position: relative; padding-left: 2rem;
	color: var(--nsm-body);
}
.nsm-ticks li::before {
	content: ''; position: absolute; left: 0; top: .55em;
	width: 10px; height: 10px; border-radius: 3px;
	background: linear-gradient(140deg, var(--nsm-gold), var(--nsm-amber));
	transform: rotate(45deg);
}

/* The small definition panel beside the prose. */
.nsm-panel {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: #fff;
	border: 1px solid var(--nsm-line);
	border-radius: var(--nsm-radius);
	box-shadow: var(--nsm-shadow);
}
.nsm-panel__title {
	font-family: var(--nsm-sans);
	font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--nsm-muted); margin-bottom: 1.25rem;
}
.nsm-panel dl { margin: 0; display: grid; gap: 1.15rem; }
.nsm-panel dt {
	font-family: var(--nsm-serif); font-size: 1.05rem; font-weight: 600;
	color: var(--nsm-ink); margin-bottom: .2rem;
}
.nsm-panel dd { margin: 0; font-size: .95rem; line-height: 1.6; }

/* A standing engagement — sand panel with a gold spine, so it reads as a fact
   about the act rather than another paragraph. */
.nsm-highlight {
	margin-top: clamp(2rem, 4vw, 2.75rem);
	padding: clamp(1.5rem, 3vw, 2rem);
	background: linear-gradient(140deg, var(--nsm-sand), var(--nsm-cream));
	border: 1px solid var(--nsm-line);
	border-left: 4px solid var(--nsm-gold);
	border-radius: var(--nsm-radius-sm);
}
.nsm-highlight__kicker {
	display: block;
	font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
	color: var(--nsm-gold-deep); margin-bottom: .5rem;
}
.nsm-highlight__title {
	font-family: var(--nsm-serif); font-size: 1.45rem; font-weight: 600;
	color: var(--nsm-ink); margin: 0 0 .5rem; line-height: 1.15;
}
.nsm-highlight__text { margin-bottom: 1rem; font-size: .97rem; }

.nsm-books {
	display: grid; gap: clamp(1.25rem, 2.5vw, 2rem);
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.nsm-books__empty {
	padding: clamp(2rem, 4vw, 3rem);
	text-align: center;
	border: 1px dashed color-mix(in srgb, var(--nsm-gold) 40%, transparent);
	border-radius: var(--nsm-radius);
	background: var(--nsm-sand);
	color: var(--nsm-muted);
}

.nsm-cta-inline {
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	padding-top: clamp(2rem, 4vw, 2.75rem);
	border-top: 1px solid var(--nsm-line);
	display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem;
}
.nsm-cta-inline p { margin: 0; color: var(--nsm-muted); font-size: .95rem; }


/* 8 ------------------------------------------------- closer & footer - */

.nsm-closer {
	position: relative;
	background:
		radial-gradient(80% 120% at 50% 0%, rgba(221,153,15,.22) 0%, transparent 60%),
		var(--nsm-deep);
	color: #f4ead9;
	text-align: center;
	padding-block: clamp(4rem, 8vw, 6.5rem);
}
.nsm-closer__inner { display: grid; justify-items: center; }
.nsm-closer__title { color: #fff; margin-bottom: .75rem; }
.nsm-closer__lede {
	color: color-mix(in srgb, #f4ead9 78%, transparent);
	max-width: 48ch; margin-bottom: 2.25rem;
	font-size: 1.08rem;
}

.nsm-footer {
	background: var(--nsm-deep);
	color: color-mix(in srgb, #f4ead9 72%, transparent);
	border-top: 1px solid rgba(226,174,29,.18);
	padding-top: clamp(3rem, 6vw, 4.5rem);
	font-size: .93rem;
}
.nsm-footer__inner {
	display: grid; gap: clamp(2rem, 5vw, 4rem);
	grid-template-columns: 1.4fr 1fr 1fr;
	padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.nsm-footer__mark { display: inline-grid; color: var(--nsm-amber); margin-bottom: .9rem; }
.nsm-footer__mark svg { width: 30px; height: 30px; }
.nsm-footer__name {
	font-family: var(--nsm-serif); font-size: 1.35rem; color: #fff; margin: 0 0 .2rem;
}
.nsm-footer__role, .nsm-footer__where { margin: 0 0 .35rem; opacity: .75; }

/* On the dark footer the light hairline has to invert, or the flag looks like
   it is floating with a bruise around it. */
.nsm-footer .nsm-flag { box-shadow: 0 0 0 1px rgba(244, 234, 217, .3); }

.nsm-footer__heading {
	font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
	color: var(--nsm-amber); margin: 0 0 1.15rem;
}
.nsm-footer ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .6rem; }
.nsm-footer a { color: inherit; text-decoration: none; }
.nsm-footer a:hover { color: var(--nsm-amber); }

.nsm-footer__base {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
	padding-block: 1.5rem;
	border-top: 1px solid rgba(244,234,217,.1);
	font-size: .82rem; opacity: .65;
}
.nsm-footer__base p { margin: 0; }


/* 9 ------------------------------------------------------ modal & form - */

.nsm-modal {
	width: min(640px, calc(100vw - 2rem));
	max-height: min(90vh, 900px);
	padding: 0; border: 0;
	background: transparent;
	overflow: visible;
	margin: auto;
}
.nsm-modal::backdrop {
	background: rgba(36, 26, 16, .55);
	backdrop-filter: blur(4px);
}
.nsm-modal[open] .nsm-modal__panel { animation: nsm-rise .35s var(--nsm-ease) both; }

@keyframes nsm-rise {
	from { opacity: 0; transform: translateY(18px) scale(.98); }
	to   { opacity: 1; transform: none; }
}

.nsm-modal__panel {
	position: relative;
	max-height: min(90vh, 900px);
	overflow-y: auto;
	padding: clamp(1.75rem, 4vw, 2.75rem);
	background: var(--nsm-cream);
	border-radius: var(--nsm-radius);
	box-shadow: var(--nsm-shadow-lg);
	border-top: 4px solid var(--nsm-gold);
}

.nsm-modal__close {
	position: absolute; top: .85rem; right: .85rem;
	width: 38px; height: 38px;
	display: grid; place-items: center;
	font-size: 1.5rem; line-height: 1;
	background: transparent; border: 0; border-radius: 50%;
	color: var(--nsm-muted); cursor: pointer;
	transition: background-color .2s var(--nsm-ease), color .2s var(--nsm-ease);
}
.nsm-modal__close:hover { background: var(--nsm-blush); color: var(--nsm-ink); }

.nsm-modal__head { margin-bottom: 1.75rem; }
.nsm-modal__title { margin-bottom: .5rem; }
.nsm-modal__lede { color: var(--nsm-muted); font-size: .97rem; margin: 0; }

.nsm-form { display: grid; gap: 1.1rem; }
.nsm-form__row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }

.nsm-field { display: grid; gap: .4rem; }
.nsm-field__label {
	font-size: .82rem; font-weight: 600; letter-spacing: .02em;
	color: var(--nsm-ink);
}
.nsm-field__opt { font-weight: 400; color: var(--nsm-muted); text-transform: none; letter-spacing: 0; }

.nsm-field input,
.nsm-field select,
.nsm-field textarea {
	width: 100%;
	font-family: inherit; font-size: 1rem; color: var(--nsm-ink);
	padding: .8rem .95rem;
	background: #fff;
	border: 1px solid var(--nsm-line);
	border-radius: var(--nsm-radius-sm);
	transition: border-color .2s var(--nsm-ease), box-shadow .2s var(--nsm-ease);
}
.nsm-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.nsm-field input:focus,
.nsm-field select:focus,
.nsm-field textarea:focus {
	outline: none;
	border-color: var(--nsm-gold);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--nsm-amber) 30%, transparent);
}
.nsm-field ::placeholder { color: color-mix(in srgb, var(--nsm-muted) 70%, transparent); }

/* Off-screen rather than display:none — some bots skip anything hidden. */
.nsm-hp {
	position: absolute; left: -9999px; top: auto;
	width: 1px; height: 1px; overflow: hidden;
}

.nsm-form__status { margin: 0; font-size: .93rem; min-height: 0; }
.nsm-form__status:empty { display: none; }
.nsm-form__status.is-error {
	padding: .75rem 1rem; border-radius: var(--nsm-radius-sm);
	background: #fdece9; color: #9a2c1a;
	border: 1px solid #f6cec6;
}
.nsm-form__status.is-ok {
	padding: .75rem 1rem; border-radius: var(--nsm-radius-sm);
	background: #eef7ec; color: #2f6329;
	border: 1px solid #cfe6ca;
}

/* Once an enquiry has gone through, the fields are no longer the point. */
.nsm-form.is-sent .nsm-form__row,
.nsm-form.is-sent .nsm-field,
.nsm-form.is-sent [data-nsm-submit] { display: none; }

.nsm-form__alt {
	margin: 0; font-size: .88rem; color: var(--nsm-muted);
	display: flex; flex-wrap: wrap; gap: .25rem .9rem;
}


/* 10 -------------------------------------------------------- responsive - */

@media (max-width: 1000px) {
	.nsm-hero__inner,
	.nsm-story,
	.nsm-split { grid-template-columns: 1fr; }

	.nsm-split__figure { position: static; order: -1; }
	.nsm-story__figure { order: -1; max-width: 26rem; }
	.nsm-hero__figure { max-width: 26rem; }
	.nsm-hero__badge { left: auto; right: 1rem; }

	.nsm-footer__inner { grid-template-columns: 1fr 1fr; }
	.nsm-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
	.nsm-nav { display: none; }
	.nsm-burger { display: inline-flex; }
	.nsm-cards { grid-template-columns: 1fr; }
	.nsm-hero::after { display: none; }
}

@media (max-width: 560px) {
	.nsm-header__actions .nsm-btn { display: none; }
	.nsm-form__row { grid-template-columns: 1fr; }
	.nsm-footer__inner { grid-template-columns: 1fr; }

	/* The role line used to be hidden here, which also hid the flag and left the
	   mobile masthead as a bare name. It stays — scaled down, and allowed to
	   ellipsise rather than push the burger off the screen on narrow phones. */
	/* 1.5rem between brand and burger is 11px more than a 320px screen has to
	   spare once the role line is showing. */
	.nsm-header__inner { gap: .75rem; }
	.nsm-brand { min-width: 0; }
	.nsm-brand__text { min-width: 0; }
	.nsm-brand__mark { width: 36px; height: 36px; }
	.nsm-brand__mark svg { width: 20px; height: 20px; }
	.nsm-brand__name { font-size: 1.16rem; }
	/* "Folk Guitarist" is short enough to hold its size on a phone — the fluid
	   sizing this rule used to need was only there for the longer origin line.
	   Nowrap and the ellipsis stay as a backstop. */
	.nsm-brand__role {
		font-size: .7rem;
		letter-spacing: .16em;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.nsm-timeline li { grid-template-columns: 1fr; gap: .25rem; }
	.nsm-timeline li::before,
	.nsm-timeline li::after { display: none; }
	.nsm-timeline__year { text-align: left; padding-right: 0; color: var(--nsm-gold-deep); }
	.nsm-timeline__text { padding-left: 0; }

	.nsm-credits__list { gap: .5rem 1.25rem; }
	.nsm-credits__list li { gap: 1.25rem; }
}
