/* ==========================================================================
   Hazzard Laboratories — site stylesheet
   One file. Flexbox (grid only where the design tiles cards). No framework.
   Manila paper, graphite plate, brass and a signal-red accent; Big Shoulders
   for display, Courier Prime for everything typed.

   Contents
   1.  Tokens
   2.  Fonts               (self-hosted, OFL — licences in assets/fonts/)
   3.  Base
   4.  Layout primitives  (.section, .wrap, .split, .stack, .stripes)
   5.  Hero               (.hero)
   6.  Cover              (.cover + caption)
   7.  Panel              (.panel)
   7b. Full-width row     (.band)
   8.  Content            (.heading, .rule, .prompt, .eyebrow, links)
   9.  Buttons            (.btn, .btn-list, .btn-row)
   10. Jukebox            (.jukebox, .track)
   11. Gallery            (.gallery)
   11b. Video             (.video, .video-lightbox)
   11d. Columns           (.columns)
   11e. Slideshow         (.slideshow)
   12. Site chrome        (.site-header, .site-nav, .site-footer, .skip-link)
   13. Audio player       (.player, .player-mini)
   14. Motion             (.reveal, reduced motion)
   15. Ticker             (.ticker)
   16. Projects register  (.register, .unit)
   17. Feature row        (.feature)
   18. Reel tiles         (.reels, .reel)
   19. Plates             (.plates, .plate)
   20. Standing orders    (.orders, .order)
   21. Theme overrides    (the generic blocks in this palette)
   ========================================================================== */


/* 1. Tokens ----------------------------------------------------------------- */

:root {
	/* palette */
	--c-paper:       #EDE4D0;   /* page                       */
	--c-paper-card:  #F6EFDF;   /* cards, light text on accent */
	--c-paper-dark:  #E2D7BE;   /* the principles band        */
	--c-graphite:    #1C1F22;   /* header, ink, plates        */
	--c-black:       #0E1012;   /* hero, footer               */
	--c-brass:       #C29A3A;
	--c-accent:      #8E2A1E;   /* Site Settings › Look overrides it on <html> */
	--c-accent-dark: color-mix(in srgb, var(--c-accent) 66%, #000);
	--c-muted:       #4A4740;
	--c-ink-2:       #3A3832;
	--c-light:       #EDE4D0;
	--c-light-2:     #DCD3BE;
	--c-light-3:     #C9BFA8;
	--c-dash:        #8C877A;

	/* roles the generic blocks read */
	--c-page:        var(--c-paper);
	--c-surface:     var(--c-paper);
	--c-ink:         var(--c-graphite);
	--c-ink-inverse: var(--c-light);
	--c-rule:        var(--c-graphite);
	--c-rule-inverse: rgb(237 228 208 / 0.35);
	--c-track:       #24282c;
	--c-track-hover: #2f3439;
	--c-track-line:  #3a3f45;
	--c-track-line-hover: #5a5f65;
	--c-track-active: var(--c-brass);

	/* type */
	--f-body:    "Courier Prime", "Courier New", ui-monospace, monospace;
	--f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
	--f-stencil: "Big Shoulders Stencil Display", var(--f-display);
	--fs-xs:   0.8125rem;  /* 13px — card labels     */
	--fs-sm:   0.875rem;   /* 14px — eyebrows        */
	--fs-base: 1.0625rem;  /* 17px — body            */
	--fs-caption: 1.0625rem;
	--fs-h2:   clamp(2rem, 4vw, 3rem);   /* 44–80px */
	--fs-h1:   clamp(2.75rem, 7vw, 5.5rem);
	--lh-body: 1.6;
	--lh-heading: 0.95;
	--track-wide: 0.28em;
	--track-btn:  0.14em;

	/* space */
	--gap-xs: 6px;
	--gap-sm: 12px;
	--gap-md: 24px;
	--gap-lg: 48px;
	--pad-section: 96px;
	--measure: 600px;
	--site-width: 1240px;
	--gutter: 24px;

	/* shape */
	--radius: 0;
	--border: 3px solid var(--c-graphite);
	--shadow: 8px 8px 0 var(--c-graphite);
	--shadow-soft: 6px 6px 0 var(--c-dash);

	/* motion */
	--t-fast: 0.25s;
	--t-slow: 0.8s;

	/* breakpoint (reference only — media queries can't read vars) */
	--bp-stack: 782px;
}


/* 2. Fonts ------------------------------------------------------------------ */

@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/courier-prime-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/courier-prime-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/courier-prime-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/big-shoulders-display-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/big-shoulders-display-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Stencil Display"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/big-shoulders-stencil-display-latin-700-normal.woff2) format("woff2"); }


/* 3. Base ------------------------------------------------------------------- */

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

html {
	scroll-behavior: smooth;
	background-color: var(--c-page);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--c-page);
	color: var(--c-ink);
	font-family: var(--f-body);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
}

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

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--f-display);
	font-weight: 700;
	line-height: var(--lh-heading);
	text-transform: uppercase;
}

p {
	margin: 0 0 1.25em;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--c-accent);
}

a:hover {
	color: var(--c-accent-dark);
}

:focus-visible {
	outline: 3px solid var(--c-brass);
	outline-offset: 3px;
}

button {
	font: inherit;
	color: inherit;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}


/* 4. Layout primitives ------------------------------------------------------ */

/* Every top-level block on a page is a .section. */
.section {
	position: relative;
	width: 100%;
}

