/* ==========================================================================
   Markov Violins – main stylesheet
   ========================================================================== */

/* ---------- Fonts (self-hosted, Latin + Cyrillic) ---------- */
@font-face { font-family: "Cormorant"; src: url(../fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; src: url(../fonts/cormorant-garamond-cyrillic-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; src: url(../fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; src: url(../fonts/cormorant-garamond-cyrillic-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; src: url(../fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; src: url(../fonts/cormorant-garamond-cyrillic-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url(../fonts/manrope-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url(../fonts/manrope-cyrillic-wght-normal.woff2) format("woff2-variations"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---------- Tokens ---------- */
:root {
	/* Maple (light) – default. Matches the white studio photos so they sit on the page seamlessly. */
	--bg: #fbfaf7;
	--bg-2: #f1ede6;
	--bg-3: #e6e0d6;
	--ink: #1b1714;
	--ink-2: #3d362f;
	--muted: #7d7368;
	--line: rgba(27, 23, 20, .12);
	--accent: #9a5a2a;
	--accent-ink: #fbfaf7;
	--hero-shade: 251, 250, 247;
	--photo-blend: multiply;
	/* Photo frames are isolated (view transitions), so they need the page colour to multiply against. */
	--photo-bg: var(--bg);

	--serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--rail: clamp(240px, 21vw, 320px);
	--gut: clamp(20px, 2.6vw, 44px);
	--radius: 2px;
	--ease: cubic-bezier(.2, .7, .1, 1);

	color-scheme: light;
}
.scheme-dark {
	--bg: #12100e;
	--bg-2: #1c1916;
	--bg-3: #26221e;
	--ink: #efe7db;
	--ink-2: #cfc5b8;
	--muted: #968b7f;
	--line: rgba(239, 231, 219, .14);
	--accent: #c8925a;
	--accent-ink: #12100e;
	--hero-shade: 18, 16, 14;
	--photo-blend: normal;
	--photo-bg: var(--bg-2);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 1rem/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.screen-reader-text, .form__hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--gut); top: -100px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; }
.skip:focus { top: var(--gut); }

.kicker {
	font: 600 .72rem/1.4 var(--sans);
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 1.1rem;
}
.lead { font-family: var(--serif); font-size: clamp(1.35rem, 1.8vw, 1.75rem); line-height: 1.35; color: var(--ink-2); max-width: 32em; }
.link { font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .3s, color .3s; }
.link:hover { color: var(--accent); border-color: var(--accent); }

.btn {
	display: inline-flex; align-items: center; gap: .7em;
	padding: 1rem 1.6rem;
	border: 1px solid var(--accent);
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font: 600 .85rem/1 var(--sans);
	letter-spacing: .06em;
	text-decoration: none;
	transition: background .35s var(--ease), color .35s var(--ease), gap .35s var(--ease);
}
.btn:hover { gap: 1.1em; background: transparent; color: var(--accent); }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.round {
	width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--line); background: transparent;
	transition: border-color .3s, background .3s;
}
.round:hover { border-color: var(--ink); background: var(--bg-2); }

/* ==========================================================================
   The frame: maker top-left, menu bottom-left
   ========================================================================== */
.frame {
	position: fixed;
	inset: 0 auto 0 0;
	width: var(--rail);
	padding: var(--gut);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	z-index: 50;
	pointer-events: none;
	view-transition-name: frame;
}
.frame > * { pointer-events: auto; }

.maker { display: flex; align-items: center; gap: .9rem; text-decoration: none; width: max-content; max-width: 100%; }
.maker__photo {
	flex: none; width: 58px; height: 58px; border-radius: 50%;
	overflow: hidden; background: var(--photo-bg);
	box-shadow: 0 0 0 1px var(--line);
	transition: transform .6s var(--ease);
}
.maker:hover .maker__photo { transform: scale(1.06); }
.maker__img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: var(--photo-blend); }
.maker__mono { display: grid; place-items: center; width: 100%; height: 100%; font: italic 400 1.5rem/1 var(--serif); color: var(--accent); }
.maker__text { display: flex; flex-direction: column; line-height: 1.15; }
.maker__name { font: 500 1.35rem/1.1 var(--serif); }
.maker__role { font: 600 .66rem/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; }

.nav .menu { list-style: none; margin: 0 0 1.6rem; padding: 0; counter-reset: nav; }
.nav .menu-item { counter-increment: nav; }
.nav .menu a {
	position: relative;
	display: inline-flex; align-items: baseline; gap: .7rem;
	padding: .18rem 0;
	font: 400 clamp(1.7rem, 2.3vw, 2.25rem)/1.1 var(--serif);
	text-decoration: none;
	color: var(--ink-2);
	transition: color .35s var(--ease), transform .45s var(--ease);
}
.nav .menu a::before {
	content: counter(nav, decimal-leading-zero);
	font: 600 .62rem/1 var(--sans); letter-spacing: .12em; color: var(--muted);
	transform: translateY(-.55em);
}
.nav .menu a:hover { color: var(--ink); transform: translateX(6px); }
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-ancestor > a,
.nav .current-page-ancestor > a { color: var(--accent); font-style: italic; }
.nav .current-menu-item > a::before { color: var(--accent); }

.nav__foot { display: flex; flex-direction: column; gap: .5rem; font-size: .78rem; color: var(--muted); }
.social { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.social a { text-decoration: none; }
.social a:hover { color: var(--ink); }
.langs { list-style: none; display: flex; gap: .8rem; margin: 0; padding: 0; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; font-size: .7rem; }
.langs a { text-decoration: none; }
.langs .current-lang a { color: var(--accent); }

.nav-toggle { display: none; }

/* ==========================================================================
   Stage (content area to the right of the frame)
   ========================================================================== */
.stage { margin-left: var(--rail); min-height: 100svh; outline: none; }
.section { padding: calc(var(--gut) * 1.2) var(--gut) calc(var(--gut) * 2.2); }
.section--collection, .section.page, .section.contact { padding-top: calc(var(--gut) + 6px); }

.page-head { margin-bottom: clamp(2rem, 5vw, 4.5rem); max-width: 60rem; }
.page-title { font-size: clamp(3rem, 7vw, 7.25rem); line-height: .95; margin: 0; }
.page-intro { margin-top: 1.5rem; max-width: 38em; color: var(--ink-2); }
.page__media { margin: 0 0 3rem; }
.page__media img { width: 100%; max-height: 72vh; object-fit: cover; }

.section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section__title { font-size: clamp(2.2rem, 4vw, 3.6rem); margin: 0; }

.colophon {
	display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
	padding: 2rem var(--gut) var(--gut);
	border-top: 1px solid var(--line);
	margin: 0 var(--gut);
	font-size: .78rem; color: var(--muted);
}
.colophon p { margin: 0; }
.colophon a { text-decoration: none; }
.colophon a:hover { color: var(--accent); }
.colophon__links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.is-home .colophon { margin-left: var(--gut); }

/* ---------- Prose ---------- */
.prose { max-width: 40rem; font-size: 1.06rem; color: var(--ink-2); }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(2rem, 3vw, 2.75rem); margin: 2.4em 0 .6em; color: var(--ink); }
.prose h3 { font-size: 1.6rem; margin: 2em 0 .4em; color: var(--ink); }
.prose a { color: var(--ink); text-decoration-color: var(--accent); }
.prose a:hover { color: var(--accent); }
.prose blockquote { margin: 2.5rem 0; padding: 0 0 0 1.5rem; border-left: 1px solid var(--accent); font: italic 400 1.6rem/1.35 var(--serif); color: var(--ink); }
.prose blockquote cite { display: block; margin-top: .8rem; font: 600 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; font-style: normal; color: var(--muted); }
.prose .is-style-large { font-size: clamp(2rem, 3.5vw, 3rem); border: 0; padding: 0; }
.prose figure { margin: 2.5rem 0; }
.prose img { mix-blend-mode: var(--photo-blend); }
.prose .alignwide { max-width: none; width: min(100%, 64rem); }
.prose .alignfull { max-width: none; width: 100%; }
.prose figcaption, .wp-element-caption { font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.section.page .prose { max-width: 46rem; }

/* Core blocks used in page content */
.prose .is-style-lead, .prose p.has-large-font-size { font-family: var(--serif); font-size: clamp(1.45rem, 2vw, 1.9rem); line-height: 1.35; color: var(--ink); }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2.5rem 0; }
.prose .wp-block-button__link {
	display: inline-flex; align-items: center; gap: .7em; padding: 1rem 1.6rem;
	border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--accent-ink);
	font: 600 .85rem/1 var(--sans); letter-spacing: .06em; text-decoration: none; transition: background .35s var(--ease), color .35s var(--ease);
}
.prose .wp-block-button__link:hover { background: transparent; color: var(--accent); }
.prose .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--ink); }
.prose .is-style-outline .wp-block-button__link:hover { background: var(--ink); color: var(--bg); }
.prose .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; margin: 2.5rem 0; }
.prose .wp-block-column > :first-child { margin-top: 0; }
.prose .wp-block-image img { width: 100%; height: auto; }
.prose .wp-block-image.is-style-wide img { max-height: 70vh; object-fit: contain; }
.prose .kicker-label { font: 600 .72rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 3.5rem 0 .8rem; }
.prose .kicker-label + h2 { margin-top: 0; }
.prose .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 3.5rem 0; }

/* Timeline pattern */
.timeline { border-top: 1px solid var(--line); margin: 3rem 0; }
.timeline__item { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
/* Classic themes wrap group content in .wp-block-group__inner-container – grid whichever element holds the items. */
.timeline__item:not(:has(> .wp-block-group__inner-container)),
.timeline__item > .wp-block-group__inner-container { display: grid; grid-template-columns: 9rem 1fr; column-gap: 2rem; }
.timeline__item > :not(.wp-block-group__inner-container),
.timeline__item > .wp-block-group__inner-container > * { grid-column: 2; margin: 0; }
.timeline__item .timeline__year { grid-column: 1 !important; grid-row: 1 / span 2; font: italic 400 1.6rem/1.1 var(--serif); color: var(--accent); }
.timeline__item h3 { font-size: 1.5rem; margin: 0 0 .3rem; color: var(--ink); }

/* ==========================================================================
   Home
   ========================================================================== */
.hero {
	position: relative;
	min-height: 100svh;
	margin-left: calc(var(--rail) * -1);
	display: flex; align-items: flex-end;
	overflow: hidden;
	isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; animation: drift 24s var(--ease) both; }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(var(--hero-shade), .92) 0, rgba(var(--hero-shade), .55) calc(var(--rail) + 6vw), rgba(var(--hero-shade), .05) 75%),
		linear-gradient(0deg, rgba(var(--hero-shade), .85) 0, rgba(var(--hero-shade), 0) 45%);
}
.hero__content {
	position: relative;
	padding: var(--gut);
	padding-left: calc(var(--rail) + var(--gut));
	padding-bottom: calc(var(--gut) * 1.4);
	max-width: calc(var(--rail) + 52rem);
	animation: rise 1.2s .15s var(--ease) both;
}
.hero__title { font-size: clamp(3.2rem, 7.4vw, 8rem); line-height: .92; margin: 0 0 1.5rem; }
.hero__text { max-width: 30em; color: var(--ink-2); font-size: 1.05rem; margin-bottom: 2rem; }
.hero__scroll { position: absolute; right: var(--gut); bottom: var(--gut); width: 1px; height: 64px; background: var(--line); overflow: hidden; }
.hero__scroll span { position: absolute; inset: 0; background: var(--ink); animation: scrollcue 2.2s var(--ease) infinite; }

