@font-face {
	font-family: "Andale Mono";
	src: local("Andale Mono"), local("AndaleMono"), url("/assets/fonts/andale-mono.woff") format("woff");
	font-weight: 400; font-style: normal; font-display: swap;
}
/* =========================================================================
   Trudie Jacobs — Graduate of Interior Architecture & Design
   Direction: the portfolio as a printed zine / exhibition catalogue.
   Warm paper, heavy brick-red display type, justified typewriter columns,
   crop marks at the corners, numbered contents. (See moodboard.)
   ========================================================================= */

:root {
	/* warm printed paper */
	--paper:      #ede7d8;
	--paper-deep: #e3dbc7;
	--paper-edge: #d7ceb5;
	--ink:        #1b1915;
	--ink-soft:   #6c6658;
	--ink-faint:  #a49c88;
	--rule:       #cdc4ac;

	/* brick vermilion — the one loud colour: display type, rules, marks, links */
	--red:     #cc3b26;
	--red-ink: #a62c1a;   /* darker, for body-copy links on paper */

	--andale:  "Andale Mono", "Andale Mono Regular", "Courier Prime", ui-monospace, monospace;
	--mono:    "Courier Prime", "Courier New", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--display: "Anton", "Arial Narrow", "Courier Prime", sans-serif;

	--page-max: 1140px;
	--edge: clamp(1.15rem, 4vw, 3rem);

	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
	font-family: var(--mono);
	font-size: clamp(0.875rem, 0.4vw + 0.8rem, 0.97rem);
	line-height: 1.7;
	color: var(--ink);
	background: var(--paper);
	overflow-x: hidden;
	min-height: 100vh;
	text-rendering: optimizeLegibility;
}