/* The site width: content centred at 1240px with the gutter. */
.wrap {
	width: 100%;
	max-width: var(--site-width);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Two halves side by side; stacks below the breakpoint, media first. */
.split {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	background-color: var(--c-surface);
}

.split > * {
	display: flex;
	flex: 0 0 50%;
	min-width: 0;
	flex-direction: column;
	justify-content: center;
}

@media (max-width: 781px) {
	.split {
		flex-direction: column;
	}
	.split > * {
		flex-basis: auto;
	}
	.split--reverse {
		flex-direction: column-reverse;
	}
}

.stack {
	display: flex;
	flex-direction: column;
	gap: var(--stack-gap, var(--gap-xs));
}

/* Hazard stripes. Site Settings › Look › Hazard stripes off adds .no-stripes to <html>. */
.stripes {
	height: 18px;
	background: repeating-linear-gradient(-45deg, var(--c-graphite) 0 16px, var(--c-brass) 16px 32px);
}

.stripes--thin {
	height: 12px;
	background: repeating-linear-gradient(-45deg, var(--c-black) 0 12px, var(--c-brass) 12px 24px);
}

.no-stripes .stripes {
	display: none;
}


/* 5. Hero ------------------------------------------------------------------- */

.hero {
	display: flex;
	align-items: flex-end;
	min-height: calc(100vh - 152px);
	overflow: hidden;
	background-color: var(--c-black);
	color: var(--c-light);
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.hero__bg {
	background-position: center top;
	background-repeat: no-repeat;
	background-size: cover;
}

.hero__video[data-parallax] {
	top: -10%;
	height: 120%;
	will-change: transform;
}

.hero--mono .hero__media {
	filter: grayscale(1) contrast(1.1);
}

.hero__dim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgb(14 16 18 / 0.25) 0%, rgb(14 16 18 / 0.45) 45%, rgb(14 16 18 / 0.94) 100%);
	opacity: var(--dim, 1);
}

.hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: var(--gap-md);
	width: 100%;
	max-width: var(--site-width);
	margin-inline: auto;
	padding: 120px var(--gutter) 72px;
}

.hero__eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin: 0;
	color: var(--c-light);
	font-size: var(--fs-sm);
	letter-spacing: var(--track-wide);
	text-transform: uppercase;
	
}

.hero__title {
	font-size: var(--fs-h1);
}

.hero__title--logo {
	line-height: 0;
}

.hero__logo {
	width: min(100%, 820px);
	height: auto;
}

.hero__lede {
	max-width: 640px;
	margin: 0;
	color: var(--c-light-2);
	font-size: 1.25rem;
	line-height: 1.55;
}

.hero .btn__ext {
	margin-left: 0.4em;
	font-family: var(--f-body);
	font-size: 0.85em;
}

.btn-row {
	margin-top: 8px;
}

@media (max-width: 781px) {
	.hero {
		min-height: 560px;
	}
	.hero__inner {
		padding-top: 96px;
		padding-bottom: 48px;
	}
	.hero__lede {
		font-size: 1.125rem;
	}
}


/* 6. Cover ------------------------------------------------------------------ */

/* Full-height image with a dim layer and an optional caption anchored to a
   corner. Position modifiers set the anchor with flexbox alignment only. */
.cover {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;     /* default: bottom */
	align-items: flex-start;       /* default: left   */
	min-height: 100vh;
	min-height: 100svh;
	padding: 1em 1em calc(1em + 80px);   /* bottom clears the fixed footer badge */
	overflow: hidden;
	color: #fff;
	background-color: #000;
}

.cover--right  { align-items: flex-end;   text-align: right; }
.cover--center { align-items: center;     text-align: center; }
.cover--top    { justify-content: flex-start; }
.cover--middle { justify-content: center; }

.cover__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: var(--focus, 50% 50%);
}

.cover__dim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: #000;
	opacity: var(--dim, 0.5);
}

.cover__inner {
	position: relative;
	z-index: 2;
	width: min(480px, 100%);
}

.cover__title {
	margin: 0;
	font-size: var(--fs-caption);
	text-transform: uppercase;
	line-height: 1.5;
}

.cover__rule {
	margin: 0.25em 0;
	border: 0;
	border-bottom: 1px solid var(--c-rule-inverse);
}

.cover__text {
	margin: 0;
	font-size: var(--fs-caption);
	line-height: 1.5;
}


/* 7. Panel ------------------------------------------------------------------ */

.panel {
	padding: var(--gap-lg);
	background-color: var(--c-surface);
	color: var(--c-ink);
}

.panel__inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: var(--measure);
	margin-inline: auto;
}

@media (max-width: 781px) {
	.panel {
		padding: var(--gap-lg) var(--gap-md);
	}
}


/* 7b. Full-width row --------------------------------------------------------- */
/* Same content as a panel, across the page. Light: dark text on white.
   Dark: light text on black, or over a background image/video and its dim. */

.band {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: calc(var(--gap-lg) * 2) var(--gap-lg);
	background-color: var(--c-surface);
	color: var(--c-ink);
}

.band--dark {
	--c-rule: var(--c-rule-inverse);
	background-color: var(--c-page);
	color: var(--c-ink-inverse);
}

.band--screen {
	min-height: 100vh;
	min-height: 100svh;
}

.band__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.band__dim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: #0a0a0a;
	opacity: var(--dim, 0.6);
}

.band__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: var(--measure);
	margin-inline: auto;
}

.band--wide .band__inner { max-width: 1100px; }
.band--full .band__inner { max-width: none; }

.band--center .band__inner {
	align-items: center;
	text-align: center;
}

.band--center .band__inner > * { max-width: 100%; }

/* Last on the page: clear the fixed footer badge, as covers do. */
.band:last-child {
	padding-bottom: calc(var(--gap-lg) * 2 + 80px);
}

@media (max-width: 781px) {
	.band {
		padding: var(--gap-lg) var(--gap-md);
	}
	.band:last-child {
		padding-bottom: calc(var(--gap-lg) + 80px);
	}
}


/* 8. Content ---------------------------------------------------------------- */

.heading {
	margin-bottom: var(--gap-sm);
	font-size: var(--fs-h2);
}

.rule {
	width: 100%;
	margin: 0 0 var(--gap-sm);
	border: 0;
	border-bottom: 1px solid var(--c-rule);
	border-style: dashed;
	border-bottom-width: 1px;
}