@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes scrollcue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Light scheme hero: the photo sits on the paper, fading in from the right – no overlay. */
body:not(.scheme-dark) .hero__media { left: auto; width: min(64%, 1400px); }
body:not(.scheme-dark) .hero__media::after { display: none; }
body:not(.scheme-dark) .hero__img {
	mix-blend-mode: multiply;
	object-position: 6% 50%;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
	mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
body:not(.scheme-dark) .hero__text { max-width: 24em; }
body:not(.scheme-dark) .hero--portrait .hero__img { object-fit: contain; object-position: 70% 50%; -webkit-mask-image: none; mask-image: none; }
body:not(.scheme-dark) .hero__content { max-width: calc(var(--rail) + 40rem); }

/* Horizontal strip */
.strip { padding-right: 0; padding-top: calc(var(--gut) * 2.5); }
.strip .section__head { padding-right: var(--gut); }
.strip__controls { display: flex; align-items: center; gap: .6rem; }
.strip__controls .link { margin-left: .8rem; }
.strip__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: clamp(230px, 23vw, 360px);
	gap: clamp(16px, 2vw, 32px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 0;
	padding: 0 var(--gut) 1rem 0;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.strip__track::-webkit-scrollbar { display: none; }
.strip__track .card { scroll-snap-align: start; }

/* About teaser */
.about-teaser { border-top: 1px solid var(--line); margin: 0 var(--gut); padding-left: 0; padding-right: 0; }
.about-teaser__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem 4rem; padding-top: 2rem; }
.about-teaser .lead { margin-bottom: 1.6rem; }
.facts { list-style: none; padding: 0; margin: 4rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.facts li { border-top: 1px solid var(--line); padding-top: 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.facts strong { font: italic 400 clamp(2rem, 3.4vw, 3.2rem)/1 var(--serif); color: var(--accent); }
.facts sup { font-size: .45em; }
.facts span { font-size: .85rem; color: var(--muted); max-width: 22em; }

.cta { text-align: left; padding-top: calc(var(--gut) * 2); padding-bottom: calc(var(--gut) * 3); }
.cta__title { font-size: clamp(2.8rem, 6vw, 6rem); margin: 0 0 2rem; max-width: 12em; }

/* ==========================================================================
   Cards & collection
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: -1.5rem 0 2.5rem; }
.chip {
	display: inline-flex; align-items: center;
	padding: .55rem 1rem;
	border: 1px solid var(--line); border-radius: 999px;
	background: transparent;
	font-size: .8rem; font-weight: 600; letter-spacing: .03em;
	transition: background .3s, color .3s, border-color .3s;
	cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active, .chip:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
	gap: clamp(2rem, 4vw, 4rem) clamp(1rem, 2vw, 2.25rem);
}
.grid .card:nth-child(3n + 2) { margin-top: clamp(0px, 6vw, 5rem); }
.card { position: relative; }
.card[hidden] { display: none; }
.card__link { display: block; text-decoration: none; }
.card__media {
	margin: 0; position: relative; overflow: hidden;
	aspect-ratio: 2 / 3;
	background: var(--photo-bg);
	border-radius: var(--radius);
}
.card__img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: var(--photo-blend); transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.scheme-dark .card__img { object-fit: cover; }
.card__link:hover .card__img { transform: scale(1.045); }
.card__placeholder, .instrument__main .card__placeholder {
	display: block; width: 100%; height: 100%; min-height: 200px;
	background:
		radial-gradient(ellipse 30% 22% at 50% 30%, var(--bg-3), transparent 70%),
		radial-gradient(ellipse 36% 28% at 50% 68%, var(--bg-3), transparent 70%),
		var(--bg-2);
}
.card__body { padding-top: 1rem; display: grid; grid-template-columns: 1fr auto; align-items: start; column-gap: 1rem; }
.card__title { grid-column: 1; font-size: 1.55rem; line-height: 1.1; margin: 0; transition: color .3s; }
.card__link:hover .card__title { color: var(--accent); }
.card__meta { grid-column: 1; margin: .35rem 0 0; font-size: .8rem; color: var(--muted); }
.card .badge { grid-column: 2; grid-row: 1; }

.badge {
	display: inline-block; white-space: nowrap;
	padding: .3rem .65rem;
	border: 1px solid var(--line); border-radius: 999px;
	font: 600 .62rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
	color: var(--muted);
}
.badge--available { color: var(--accent); border-color: var(--accent); }
.badge--commission { color: var(--ink-2); }

.empty { color: var(--muted); max-width: 32em; }

/* ==========================================================================
   Single instrument
   ========================================================================== */
.instrument {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 5rem);
	padding: var(--gut);
	align-items: start;
}
.instrument__gallery { position: sticky; top: var(--gut); }
.instrument__main {
	margin: 0; background: var(--photo-bg); border-radius: var(--radius); overflow: hidden;
	height: calc(100svh - var(--gut) * 2 - 96px);
	min-height: 420px;
}
.instrument__zoom { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.instrument__img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: var(--photo-blend); transition: opacity .35s var(--ease); }
.instrument__img.is-loading { opacity: 0; }
.thumbs { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.thumb { padding: 0; border: 0; background: var(--photo-bg); width: 64px; height: 64px; flex: none; opacity: .5; transition: opacity .3s; border-radius: var(--radius); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: var(--photo-blend); }
.thumb:hover, .thumb.is-active { opacity: 1; }
.thumb.is-active { box-shadow: 0 0 0 1px var(--accent); }

.instrument__info { padding-top: .4rem; }
.back { display: inline-flex; gap: .5rem; font-size: .8rem; font-weight: 600; text-decoration: none; color: var(--muted); margin-bottom: 3rem; transition: color .3s, gap .3s; }
.back:hover { color: var(--ink); gap: .8rem; }
.instrument__title { font-size: clamp(2.8rem, 5vw, 5.4rem); line-height: .95; margin: 0 0 1.2rem; }
.instrument__info header { margin-bottom: 2.5rem; }
.instrument__info .prose { margin-bottom: 2.5rem; }

.specs { margin: 0 0 2.5rem; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.specs dt { font: 600 .68rem/1.9 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; font: 400 1.25rem/1.35 var(--serif); }
.specs a { text-decoration: none; }
.specs a:hover { color: var(--accent); }

.pager { display: grid; grid-template-columns: 1fr 1fr; margin: 2rem var(--gut) 0; border-top: 1px solid var(--line); }
.pager__link { display: flex; flex-direction: column; gap: .4rem; padding: 2rem 0; text-decoration: none; }
.pager__link--next { text-align: right; grid-column: 2; }
.pager__dir { font: 600 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pager__title { font: 400 clamp(1.5rem, 2.4vw, 2.2rem)/1.1 var(--serif); transition: color .3s; }
.pager__link:hover .pager__title { color: var(--accent); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 9, 8, .96); display: grid; place-items: center; animation: fade .3s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 92vw; max-height: 92svh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #efe7db; font: 300 2.6rem/1 var(--serif); width: 64px; height: 64px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }
@keyframes fade { from { opacity: 0; } }

/* ==========================================================================
   Contact & forms
   ========================================================================== */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.contact .page-head { margin-bottom: 2rem; }
.contact .lead { margin-bottom: 2.5rem; }
.contact__form { padding-top: .6rem; }
.form { display: grid; gap: 1.6rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.form__topics { border: 0; padding: 0; margin: 0 0 .4rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.form__topics legend { font: 600 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; padding: 0; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field > span { font: 600 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
	width: 100%;
	padding: .7rem 0;
	border: 0; border-bottom: 1px solid var(--line);
	background: transparent; color: var(--ink);
	font: 400 1.3rem/1.4 var(--serif);
	border-radius: 0;
	transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field ::placeholder { color: var(--muted); opacity: .7; }
.form .btn { justify-self: start; margin-top: .6rem; }
.notice { padding: 1rem 1.2rem; border: 1px solid var(--line); border-left: 2px solid var(--accent); margin-bottom: 2rem; }
.notice--error { border-left-color: #c75a4a; }

/* Posts */
.posts { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 64rem; }
.post-row a { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-row figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); }
.post-row img { width: 100%; height: 100%; object-fit: cover; }
.post-row h2 { font-size: 2rem; }
.post-row p:last-child { color: var(--muted); }

/* ==========================================================================
   Reveal on scroll (only when JS runs)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Seamless page transitions (cross-document View Transitions)
   The frame stays put; the stage dissolves; instrument photos morph
   from card to page.
   ========================================================================== */
@view-transition { navigation: auto; }
::view-transition-group(frame) { animation: none; }
::view-transition-old(frame), ::view-transition-new(frame) { animation-duration: .25s; }
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .6s .08s var(--ease) both; }
::view-transition-group(*) { animation-duration: .7s; animation-timing-function: var(--ease); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

/* ==========================================================================
   Tablet & mobile: maker stays top-left, menu becomes a bottom-left button
   ========================================================================== */
@media (max-width: 900px) {
	:root { --rail: 0px; --gut: 20px; }

	.frame {
		width: 100%;
		inset: 0 0 auto 0;
		height: auto;
		padding: 14px var(--gut);
		flex-direction: row; align-items: center;
		background: linear-gradient(var(--bg) 55%, transparent);
		transition: background .4s;
	}
	.is-home:not(.is-scrolled) .frame { background: transparent; }
	.maker__photo { width: 44px; height: 44px; }
	.maker__name { font-size: 1.15rem; }

	.nav-toggle {
		position: fixed; left: var(--gut); bottom: calc(var(--gut) + env(safe-area-inset-bottom));
		z-index: 60;
		display: inline-flex; align-items: center; gap: .7rem;
		padding: .85rem 1.25rem .85rem 1rem;
		border: 1px solid var(--line); border-radius: 999px;
		background: color-mix(in srgb, var(--bg) 82%, transparent);
		-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
		font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
		box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	}
	.nav-toggle__lines { position: relative; width: 18px; height: 8px; }
	.nav-toggle__lines::before, .nav-toggle__lines::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
	.nav-toggle__lines::before { top: 0; }
	.nav-toggle__lines::after { top: 6.5px; }
	.nav-open .nav-toggle__lines::before { top: 3.25px; transform: rotate(45deg); }
	.nav-open .nav-toggle__lines::after { top: 3.25px; transform: rotate(-45deg); }

	.nav {
		position: fixed; inset: 0; z-index: 55;
		display: flex; flex-direction: column; justify-content: flex-end;
		padding: 100px var(--gut) calc(var(--gut) + 90px + env(safe-area-inset-bottom));
		background: var(--bg);
		clip-path: circle(0% at 44px calc(100% - 44px));
		visibility: hidden;
		transition: clip-path .7s var(--ease), visibility 0s .7s;
	}
	.nav-open .nav { clip-path: circle(150% at 44px calc(100% - 44px)); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
	.nav .menu a { font-size: clamp(2.6rem, 11vw, 3.6rem); }
	.nav-open { overflow: hidden; }

	.stage { margin-left: 0; }
	.section--collection, .section.page, .section.contact { padding-top: 96px; }
	.hero { margin-left: 0; min-height: 92svh; }
	.hero__content { padding: var(--gut); padding-bottom: 104px; }
	.hero__media::after { background: linear-gradient(0deg, rgba(var(--hero-shade), .95) 0, rgba(var(--hero-shade), .55) 45%, rgba(var(--hero-shade), .15) 75%, rgba(var(--hero-shade), .4) 100%); }
	.hero__scroll { display: none; }
	body:not(.scheme-dark) .hero { flex-direction: column; justify-content: flex-end; }
	body:not(.scheme-dark) .hero__media { width: 100%; height: 56%; top: 56px; bottom: auto; }
	body:not(.scheme-dark) .hero__img {
		object-position: 50% 40%;
		-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 55%, transparent 100%);
		mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 55%, transparent 100%);
	}
	.strip__track { grid-auto-columns: 72vw; }
	.strip__controls .round { display: none; }

	.about-teaser__grid, .facts, .contact, .instrument { grid-template-columns: 1fr; }
	.facts { gap: 1.2rem; margin-top: 2.5rem; }
	.grid { grid-template-columns: 1fr 1fr; }
	.grid .card:nth-child(3n + 2) { margin-top: 0; }
	.grid .card:nth-child(2n) { margin-top: 3rem; }

	.instrument { padding-top: 84px; }
	.instrument__gallery { position: static; margin: 0 calc(var(--gut) * -1); }
	.instrument__main { height: auto; min-height: 0; aspect-ratio: 3 / 4; border-radius: 0; }
	.thumbs { padding: 0 var(--gut); }
	.back { margin-bottom: 2rem; }
	.specs > div { grid-template-columns: 7.5rem 1fr; }
	.form__row { grid-template-columns: 1fr; }
	.post-row a { grid-template-columns: 1fr; }
	.colophon { padding-bottom: 100px; }
	.timeline__item:not(:has(> .wp-block-group__inner-container)), .timeline__item > .wp-block-group__inner-container { grid-template-columns: 1fr; }
	.timeline__item .timeline__year { grid-column: 1 !important; grid-row: auto; margin-bottom: .3rem; }
	.timeline__item > .wp-block-group__inner-container > *, .timeline__item > :not(.wp-block-group__inner-container) { grid-column: 1; }
}
@media (max-width: 480px) {
	.grid { grid-template-columns: 1fr; }
	.grid .card:nth-child(2n) { margin-top: 0; }
	.card__title { font-size: 1.4rem; }
}

/* Short desktop screens: keep the menu clear of the maker */
@media (min-width: 901px) and (max-height: 620px) {
	.nav .menu a { font-size: 1.5rem; }
	.nav .menu { margin-bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	@view-transition { navigation: none; }
	.js .reveal { opacity: 1; transform: none; }
}