/* paper grain */
body::before {
	content: "";
	position: fixed; inset: 0; z-index: 1;
	pointer-events: none; opacity: 0.55; mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* crop marks at the four corners — like a printer's sheet */
body::after {
	content: "";
	position: fixed; inset: 0; z-index: 6;
	pointer-events: none;
	background-repeat: no-repeat;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cpath d='M2 2 H14 M2 2 V14' stroke='%23cc3b26' stroke-width='1.25' fill='none'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cpath d='M18 2 H6 M18 2 V14' stroke='%23cc3b26' stroke-width='1.25' fill='none'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cpath d='M2 18 H14 M2 18 V6' stroke='%23cc3b26' stroke-width='1.25' fill='none'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cpath d='M18 18 H6 M18 18 V6' stroke='%23cc3b26' stroke-width='1.25' fill='none'/%3E%3C/svg%3E");
	background-position: 11px 11px, calc(100% - 11px) 11px, 11px calc(100% - 11px), calc(100% - 11px) calc(100% - 11px);
}
@media (max-width: 600px) { body::after { display: none; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: var(--paper); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---- Page transitions ----------------------------------------------- */
@view-transition { navigation: auto; }
::view-transition-group(root) { animation-duration: .34s; animation-timing-function: var(--ease); }
::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
::view-transition-new(root) { animation: vt-in  .34s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Masthead ------------------------------------------------------- */
.masthead {
	position: relative; z-index: 3;
	max-width: var(--page-max); margin: 0 auto;
	display: flex; align-items: flex-start; justify-content: space-between;
	gap: 0.75rem 2rem; flex-wrap: wrap;
	padding: 1.5rem var(--edge) 0.9rem;
	border-bottom: 2px solid var(--red);
}
.wordmark { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.4; }
.wordmark span { font-weight: 400; font-style: italic; color: var(--ink-soft); letter-spacing: 0; }
.wordmark::after {
	content: "Portfolio";
	display: block; margin-top: 0.15rem;
	font-weight: 400; font-style: normal; font-size: 0.66rem;
	letter-spacing: 0.22em; text-transform: uppercase; color: var(--red);
}
.nav { display: flex; gap: 1rem; flex-wrap: wrap; padding-top: 0.2rem; }
.nav a {
	position: relative; font-size: 0.72rem; letter-spacing: 0.16em;
	text-transform: uppercase; color: var(--ink-soft); padding: 0.1rem 0;
}
.nav a::before { content: "["; opacity: 0; margin-right: 0.15rem; transition: opacity .2s var(--ease); }
.nav a::after  { content: "]"; opacity: 0; margin-left: 0.15rem; transition: opacity .2s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.nav a:hover::before, .nav a:hover::after,
.nav a[aria-current="page"]::before, .nav a[aria-current="page"]::after { opacity: 1; }

/* ---- The page body ------------------------------------------------------- */
.page {
	position: relative; z-index: 2;
	max-width: var(--page-max); margin: 0 auto;
	padding: 0 var(--edge) 5rem;
	animation: page-enter .3s var(--ease) both;
}
@keyframes page-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* type-on reveal for the big red names */
.type-on { display: inline-block; border-right: 0.12em solid var(--red); animation: caret 0.9s step-end infinite; }
.type-on.done { border-right-color: transparent; animation: none; }
@keyframes caret { 50% { border-right-color: transparent; } }

/* ---- Section headers: numbered, tracked, like a contents page ------- */
.folio {
	display: flex; align-items: baseline; gap: 0.9rem;
	margin: 3.5rem 0 1.6rem;
}
.folio .pp {
	font-size: 0.72rem; color: var(--red); letter-spacing: 0.14em;
	text-transform: uppercase; white-space: nowrap;
}
.folio h2 {
	font-family: var(--mono); font-weight: 700;
	font-size: clamp(0.95rem, 1.6vw, 1.15rem);
	letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
}
.folio::after {
	content: ""; flex: 1;
	border-bottom: 1px dotted var(--ink-faint);
	transform: translateY(-0.2em);
}

/* ---- Hero ----------------------------------------------------------- */
.hero { padding: clamp(2.5rem, 8vh, 5rem) 0 clamp(1.75rem, 5vh, 3rem); }
.hero .kicker {
	font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
	color: var(--ink-soft); margin-bottom: 1.4rem;
}
.hero .kicker::before { content: "— "; color: var(--red); }
.hero h1 {
	font-family: var(--display); font-weight: 400;
	font-size: clamp(2.8rem, 12vw, 8rem);
	line-height: 0.9;
	letter-spacing: 0.005em;
	text-transform: lowercase;
	color: var(--red);
	margin-bottom: 1.3rem;
	text-wrap: balance;
}
.hero h1 .thin {
	display: block;
	font-family: var(--mono); font-weight: 400; text-transform: none;
	font-size: clamp(0.85rem, 1.4vw, 1.05rem); letter-spacing: 0.02em;
	color: var(--ink-soft); margin-top: 0.9rem;
}
.hero .lede {
	max-width: 60ch; text-align: justify; hyphens: auto; -webkit-hyphens: auto;
	font-size: clamp(0.9rem, 0.5vw + 0.82rem, 1.03rem);
}
.hero .lede a { color: var(--red-ink); border-bottom: 1px solid currentColor; }

/* corner bracket accent (the ⌐ ¬ marks from the moodboard) */
.bracket { position: relative; }
.bracket::before, .bracket::after {
	content: ""; position: absolute; width: 16px; height: 16px; border: 1px solid var(--red);
}
.bracket::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.bracket::after  { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }

/* ---- Docket ---------------------------------------------------------- */
.docket {
	margin-top: 2.25rem; display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	border-top: 1px solid var(--ink);
}
.docket div { padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--rule); }
.docket span { display: block; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.35rem; }
.docket b { font-weight: 700; font-size: 0.9rem; }

/* ---- Prose (justified typewriter columns) -------------------------- */
.prose { max-width: 66ch; }
.prose p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.prose p + p { margin-top: 1rem; }
.prose a { color: var(--red-ink); border-bottom: 1px solid currentColor; }
.prose .drop::first-letter {
	font-family: var(--display); font-size: 3rem; line-height: 0.8;
	float: left; padding: 0.12rem 0.5rem 0 0; color: var(--red);
}

/* ---- Ledger -------------------------------------------------------- */
.ledger { border-top: 1px solid var(--ink); }
.ledger .row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.35rem 1.75rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.ledger .yr { color: var(--red); font-size: 0.78rem; letter-spacing: 0.04em; }
.ledger .what b { font-weight: 700; font-size: 0.95rem; }
.ledger .what span { display: block; color: var(--ink-soft); font-size: 0.84rem; }
.ledger .what .note { margin-top: 0.4rem; font-size: 0.87rem; max-width: 58ch; text-align: justify; hyphens: auto; }
.ledger .what i { color: var(--ink); font-style: italic; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.35rem; }
.tags li { list-style: none; font-size: 0.72rem; letter-spacing: 0.05em; color: var(--ink-soft); border: 1px solid var(--rule); padding: 0.2rem 0.55rem; }
.tags li::before { content: "· "; color: var(--red); }

/* ---- Works: numbered contents (moodboard, right) ------------------ */
.contents { border-top: 2px solid var(--red); margin-top: 0.5rem; }
.contents a {
	display: grid; grid-template-columns: 3rem 1fr auto; gap: 1.25rem;
	align-items: baseline; padding: 1.15rem 0; border-bottom: 1px solid var(--rule);
	transition: padding-left .3s var(--ease), background .3s var(--ease);
}
.contents a:hover { padding-left: 0.9rem; background: var(--paper-deep); }
.contents .n { color: var(--red); font-size: 0.78rem; letter-spacing: 0.06em; }
.contents .t { font-size: 1rem; font-weight: 700; }
.contents .t span { display: block; font-weight: 400; font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.15rem; }
.contents .m { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); text-align: right; white-space: nowrap; }
.contents a:hover .n, .contents a:hover .t { color: var(--red); }

/* ---- Plate strip (drag to leaf) ---------------------------------- */
.leaf-wrap { margin: 1.75rem 0 0.5rem; }
.leaf-hint { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.7rem; }
.leaf-hint::before { content: "▸"; color: var(--red); }
.leaf-hint::after { content: ""; flex: 1; border-bottom: 1px dotted var(--ink-faint); }

.leaves {
	display: flex; gap: clamp(1.25rem, 3.5vw, 3rem);
	overflow-x: auto; overflow-y: hidden; padding: 0 0.25rem 1.5rem;
	scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--ink-faint) transparent;
}
.leaves::-webkit-scrollbar { height: 3px; }
.leaves::-webkit-scrollbar-thumb { background: var(--ink-faint); }
.leaves.dragging { cursor: grabbing; scroll-snap-type: none; }

.leaf { flex: 0 0 min(76vw, 420px); scroll-snap-align: center; display: flex; flex-direction: column; }
.leaf .frame {
	position: relative; aspect-ratio: 4 / 5;
	background: #26221c;
	border: 1px solid var(--ink);
	overflow: hidden;
	transition: transform .5s var(--ease);
}
.leaf .frame::before {
	content: ""; position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='90' height='90' filter='url(%23g)'/%3E%3C/svg%3E");
}
.leaf .frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.leaf .frame .idx {
	position: absolute; top: 0; left: 0;
	font-size: 0.7rem; letter-spacing: 0.1em; color: var(--paper);
	background: var(--red); padding: 0.2rem 0.55rem;
}
.leaf:hover .frame { transform: translateY(-4px); }
.leaf .cap { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-top: 0.85rem; }
.leaf .cap h3 { font-size: 1rem; font-weight: 700; }
.leaf .cap .yr { color: var(--red); font-size: 0.78rem; }
.leaf .sub { color: var(--ink-soft); font-size: 0.82rem; margin-top: 0.2rem; }

.more-link {
	display: inline-block; margin-top: 0.85rem;
	color: var(--red-ink); border-bottom: 1px solid currentColor;
	font-size: 0.82rem; letter-spacing: 0.04em;
}

/* ---- Project detail -------------------------------------------------- */
.project-head { padding: 2.25rem 0 0.5rem; }
.backlink { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.backlink:hover { color: var(--red); }
.project-head h1 {
	font-family: var(--display); font-weight: 400;
	font-size: clamp(2.4rem, 9vw, 5.5rem); line-height: 0.9;
	text-transform: lowercase; color: var(--red);
	margin: 1rem 0 1.4rem; text-wrap: balance;
}
.project-meta {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 1rem 1.75rem;
	border-top: 2px solid var(--red); border-bottom: 1px solid var(--ink);
	padding: 1.1rem 0;
}
.project-meta span { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-faint); margin-bottom: 0.3rem; }
.project-meta b { font-weight: 700; font-size: 0.92rem; }

.project-body { display: grid; grid-template-columns: 1fr; gap: 1.75rem; margin-top: 2.5rem; }
.block h3 { font-weight: 700; font-size: 0.92rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.6rem; }
.block h3::before { content: "§ "; color: var(--red); }
.block p { max-width: 66ch; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.block p em { font-style: italic; }

.plate-full {
	position: relative; margin: 0.75rem 0; aspect-ratio: 16 / 9;
	background: #26221c; border: 1px solid var(--ink); overflow: hidden;
}
.plate-full::before {
	content: ""; position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='90' height='90' filter='url(%23g)'/%3E%3C/svg%3E");
}
.plate-full img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.plate-full span {
	position: absolute; left: 0; bottom: 0;
	font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em;
	color: var(--paper); background: var(--red); padding: 0.25rem 0.6rem;
}

.pager {
	display: flex; justify-content: space-between; gap: 1rem;
	margin-top: 3.5rem; padding-top: 1.2rem; border-top: 2px solid var(--red);
	font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.pager a { color: var(--ink-soft); }
.pager a:hover { color: var(--red); }

/* ---- Contact ------------------------------------------------------------ */
.contact-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	border-top: 2px solid var(--red); margin-top: 1.5rem;
}
.contact-grid a, .contact-grid .cell { display: block; padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--rule); }
.contact-grid span { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-faint); margin-bottom: 0.45rem; }
.contact-grid b { font-weight: 700; font-size: 0.98rem; }
.contact-grid a:hover b { color: var(--red); }

/* ---- Footer ----------------------------------------------------------- */
.colophon {
	position: relative; z-index: 2;
	max-width: var(--page-max); margin: 0 auto;
	padding: 1.6rem var(--edge) 2.5rem;
	border-top: 2px solid var(--red);
	display: flex; justify-content: space-between; gap: 0.75rem 2rem; flex-wrap: wrap;
	font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}
.colophon a:hover { color: var(--red); }

/* ---- Dev toolbar --------------------------------------------------- */
#dev-bar {
	position: fixed; left: 1rem; bottom: 1rem; z-index: 9500;
	font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em;
	background: var(--ink); color: var(--paper);
	display: flex; align-items: stretch; box-shadow: 0 5px 22px rgba(0,0,0,0.28);
}
#dev-bar .tag { background: var(--red); padding: 0.5rem 0.7rem; display: flex; align-items: center; letter-spacing: 0.2em; }
#dev-bar button {
	font: inherit; color: var(--paper); background: transparent; border: 0;
	border-left: 1px solid rgba(237,231,216,0.22);
	padding: 0.5rem 0.85rem; cursor: pointer; text-transform: uppercase; letter-spacing: 0.1em;
}
#dev-bar button:hover { background: rgba(237,231,216,0.12); }
#dev-bar button:disabled { opacity: 0.5; cursor: progress; }
#dev-bar .status { padding: 0.5rem 0.85rem; border-left: 1px solid rgba(237,231,216,0.22); display: flex; align-items: center; max-width: 44ch; }
#dev-sheet {
	position: fixed; left: 1rem; bottom: 3.5rem; z-index: 9500;
	width: min(92vw, 600px); max-height: 55vh; overflow: auto;
	background: var(--paper); color: var(--ink);
	border: 1px solid var(--ink); box-shadow: 0 10px 36px rgba(0,0,0,0.3);
	padding: 0.9rem 1.1rem; font-size: 0.76rem; line-height: 1.6;
}
#dev-sheet h4 { font-weight: 700; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.1em; }
#dev-sheet pre { white-space: pre-wrap; word-break: break-word; background: var(--paper-deep); padding: 0.7rem; border: 1px solid var(--rule); }
#dev-sheet .empty { color: var(--ink-soft); }