.prompt {
	margin-bottom: var(--gap-sm);
	font-size: var(--fs-sm);
}

.prompt strong {
	font-weight: 700;
}

.media-frame {
	border-radius: 6px;
	box-shadow: 0 0 20px rgb(0 0 0 / 0.3);
}


/* 9. Button list ------------------------------------------------------------ */

.btn-list {
	display: flex;
	flex-direction: column;
	gap: var(--gap-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.667em 1.333em;
	border: 2px solid var(--c-accent);
	border-radius: var(--radius);
	background-color: #000;
	color: #fff;
	font-size: var(--fs-sm);
	line-height: 2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color var(--t-fast), border-color var(--t-fast);
}

.btn:hover,
.btn:focus-visible {
	border-color: var(--c-accent-dark);
	background-color: var(--c-accent-dark);
	color: #fff;
}

.btn--inline {
	display: inline-flex;
	width: auto;
	align-self: center;
}


/* 10. Jukebox --------------------------------------------------------------- */

.jukebox {
	display: flex;
	flex-direction: column;
	gap: var(--gap-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.track {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--c-track-line);
	background-color: var(--c-track);
	color: var(--c-ink-inverse);
	font-size: var(--fs-xs);
	letter-spacing: 0.1em;
	line-height: 1.1;
	text-align: left;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color var(--t-fast);
}

.track:hover,
.track:focus-visible {
	background-color: var(--c-track-hover);
	border-color: var(--c-track-line-hover);
	color: #fff;
}

.track:focus-visible {
	outline: 2px solid var(--c-track-active);
	outline-offset: 2px;
}

/* Active (selected) track — playing or paused. */
.track[aria-pressed="true"] {
	background-color: #1c1c1c;
	border-color: var(--c-track-active);
	box-shadow: inset 4px 0 0 var(--c-track-active);
	color: #fff;
	font-weight: 600;
}

.track[aria-pressed="true"]:hover {
	background-color: #262626;
}

.track svg {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	fill: currentColor;
	transition: fill var(--t-fast);
}

.track[aria-pressed="true"] svg {
	fill: #fff;
}

/* Audio actually running (set by jukebox.js on play/pause). */
.track.is-playing svg {
	animation: track-pulse 1.2s ease-in-out infinite;
}

@keyframes track-pulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
	.track,
	.track svg { transition: none; }
	.track.is-playing svg { animation: none; }
}


/* 11. Gallery --------------------------------------------------------------- */

.gallery {
	display: flex;
	flex-wrap: wrap;
	background-color: #000;
}

/* Filler: soaks up the free space on the last row so an orphan thumbnail
   keeps the same width as the rest instead of stretching full-bleed. */
.gallery::after {
	content: "";
	flex: 999 1 480px;
}

.gallery__item {
	display: flex;
	flex: 1 1 480px;
	position: relative;
	z-index: 0;
	overflow: hidden;
}

.gallery__item img {
	width: 100%;
	height: auto;
	aspect-ratio: 1024 / 585;
	object-fit: cover;
	object-position: center top;
	transition: opacity var(--t-fast);
}

.gallery__item:hover,
.gallery__item:focus-visible {
	z-index: 1;
}

.gallery__item:hover img,
.gallery__item:focus-visible:not([data-quiet-focus]) img {
	opacity: 0.6;
}

/* Lightbox (js/gallery.js) — a native <dialog> sized to the viewport */
.lightbox-open {
	overflow: hidden;
}

.lightbox {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	overflow: hidden;
}

.lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox::backdrop {
	background-color: rgb(0 0 0 / 0.85);
}

.lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--gap-sm);
	max-width: calc(100vw - 140px);
	margin: 0;
}

.lightbox__img {
	max-width: 100%;
	max-height: calc(100vh - 120px);
	max-height: calc(100dvh - 120px);
	width: auto;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 0 30px #000;
	opacity: 0;
	transition: opacity var(--t-fast);
	user-select: none;
	touch-action: pan-y;
}

.lightbox__img.is-loaded {
	opacity: 1;
}

.lightbox__caption {
	max-width: 70ch;
	font-size: var(--fs-sm);
	text-align: center;
}

.lightbox__count {
	position: absolute;
	top: 22px;
	left: 50%;
	margin: 0;
	font-size: var(--fs-sm);
	letter-spacing: 0.1em;
	transform: translateX(-50%);
}

.lightbox__btn {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: rgb(0 0 0 / 0.32);
	cursor: pointer;
	transition: background-color var(--t-fast);
}

.lightbox__btn:hover,
.lightbox__btn:focus-visible {
	background-color: rgb(0 0 0 / 0.7);
}

.lightbox__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.lightbox__btn svg {
	width: 28px;
	height: 28px;
	fill: #fff;
}

.lightbox__btn[hidden] {
	display: none;
}

.lightbox__prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__close { top: 12px;   right: 12px; }

@media (max-width: 781px) {
	.lightbox__figure {
		max-width: calc(100vw - 24px);
	}
	.lightbox__prev,
	.lightbox__next {
		top: auto;
		bottom: 16px;
		transform: none;
	}
}


/* 11b. Video ----------------------------------------------------------------
   blocks/video, js/video.js. The frame keeps its shape with aspect-ratio;
   --ratio is "w / h", so it also works inside calc() for the lightbox. */

.video {
	--ratio: 16 / 9;
	margin: 0 0 var(--gap-md);
}

.video__frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: var(--ratio);
	background-color: #000;
}

.video--framed .video__frame {
	border-radius: 6px;
	box-shadow: 0 0 20px rgb(0 0 0 / 0.3);
}

.video__media,
.video__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

video.video__media {
	object-fit: contain;
	background-color: #000;
}

.video__poster {
	object-fit: cover;
	transition: transform var(--t-fast), opacity var(--t-fast);
}

.video__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
}

.video__play::after {                     /* light dim so the icon reads on any poster */
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgb(0 0 0 / 0.2);
	transition: background-color var(--t-fast);
}

.video__title {
	position: absolute;
	left: var(--gap-md);
	right: var(--gap-md);
	bottom: var(--gap-md);
	z-index: 1;
	font-family: var(--f-display);
	font-size: var(--fs-caption);
	line-height: var(--lh-heading);
	text-align: left;
}

.video__icon {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(48px, 16%, 88px);
	aspect-ratio: 1;
	border: 2px solid rgb(255 255 255 / 0.85);
	border-radius: 50%;
	background-color: rgb(0 0 0 / 0.35);
	box-shadow: 0 0 18px rgb(0 0 0 / 0.6);
	transition: transform var(--t-fast), background-color var(--t-fast);
}

.video__icon svg {
	width: 46%;
	margin-left: 8%;                     /* optical centre of the triangle */
	fill: #fff;
}

.video__play:hover::after,
.video__play:focus-visible::after {
	background-color: rgb(0 0 0 / 0.05);
}

.video__play:hover .video__icon,
.video__play:focus-visible .video__icon {
	background-color: var(--c-accent);
	transform: scale(1.08);
}

.video__play:hover .video__poster {
	transform: scale(1.02);
}

.video__play:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.video__caption {
	margin-top: var(--gap-sm);
	font-size: var(--fs-sm);
}

/* Lightbox player. Fits the window both ways from the ratio alone:
   as wide as allowed, unless that would make it too tall. */
.video-lightbox__frame {
	position: relative;
	width: min(100vw - 140px, (100vh - 140px) * var(--ratio));
	width: min(100vw - 140px, (100dvh - 140px) * var(--ratio));
	aspect-ratio: var(--ratio);
	overflow: hidden;
	border-radius: 6px;
	background-color: #000;
	box-shadow: 0 0 30px #000;
}

.video-lightbox__frame > iframe,
.video-lightbox__frame > video {
	position: absolute;
	background-color: #000;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 781px) {
	.video-lightbox__frame {
		width: min(100vw - 24px, (100vh - 120px) * var(--ratio));
		width: min(100vw - 24px, (100dvh - 120px) * var(--ratio));
	}
}

@media (prefers-reduced-motion: reduce) {
	.video__poster,
	.video__icon {
		transition: none;
	}
	.video__play:hover .video__poster,
	.video__play:hover .video__icon,
	.video__play:focus-visible .video__icon {
		transform: none;
	}
}


/* 11d. Columns ---------------------------------------------------------------
   blocks/columns. A flex row of equal columns that re-flows by the block's own
   width (container queries), so it behaves the same full width or narrowed by
   Max width (side padding, as on split rows): all across → two per row → one.
   Five or six step through three. */

.columns {
	--col-gap: var(--gap-lg);
	--c-label: var(--c-accent-dark);
	--c-muted: #666;
	--c-rule: rgb(0 0 0 / 0.16);
	padding: calc(var(--gap-lg) * 1.5) clamp(var(--gap-md), 4vw, 60px);
	background-color: var(--c-surface);
	color: var(--c-ink);
}

.columns--dark {
	--c-label: #4fb3e6;                  /* the accent, lifted for black */
	--c-muted: rgb(239 239 239 / 0.72);
	--c-rule: rgb(255 255 255 / 0.16);
	background-color: #000;
	color: var(--c-ink-inverse);
}

.columns__inner {
	container-type: inline-size;
	width: 100%;
}

.columns__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--gap-sm) var(--gap-md);
	margin-bottom: var(--gap-lg);
}

.columns--rules .columns__head {
	padding-bottom: var(--gap-md);
	border-bottom: 1px solid var(--c-rule);
}

.columns__eyebrow {
	margin: 0;
	color: var(--c-muted);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.columns__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap-lg) var(--col-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.columns--rules .columns__list {
	padding-bottom: var(--gap-lg);
	border-bottom: 1px solid var(--c-rule);
}

/* Equal shares of the row, however many there are. */
.columns__item {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: var(--gap-sm);
	min-width: 0;
}

.columns__media {
	margin-bottom: var(--gap-xs);
	overflow: hidden;
	border-radius: var(--radius);
}

.columns__media img {
	width: 100%;
}

.columns--crop .columns__media img {
	aspect-ratio: var(--ratio, 16 / 9);
	height: auto;
	object-fit: cover;
}

.columns__label {
	color: var(--c-label);
	font-family: var(--f-body);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.columns__text {
	margin: 0;
	color: inherit;
	font-size: 1rem;
	line-height: 1.6;
}

/* Five or six: three per row before they get cramped. */
@container (max-width: 1100px) {
	.columns--many .columns__item {
		flex: 0 0 calc((100% - 2 * var(--col-gap)) / 3);
	}
}

/* Two per row (four becomes 2 × 2). No growing, so an odd last column
   stays the same size as the rest instead of stretching across. */
@container (max-width: 860px) {
	.columns__item,
	.columns--many .columns__item {
		flex: 0 0 calc((100% - var(--col-gap)) / 2);
	}
}

/* One per row. */
@container (max-width: 520px) {
	.columns__item,
	.columns--many .columns__item {
		flex: 0 0 100%;
	}
}

/* Last on the page: clear the fixed footer badge. */
.columns:last-child {
	padding-bottom: calc(var(--gap-lg) * 1.5 + 80px);
}


/* 11e. Slideshow -------------------------------------------------------------
   blocks/slideshow + js/slideshow.js; slides open the gallery lightbox.
   A scroll-snap row: swipe, trackpad and keyboard scrolling work natively.
   The section is a size container, so 100cqw is its width: the heading and
   the current slide line up with the content edge (gutter, or the Max width
   margin, plus any side padding), while the row itself runs to the page edge
   and the next slide always peeks in by at least --peek. */

.slideshow {
	--gutter: clamp(var(--gap-md), 4vw, 60px);
	--max: 100000px;
	--pad-l: 0px;
	--pad-r: 0px;
	--peek: clamp(28px, 6vw, 96px);
	--slide-gap: var(--gap-md);
	--edge-l: calc(max(var(--gutter), (100cqw - var(--max)) / 2) + var(--pad-l));
	--edge-r: calc(max(var(--gutter), (100cqw - var(--max)) / 2) + var(--pad-r));
	--c-chip: rgb(0 0 0 / 0.07);
	--c-chip-ink: #1d1d1f;
	--c-dot: rgb(0 0 0 / 0.42);
	container-type: inline-size;
	padding-block: calc(var(--gap-lg) * 1.5);
	background-color: var(--c-surface);
	color: var(--c-ink);
}

.slideshow--dark {
	--c-chip: rgb(255 255 255 / 0.12);
	--c-chip-ink: #f5f5f7;
	--c-dot: rgb(255 255 255 / 0.5);
	background-color: #000;
	color: var(--c-ink-inverse);
}

.slideshow__title {
	margin-bottom: var(--gap-lg);
	padding-inline: var(--edge-l) var(--edge-r);
	
}

.slideshow__track {
	display: flex;
	gap: var(--slide-gap);
	padding-inline: var(--edge-l) var(--edge-r);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--edge-l) var(--edge-r);
	scrollbar-width: none;
}

.slideshow__track::-webkit-scrollbar { display: none; }

.slideshow__track:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 4px;
}