/* ---- Empty state -------------------------------------------------- */
.tbc { color: var(--ink-faint); font-style: italic; }
.tbc::before { content: "[ "; color: var(--red); font-style: normal; }
.tbc::after  { content: " ]"; color: var(--red); font-style: normal; }

/* ---- Error page -------------------------------------------------------- */
.err h1 { color: var(--red); }
.err .stamp {
	display: inline-block; margin-bottom: 1.5rem; padding: 0.3rem 0.7rem;
	border: 2px solid var(--red); color: var(--red);
	font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
	transform: rotate(-2.5deg);
}

/* ---- Responsive & motion ---------------------------------------------- */
@media (min-width: 800px) {
	.project-body { grid-template-columns: 1fr 1fr; }
	.project-body .block.wide { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.ledger .row { grid-template-columns: 1fr; }
	.contents a { grid-template-columns: 2.25rem 1fr; }
	.contents .m { grid-column: 2; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
	.type-on { border-right-color: transparent; }
	.page { animation: none; }
	@view-transition { navigation: none; }
	::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

.plate-full.colour img { filter: none; }
.leaf:hover .frame img { filter: none; }
.block ul { max-width: 66ch; padding-left: 1.1rem; }
.block li { margin: 0.15rem 0; }
.block li::marker { color: var(--red); }
.notice { margin-top: 1.75rem; padding: 0.9rem 1rem; border: 1px dashed var(--red); font-size: 0.8rem; color: var(--ink-soft); max-width: 66ch; }

/* ---- Portfolio spreads: PDF layout, site palette ----------------------- */
.spreads { display: grid; gap: clamp(2rem, 5vw, 4rem); margin-top: 3.5rem; }
.spread { position: relative; container-type: inline-size; }  /* drawings have the paper colour baked in */
.spread .fig { display: block; }
.spread .fig img { width: 100%; height: auto; }
.spread .tx { margin: 0; }
.t-h { font-family: var(--display); font-weight: 400; color: var(--red); text-transform: uppercase; line-height: 1; letter-spacing: 0.01em; }
.t-c { font-family: var(--mono); font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.04em; }
.t-m, .t-ms { font-family: var(--andale); color: var(--ink); }
.t-ms { color: var(--ink-soft); }
.t-r { font-family: var(--mono); color: var(--ink-soft); }
.t-k { font-family: var(--andale); font-weight: 400; color: var(--ink); }

@media (min-width: 720px) {
	.spread { aspect-ratio: 1683.78 / 841.89; }
	.spread > * { position: absolute; left: var(--x); top: var(--y); }
	.spread .fig { width: var(--w); height: var(--h); }
	.spread .fig img { height: 100%; object-fit: contain; }
	.spread .fig:hover { outline: 1px solid var(--red); outline-offset: 2px; }
	.spread .tx { font-size: var(--fs); line-height: var(--lh); white-space: nowrap; }
	.spread .tx.right { left: auto; right: var(--r); text-align: right; }
	.spread .t-h { line-height: 1.3; }
	.spread .vert { writing-mode: vertical-rl; transform: rotate(180deg); }
}
@media (max-width: 719.98px) {
	.spread { display: flex; flex-direction: column; gap: 0.9rem; padding-top: 1.25rem; border-top: 2px solid var(--red); }
	.spread .t-h { font-size: 2rem; }
	.spread .t-c { font-size: 0.78rem; }
	.spread .t-m, .spread .t-ms, .spread .t-k { font-size: 0.8rem; }
	.spread .t-r { display: none; }
	.spread br { display: none; }  /* lines end in a space, so they rejoin cleanly */
}
:where(.spread .sheet-link) { position: relative; } /* zero specificity: desktop keeps position:absolute */
.spread .sheet-link::after {
	content: "Full drawing ↗"; position: absolute; right: 0; bottom: 0;
	font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--paper); background: var(--red); padding: 0.2rem 0.5rem;
	opacity: 0; transition: opacity .2s var(--ease); pointer-events: none;
}
.spread .sheet-link:hover::after, .spread .sheet-link:focus-visible::after { opacity: 1; }
@media (hover: none) { .spread .sheet-link::after { opacity: 1; } }

/* ---- Lightbox ---------------------------------------------------------- */
.lightbox {
	position: fixed; inset: 0; z-index: 9000;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem;
	padding: clamp(1rem, 4vw, 3rem);
	background: rgba(237, 231, 216, 0.55);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	opacity: 0; transition: opacity .2s var(--ease);
	cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox img {
	max-width: 100%; max-height: calc(100vh - 6rem); width: auto; height: auto; object-fit: contain;
	border: 1px solid var(--ink); box-shadow: 0 18px 60px rgba(27, 25, 21, 0.28);
	background: var(--paper); cursor: default;
	transform: scale(0.98); transition: transform .25s var(--ease);
}
.lightbox.open img { transform: none; }
.lightbox .lb-cap {
	font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
}
.lightbox .lb-cap:empty { display: none; }
.lightbox .lb-close {
	position: absolute; top: 1rem; right: 1rem;
	width: 2.4rem; height: 2.4rem; border: 1px solid var(--ink); background: var(--paper);
	font: 400 1.4rem/1 var(--mono); color: var(--ink); cursor: pointer;
}
.lightbox .lb-close:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
html.lb-lock { overflow: hidden; }
html.lb-lock body::before { display: none; } /* skip the full-screen grain blend under the blur */
.tag-label { font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin: 1.1rem 0 0.2rem; }
.tag-label:first-of-type { margin-top: 0.4rem; }

/* ---- "Under development" stamp (front page) ------------------------- */
.wip-stamp {
	display: inline-block; margin-top: 1.4rem; padding: 0.35rem 0.75rem;
	border: 2px solid var(--red); color: var(--red);
	font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
	transform: rotate(-1.5deg); transform-origin: left center;
	text-wrap: balance;
}

/* ---- Industry gallery: equal-height rows, no gaps --------------------- */
.gal-h { font-family: var(--display); font-weight: 400; color: var(--red); text-transform: uppercase; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.gallery { display: grid; gap: 0.75rem; }
.gal-cap { display: flex; align-items: center; gap: 0.75rem; font-family: var(--mono); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.gal-chip { height: 2.2rem; width: auto; border: 1px solid var(--rule); }
.gal-row { display: flex; gap: 0.75rem; align-items: flex-start; }
.gal-row .fig { display: block; min-width: 0; }
.gal-row .fig img { width: 100%; height: auto; display: block; }
.gal-row .fig:hover { outline: 1px solid var(--red); outline-offset: 2px; }
@media (max-width: 719.98px) { .gal-row { flex-direction: column; } .gal-row .fig { flex: none !important; align-self: center; } .gal-row .fig img { max-height: 80vh; width: auto; max-width: 100%; } }