/* The content width, but never so wide the next slide can't peek in. */
.slide {
	position: relative;
	display: block;
	flex: 0 0 min(100cqw - var(--edge-l) - var(--edge-r), 100cqw - var(--edge-l) - var(--slide-gap) - var(--peek));
	aspect-ratio: var(--ratio, 16 / 9);
	overflow: hidden;
	border-radius: 22px;
	background-color: #1a1a1a;
	color: #fff;
	text-decoration: none;
	scroll-snap-align: start;
	isolation: isolate;
}

.slide__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--t-slow);
}

.slide:hover .slide__img {
	transform: scale(1.025);
}

.slide:focus-visible {
	outline: 3px solid var(--c-accent);
	outline-offset: 3px;
}

/* Focus handed back after the lightbox closes from a click: no ring
   (gallery.js marks it; a keyboard-opened lightbox keeps the ring). */
[data-quiet-focus]:focus-visible {
	outline: none;
}

/* A shade from the text's edge, so it reads over any image. */
.slide--has-text::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(var(--shade-dir, to top), var(--shade, rgb(0 0 0 / 0.62)), transparent 62%);
	pointer-events: none;
}

.slide--top-left,
.slide--top-right { --shade-dir: to bottom; }

.slide--dark {
	--shade: rgb(255 255 255 / 0.78);
	color: #1d1d1f;
}

.slide__text {
	position: absolute;
	display: flex;
	flex-direction: column;
	gap: 0.4em;
	max-width: min(36ch, 72%);
	margin: clamp(var(--gap-md), 3.2cqw, 48px);
}

.slide--top-left .slide__text     { top: 0;    left: 0; }
.slide--top-right .slide__text    { top: 0;    right: 0; align-items: flex-end; text-align: right; }
.slide--bottom-left .slide__text  { bottom: 0; left: 0; }
.slide--bottom-right .slide__text { bottom: 0; right: 0; align-items: flex-end; text-align: right; }

.slide__heading {
	font-family: var(--f-display);
	font-size: clamp(1.375rem, 2.6cqw, 2.25rem);
	line-height: var(--lh-heading);
}

.slide__body {
	font-size: clamp(0.9375rem, 1.3cqw, 1.125rem);
	line-height: 1.5;
}

/* Dots + play: a pill and a circle, centred under the slides. */
.slideshow__controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 14px;
	margin-top: var(--gap-lg);
	padding-inline: var(--gutter);
}

.slideshow__controls[hidden] { display: none; }

.slideshow__dots {
	display: flex;
	align-items: center;
	height: 56px;
	padding: 0 18px;
	border-radius: 999px;
	background-color: var(--c-chip);
}

.slideshow__dot {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	padding: 0 6px;
	border: 0;
	background: none;
	cursor: pointer;
}

.slideshow__dot span {
	position: relative;
	display: block;
	width: 8px;
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background-color: var(--c-dot);
	transition: width var(--t-fast), background-color var(--t-fast);
}

.slideshow__dot:hover span { background-color: var(--c-chip-ink); }

.slideshow__dot[aria-current] span {
	width: 48px;
	background-color: var(--c-chip-ink);
}

/* Playing: the current dot fills over --interval; the end of that fill is
   what moves the slideshow on (slideshow.js), so pausing the fill on hover
   pauses the clock too. */
.slideshow.is-playing .slideshow__dot[aria-current] span {
	background-color: var(--c-dot);
}

.slideshow.is-playing .slideshow__dot[aria-current] span::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background-color: var(--c-chip-ink);
	transform-origin: left;
	animation: slideshow-fill var(--interval, 6s) linear forwards;
}

.slideshow.is-held .slideshow__dot[aria-current] span::after {
	animation-play-state: paused;
}

@keyframes slideshow-fill {
	from { transform: scaleX(0); }
	to   { transform: scaleX(1); }
}

.slideshow__dot:focus-visible,
.slideshow__play:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 2px;
	border-radius: 999px;
}

.slideshow__play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: var(--c-chip);
	cursor: pointer;
	transition: background-color var(--t-fast);
}

.slideshow__play:hover { background-color: rgb(127 127 127 / 0.22); }

.slideshow__play svg {
	width: 24px;
	height: 24px;
	fill: var(--c-chip-ink);
}

.slideshow__icon-pause,
.slideshow.is-playing .slideshow__icon-play { display: none; }
.slideshow.is-playing .slideshow__icon-pause { display: block; }

/* Last on the page: clear the fixed footer badge. */
.slideshow:last-child {
	padding-bottom: calc(var(--gap-lg) * 1.5 + 80px);
}

@media (max-width: 781px) {
	.slide {
		aspect-ratio: 4 / 5;
		border-radius: 16px;
	}
	.slide__text {
		max-width: none;
		margin: var(--gap-md);
	}
	.slide--top-right .slide__text,
	.slide--bottom-right .slide__text { left: 0; }
	.slideshow__dots,
	.slideshow__dot { height: 48px; }
	.slideshow__play {
		width: 48px;
		height: 48px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.slide__img { transition: none; }
	.slide:hover .slide__img { transform: none; }
}


/* 12. Site chrome ----------------------------------------------------------- */

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--gutter);
	z-index: 1100;
	padding: 10px 16px;
	background-color: var(--c-brass);
	color: var(--c-graphite);
	font-weight: 700;
	text-decoration: none;
}

.skip-link:focus {
	top: 8px;
}

/* Peekaboo: the header sticks to the top, slides away while scrolling down
   and back the moment you scroll up (assets/js/menu.js toggles .is-tucked).
   Always shown at the top of the page and while the menu is open; tabbing
   into it brings it back. */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease;
	border-bottom: 1px solid #666;
	background-color: var(--c-graphite);
	color: var(--c-light);
}

.site-header__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 14px;
}

.site-header__brand {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.site-header__brand img {
	width: auto;
	height: 48px;
}

.site-header.is-tucked {
	transform: translateY(-100%);
}

.site-header.is-scrolled {
	box-shadow: 0 0 20px 0 rgb(14 16 18 / 1);
}

.site-header.is-tucked.is-scrolled {
	box-shadow: none;
}

/* The menu: a button in the header opens a side panel (assets/js/menu.js
   sets .menu-open on <html>). The same at every width. */
.menu-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 0 14px;
	border: 2px solid var(--c-brass);
	background: none;
	color: var(--c-brass);
	font-family: var(--f-display);
	font-size: 1.1875rem;
	font-weight: 700;
	letter-spacing: var(--track-btn);
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color var(--t-fast), color var(--t-fast);
}

.menu-btn:hover {
	background-color: var(--c-brass);
	color: var(--c-graphite);
}

.menu-btn__bars {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 22px;
}

.menu-btn__bars span {
	display: block;
	height: 2px;
	background-color: currentColor;
}

.menu {
	position: fixed;
	inset: 0;
	z-index: 1001;
	background-color: rgb(14 16 18 / 0.7);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--t-fast) ease, visibility 0s linear var(--t-fast);
}

.menu-open .menu {
	opacity: 1;
	visibility: visible;
	transition: opacity var(--t-fast) ease, visibility 0s;
}

.menu-open body {
	overflow: hidden;
}

.menu__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(420px, 100%);
	overflow-y: auto;
	border-left: 4px solid var(--c-brass);
	background-color: var(--c-graphite);
	transform: translateX(100%);
	transition: transform var(--t-fast) ease;
}

.menu-open .menu__panel {
	transform: none;
}

.menu__close {
	align-self: flex-end;
	display: flex;
	width: 48px;
	height: 48px;
	margin: 16px 16px 0 0;
	padding: 8px;
	border: 0;
	background: none;
	color: var(--c-light);
	cursor: pointer;
}

.menu__close svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.menu__close:hover {
	color: var(--c-brass);
}

.site-nav {
	display: flex;
	flex-direction: column;
	padding: 8px 40px 48px;
	font-family: var(--f-display);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
}

.site-nav a {
	padding: 12px 0;
	border-bottom: 1px dashed rgb(237 228 208 / 0.2);
	color: var(--c-light);
	text-decoration: none;
	transition: color var(--t-fast), padding-left var(--t-fast);
}

/* The last link is the call to tune in: brass. */
.site-nav a:last-child {
	border-bottom: 0;
	color: var(--c-brass);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	padding-left: 12px;
	color: var(--c-brass);
}

.site-footer {
	background-color: var(--c-black);
	color: var(--c-light-3);
	font-size: 0.9375rem;
}

.site-footer__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--gap-md);
	padding-block: 48px;
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.site-footer__brand img {
	width: auto;
	height: 40px;
}

.site-footer__brand p {
	margin: 0;
}

.site-footer__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 28px;
	letter-spacing: var(--track-btn);
	text-transform: uppercase;
}

.site-footer__nav a {
	padding: 10px 0;
	color: var(--c-brass);
}

.site-footer__nav a:hover {
	color: var(--c-light);
}


/* 13. Audio player ---------------------------------------------------------- */

.player {
	position: fixed;
	left: 0;
	bottom: -95px;
	z-index: 998;
	width: 100%;
	opacity: 0;
	pointer-events: none;
	transition: bottom var(--t-fast), opacity var(--t-fast);
	user-select: none;
}

.player.is-open {
	bottom: 40px;
	opacity: 1;
	pointer-events: auto;
}

.player__box {
	position: relative;
	width: calc(100% - 40px);
	max-width: 860px;
	margin: 0 auto;
}

.player__controls {
	position: absolute;
	top: -32px;
	right: 0;
	display: flex;
	align-items: center;
	padding: 5px;
	border-radius: 6px 6px 0 0;
	background-color: #000;
	box-shadow: 0 0 10px rgb(0 0 0 / 0.5);
}

.player__controls button {
	display: flex;
	padding: 4px 8px;
	border: 0;
	border-radius: 3px;
	background: none;
	cursor: pointer;
	transition: background-color var(--t-fast);
}

.player__controls button:hover,
.player__controls button:focus-visible {
	background-color: #323232;
}

.player__controls svg {
	width: 28px;
	height: 14px;
	fill: #efefef;
}

/* Plyr skin */
.player .plyr--audio .plyr__controls {
	border-radius: 6px 0 6px 6px;
	background-color: #000;
	box-shadow: 0 0 10px rgb(0 0 0 / 0.5);
}

.player .plyr__control,
.player .plyr__time {
	color: #fff;
}

.player .plyr__time {
	font-weight: 700;
}

.player .plyr--full-ui input[type="range"] {
	color: #f00;
}

.player .plyr--audio .plyr__control:hover,
.player .plyr--audio .plyr__control.plyr__tab-focus {
	background: #595959;
}

.player .plyr__menu,
.player .plyr__volume {
	display: none !important;
}

/* Restore button when the player is minimised */
.player-mini {
	position: fixed;
	right: -50px;
	bottom: 30px;
	z-index: 998;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: #000;
	box-shadow: 0 0 10px rgb(0 0 0 / 0.5);
	cursor: pointer;
	transition: right var(--t-slow), background-color var(--t-fast);
}

.player-mini.is-visible {
	right: 20px;
}

.player-mini:hover,
.player-mini:focus-visible {
	background-color: #666;
}

.player-mini svg {
	width: 32px;
	height: 32px;
	padding: 5px;
	fill: #fff;
}


/* 14. Motion ---------------------------------------------------------------- */

/* Elements marked .reveal fade in when they enter the viewport (js/effects.js).
   Without JS they're simply visible — the hidden state only applies once
   effects.js has added .js-reveal to <html>. */
.js-reveal .reveal {
	opacity: 0;
	transition: opacity var(--t-slow);
}

.js-reveal .reveal.is-visible {
	opacity: 1;
}

/* Page-to-page fade: a cross-document view transition. Both pages opt in
   (they share this stylesheet), so following a link cross-fades the old page
   into the new one. Browsers without support navigate as they always have;
   nobody who prefers reduced motion gets it. */
@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}

	::view-transition-old(root),
	::view-transition-new(root) {
		animation-duration: 0.4s;
		animation-timing-function: ease;
	}
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--t-fast: 0s;
		--t-slow: 0s;
	}
	html {
		scroll-behavior: auto;
	}
	.js-reveal .reveal {
		opacity: 1;
	}
}


/* 15. Ticker ---------------------------------------------------------------- */

.ticker {
	background-color: var(--c-graphite);
	color: var(--c-light);
}

.ticker__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 32px;
	max-width: var(--site-width);
	margin: 0 auto;
	padding: 14px var(--gutter);
	list-style: none;
	font-family: var(--f-display);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.ticker__list li {
	display: flex;
	align-items: center;
	gap: 32px;
}

.ticker__list li + li::before {
	content: "";
	color: var(--c-brass);
}

@media (max-width: 781px) {
	.ticker__list {
		flex-direction: column;
		align-items: flex-start;
	}
	.ticker__list li + li::before {
		display: none;
	}
}


/* Section head — eyebrow + condensed heading, a note to the right ------------ */

.sec-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 48px;
	margin-bottom: var(--gap-lg);
	padding-bottom: 20px;
	border-bottom: var(--border);
}

.sec-head__title {
	margin-top: 6px;
	font-size: var(--fs-h2);
}

.sec-head__note {
	max-width: 460px;
	margin: 0;
	color: var(--c-muted);
}

.eyebrow {
	margin: 0;
	color: var(--c-accent);
	font-size: var(--fs-sm);
	font-weight: 700;
	letter-spacing: var(--track-wide);
	text-transform: uppercase;
}

.eyebrow--sm {
	font-size: var(--fs-xs);
	letter-spacing: 0.22em;
}


/* 16. Projects register ------------------------------------------------------ */

.register {
	padding-block: var(--pad-section);
}

.register__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.unit {
	display: flex;
	flex-direction: column;
	border: var(--border);
	background-color: var(--c-paper-card);
	border-width: 1px;
	border-style: dashed;
	//box-shadow: var(--shadow);
}

.unit__plate {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-bottom: var(--border);
	background-color: var(--c-black);
}

.unit__loop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	filter: grayscale(1);
}

.unit__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgb(14 16 18 / 0) 40%, rgb(14 16 18 / 0.85) 100%);
}

.rivet {
	position: absolute;
	top: 10px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #E2D9C4, #6E6A60);
	display: none;
}

.rivet--l { left: 10px; }
.rivet--r { right: 10px; }

.unit__id {
	position: absolute;
	right: 24px;
	bottom: 14px;
	left: 24px;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	color: var(--c-light);
}

.unit__num {
	color: var(--c-brass);
	font-family: var(--f-stencil);
	font-size: 3.5rem;
	font-weight: 700;
	line-height: 1;
}

.unit__form {
	font-size: var(--fs-xs);
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.unit__body {
	display: flex;
	flex-grow: 1;
	flex-direction: column;
	gap: 16px;
	padding: 28px 32px 32px;
}

.unit__name {
	margin-top: 4px;
	font-size: 1.5rem;
	line-height: 1;
}

.unit__blurb {
	flex-grow: 1;
	margin: 0;
	color: var(--c-ink-2);
}

.unit__specs {
	margin: 0;
	border-top: 2px solid var(--c-graphite);
	font-size: 0.9375rem;
}

.unit__specs div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
}

.unit__specs div + div {
	border-top: 1px dashed var(--c-dash);
}

.unit__specs dt {
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.unit__specs dd {
	margin: 0;
	text-align: right;
	overflow-wrap: anywhere;
}

@media (max-width: 500px) {
	.unit__body {
		padding: 24px 20px 24px;
	}
}


/* 17. Feature row ------------------------------------------------------------ */

.feature {
	padding-block: var(--pad-section);
	background-color: var(--c-paper);
	color: var(--c-ink);
}

.feature--dark {
	--c-rule: var(--c-rule-inverse);
	background-color: var(--c-graphite);
	color: var(--c-light);
}

.feature--paper {
	background-color: var(--c-paper-dark);
}

.feature__cols {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap-lg);
}

/* Panels in a feature row are flexible columns, not the split row's measure. */
.feature .panel {
	flex: 1 1 380px;
	min-width: 0;
	padding: 0;
	background: none;
	color: inherit;
}

.feature .panel:first-child:not(:only-child) {
	flex-basis: 460px;
}

.feature .panel__inner {
	gap: 20px;
	max-width: none;
	margin: 0;
}

.feature .panel__inner > * {
	margin: 0;
}

.feature .heading {
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 0.92;
}

.feature--dark .eyebrow {
	color: var(--c-brass);
}

.feature--dark p {
	color: var(--c-light-3);
}

/* The first paragraph after the heading is the standfirst. */
.feature .heading + p {
	color: var(--c-light-2);
	font-size: 1.1875rem;
}

.feature:not(.feature--dark) .heading + p {
	color: var(--c-ink-2);
}

.feature .btn-row,
.feature .btn--inline {
	align-self: flex-start;
	margin-top: 8px;
}


/* 18. Reel tiles ------------------------------------------------------------- */

.reels {
	display: grid;
	grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.reel {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 150px;
	padding: 20px;
	border: 2px solid var(--c-brass);
}

.reel__mark {
	width: 36px;
	height: 36px;
	color: var(--c-brass);
}

.reel__label {
	font-family: var(--f-display);
	font-size: 1.625rem;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.reel__note {
	color: var(--c-light-3);
	font-size: var(--fs-sm);
	line-height: 1.45;
}

.feature:not(.feature--dark) .reel__note {
	color: var(--c-muted);
}

@media (max-width: 420px) {
	.reels {
		grid-template-columns: minmax(0, 1fr);
	}
}


/* 19. Plates ----------------------------------------------------------------- */

.plates {
	padding-block: var(--pad-section);
}

.plates .sec-head {
	margin-bottom: 40px;
}

.plates__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.plate {
	margin: 0;
	padding: 12px 12px 16px;
	background-color: var(--c-graphite);
	box-shadow: var(--shadow-soft);
}

.plate img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.plates--mono .plate img {
	filter: grayscale(1) contrast(1.05);
}

.plate figcaption {
	margin-top: 12px;
	color: var(--c-light-2);
	font-size: var(--fs-sm);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}


/* 20. Standing orders -------------------------------------------------------- */

.orders {
	padding-block: 88px;
	//border-block: var(--border);
	border-style: dashed;
	border-width: 2px 0 0 0;
	border-color: rgba(51, 51, 51, 0.348);
	background-color: var(--c-paper-dark);
}

.orders--light {
	background-color: var(--c-paper);
}

.orders--dark {
	--c-graphite-line: var(--c-brass);
	background-color: var(--c-graphite);
	color: var(--c-light);
}

/* The design runs the heading straight into the orders, without the section rule. */
.orders .sec-head {
	display: block;
	margin-bottom: 40px;
	padding-bottom: 0;
	border-bottom: 0;
}

.orders .sec-head__note {
	margin-top: 16px;
}

.orders__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.order {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 18px;
	border-top: 6px solid var(--c-graphite-line, var(--c-graphite));
}

.order__no {
	margin: 0;
	color: var(--c-accent);
	font-family: var(--f-stencil);
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: 0.2em;
}

.orders--dark .order__no {
	color: var(--c-brass);
}

.order__title {
	font-size: 2rem;
	line-height: 1.05;
}

.order__body {
	margin: 0;
	color: var(--c-ink-2);
}

.orders--dark .order__body {
	color: var(--c-light-3);
}


/* 21. Theme overrides -------------------------------------------------------
   The generic blocks (sections 6–11e) keep their structure; these put them in
   this palette and type. */

/* Buttons: the design's slab buttons. Solid accent; .btn--outline on dark;
   .btn--dark on paper cards. The list layout keeps full-width rows. */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	width: auto;
	padding: 0 28px;
	border: 2px solid var(--c-accent);
	border-radius: 0;
	background-color: var(--c-accent);
	color: var(--c-paper-card);
	font-family: var(--f-display);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: var(--track-btn);
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.btn:hover,
.btn:focus-visible {
	border-color: var(--c-accent-dark);
	background-color: var(--c-accent-dark);
	color: var(--c-paper-card);
}

.btn--outline {
	border-color: var(--c-light);
	background-color: rgb(14 16 18 / 0.4);
	color: var(--c-light);
}

.btn--outline:hover,
.btn--outline:focus-visible {
	border-color: var(--c-light);
	background-color: var(--c-light);
	color: var(--c-black);
}

.btn--dark {
	min-height: 46px;
	padding: 0 20px;
	border-color: var(--c-graphite);
	background-color: var(--c-graphite);
	color: var(--c-light);
	font-size: 1.125rem;
}

.btn--dark:hover,
.btn--dark:focus-visible {
	border-color: var(--c-accent);
	background-color: var(--c-accent);
	color: var(--c-paper-card);
}

.btn-list .btn {
	display: flex;
	width: 100%;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* Headings in panels and bands: the condensed display face. */
.heading {
	margin-bottom: var(--gap-sm);
	font-size: clamp(2rem, 4vw, 3rem);
}

.rule {
	border-bottom-width: 2px;
	border-style: dashed;
	border-color: #999;
}

/* Split rows: the panel is paper, the measure stays. */
.panel {
	background-color: var(--c-paper);
}

.band--dark {
	background-color: var(--c-graphite);
}

.cover {
	padding-bottom: 1em;   /* no fixed footer badge to clear in this theme */
}

.band:last-child {
	padding-bottom: calc(var(--gap-lg) * 2);
}

.media-frame {
	border-radius: 0;
	box-shadow: var(--shadow-soft);
}

@media (max-width: 781px) {
	:root {
		--pad-section: 64px;
		--gutter: 16px;
	}
}
