/*
Theme Name: HSLR Site
Theme URI: https://hslr.com.au
Author: HSLR
Description: Custom theme for HSLR — independent production house. Requires Advanced Custom Fields PRO. Work (projects), Press, Services, About and Contact with Overview / Projects / List views, HSLR TV reel and light/dark mode.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: hslr
*/

/* ---------- GT America (self-hosted, Media Library) ---------- */
@font-face {
	font-family: "GT America Standard";
	src: url("/wp-content/uploads/2026/12/GT-America-Standard-Regular.woff2") format("woff2"), url("/wp-content/uploads/2026/12/GT-America-Standard-Regular.woff") format("woff");
	font-weight: 100 450;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "GT America Standard";
	src: url("/wp-content/uploads/2026/12/GT-America-Standard-Medium.woff2") format("woff2"), url("/wp-content/uploads/2026/12/GT-America-Standard-Medium.woff") format("woff");
	font-weight: 451 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "GT America Condensed";
	src: url("/wp-content/uploads/2026/12/GT-America-Condensed-Medium.woff2") format("woff2"), url("/wp-content/uploads/2026/12/GT-America-Condensed-Medium.woff") format("woff");
	font-weight: 100 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "GT America Condensed";
	src: url("/wp-content/uploads/2026/12/GT-America-Condensed-Bold.woff2") format("woff2"), url("/wp-content/uploads/2026/12/GT-America-Condensed-Bold.woff") format("woff");
	font-weight: 601 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "GT America Mono";
	src: url("/wp-content/uploads/2026/12/GT-America-Mono-Medium.woff2") format("woff2"), url("/wp-content/uploads/2026/12/GT-America-Mono-Medium.woff") format("woff");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}



/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--bg: #111111;
	--fg: #f2f2f0;
	--muted: #8a8a88;
	--line: #2a2a2a;
	--surface: #262626;
	--surface-2: #1b1b1b;
	--inv-bg: #ffffff;
	--inv-fg: #111111;
	--accent: #ff49e2;
	--accent-fg: #111111;
	--plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11'%3E%3Cpath d='M5.5 0v11M0 5.5h11' stroke='%23555' stroke-width='1'/%3E%3C/svg%3E");

	--sans: "GT America Standard", "Helvetica Neue", Arial, sans-serif;
	--cond: "GT America Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
	--mono: "GT America Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--serif: Georgia, "Times New Roman", serif;

	--gutter: 16px;
	--side: 25%;
	--hdr: 64px;
	color-scheme: dark;
}

:root[data-theme="light"] {
	--bg: #f3f3f0;
	--fg: #111111;
	--muted: #6d6d6a;
	--line: #d9d9d5;
	--surface: #e2e2de;
	--surface-2: #eaeae6;
	--inv-bg: #111111;
	--inv-fg: #ffffff;
	--plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11'%3E%3Cpath d='M5.5 0v11M0 5.5h11' stroke='%23aaa' stroke-width='1'/%3E%3C/svg%3E");
	color-scheme: light;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background-color .25s, color .25s;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul { margin: 0; padding: 0; list-style: none; }
mark { background: var(--accent); color: var(--accent-fg); padding: 0 3px; }
::selection { background: var(--accent); color: var(--accent-fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 100; background: var(--inv-bg); color: var(--inv-fg); padding: 8px; }

/* ==========================================================================
   Type
   ========================================================================== */
.label {
	display: block;
	font-family: var(--mono);
	font-size: 11px;
	line-height: 1.5;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
}
.h-cond {
	display: block;
	font-family: var(--cond);
	font-weight: 700;
	font-size: clamp(36px, 3.6vw, 60px);
	line-height: .95;
	letter-spacing: -.015em;
}
.h-xl { font-size: clamp(44px, 4.4vw, 72px); }
.h-lg {
	font-size: clamp(24px, 2.4vw, 44px);
	line-height: 1.18;
	font-weight: 500;
	letter-spacing: -.01em;
}
.h-md { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.25; font-weight: 500; }
.h-xl-sans { font-size: clamp(30px, 3vw, 46px); line-height: 1.12; font-weight: 500; letter-spacing: -.015em; }
.small, .small p { font-size: 13px; line-height: 1.55; }
.strong { font-weight: 600; }

/* ==========================================================================
   Pills
   ========================================================================== */
.pills { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.pill {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	min-height: 24px;
	padding: 4px 9px;
	background: var(--surface);
	color: var(--fg);
	font-family: var(--mono);
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: .12em;
	line-height: 1.4;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color .15s, color .15s;
}
a.pill:hover, button.pill:hover { background: var(--fg); color: var(--bg); }
.pill--light { background: var(--inv-bg); color: var(--inv-fg); }
.pill--dark { background: #111; color: #fff; }
.pill .count { color: var(--muted); font-weight: 400; }
.pill--light .count { color: #8a8a8a; }
.count-strong { color: inherit; font-weight: 600; }
.pill.is-active, .pill.is-active:hover { background: var(--accent); color: var(--accent-fg); }
.pill.is-active .count { color: rgba(0, 0, 0, .45); }
.pill.is-on, .pill.is-on:hover { background: var(--inv-bg); color: var(--inv-fg); }
.pill-gap { width: 8px; }
.tag {
	display: inline-block;
	padding: 3px 6px;
	background: var(--surface);
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 16px; }
.num-chip {
	display: inline-grid;
	place-items: center;
	min-width: 18px;
	height: 16px;
	padding: 0 4px;
	background: var(--inv-bg);
	color: var(--inv-fg);
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: .05em;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding: 8px 8px 0;
	background: var(--bg);
}
.admin-bar .site-header { top: 32px; }
.site-header.is-overlay {
	position: fixed;
	left: 0;
	right: 0;
	background: transparent;
}
.hdr-row { display: flex; align-items: flex-start; gap: 20px; }
.hdr-row + .hdr-row { margin-top: 2px; }
.hdr-row.pills { gap: 2px; }
.site-header { padding-bottom: 8px; }
.logo {
	font-family: var(--cond);
	font-weight: 800;
	font-size: 40px;
	line-height: 30px;
	height: 30px;
	letter-spacing: -.02em;
	color: var(--fg);
}
.is-overlay .logo { color: #fff; mix-blend-mode: difference; }
.hdr-right { margin-left: auto; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.section { padding: 0 var(--gutter); margin: 120px 0; }
.section--top { margin-top: 56px; }
.split {
	display: grid;
	grid-template-columns: var(--side) 1fr;
	gap: 0 var(--gutter);
}
.split > .label { padding-top: 6px; }
.label.label--gap { margin-bottom: 20px; }
.statement { max-width: 32ch; margin-bottom: 20px; }
.split .statement { max-width: 760px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; font-size: 14px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cols-3 .h-md { margin: 4px 0 14px; font-size: clamp(20px, 1.6vw, 26px); }
.empty { padding: 40px var(--gutter); color: var(--muted); }
.prose { max-width: 720px; }
.prose a { text-decoration: underline; }
.post-item { margin-bottom: 40px; }

/* Horizontal image strip */
.strip-media {
	display: flex;
	height: clamp(140px, 12.5vw, 260px);
	overflow: hidden;
}
.strip-media img {
	flex: none;
	height: 100%;
	width: auto;
	max-width: none;
	object-fit: cover;
}

/* ==========================================================================
   Work
   ========================================================================== */
.work { padding: 24px 8px 80px; }
.work-overview { padding-bottom: 24px; }
.work > section { display: none; }
.work[data-view="overview"] .work-overview,
.work[data-view="projects"] .work-projects,
.work[data-view="list"] .work-list { display: block; }
.work[data-view="overview"] .work-overview { display: grid; }
.work:not([data-view]) .work-overview,
.work[data-view=""] .work-overview { display: grid; }
.js-item.is-hidden { display: none !important; }

/* Overview */
.work-overview {
	--cols: 5;
	grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
}
.ov-cell {
	position: relative;
	aspect-ratio: 1 / .95;
	padding: 6px;
	display: flex;
	flex-direction: column;
}
.ov-cell::before, .ov-cell::after {
	content: "";
	position: absolute;
	top: -5px;
	width: 11px;
	height: 11px;
	background: var(--plus) no-repeat;
	pointer-events: none;
}
.ov-cell::before { left: -5px; }
.ov-cell::after { right: -6px; }
.ov-media {
	position: relative;
	flex: 0 0 68%;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: 0;
}
.ov-media .ov-img, .ov-media .ph {
	width: 64%;
	max-height: 100%;
	object-fit: contain;
	transition: width .3s ease;
}
.ov-media .ph { aspect-ratio: 16/9; background: var(--surface); }
.ov-media .ov-hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; pointer-events: none; }
.ov-cap { padding: 14px 0 0 18%; }
.ov-cap .label { margin-bottom: 2px; }
.ov-title { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; padding-right: 10%; }
.chip {
	position: absolute;
	left: 0;
	bottom: 0;
	display: none;
	padding: 4px 7px;
	background: var(--accent);
	color: var(--accent-fg);
	font-family: var(--mono);
	font-size: 9.5px;
	letter-spacing: .12em;
	line-height: 1.4;
	text-transform: uppercase;
}
/* Overview hover: see "Work grid motion" at the end of the file */
.work-overview.is-dense .ov-cap { display: none; }
.work-overview.is-dense .ov-media { flex: 1; align-items: center; }
.work-overview.is-dense .ov-media .ov-img { width: 52%; }

/* Projects */
.strip-row {
	display: grid;
	grid-template-columns: var(--side) 1fr;
	gap: 0 var(--gutter);
	margin-bottom: 96px;
	padding: 0 8px;
}
.work-projects .strip-row:first-child { margin-top: 32px; }
.strip-info .label:first-child { margin-bottom: 6px; }
.strip-info .h-cond { margin-bottom: 8px; }
.strip-sub { display: block; font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.strip-info:hover .h-cond { color: var(--accent); }
.strip-row.is-compact { margin-bottom: 40px; }
.strip-row.is-compact .h-cond { font-size: clamp(28px, 2.4vw, 40px); }
.strip-row.is-compact .strip-media { height: clamp(120px, 12vw, 180px); }

/* Tables (list + press) */
.press { padding: 0 8px; }
.tbl { position: relative; }
.tbl-head, .tbl-row {
	display: grid;
	grid-template-columns: 80px 1.35fr 1.75fr 1.3fr .7fr;
	gap: 0 16px;
	align-items: baseline;
	padding: 8px 8px;
}
.tbl-head { padding-top: 32px; padding-bottom: 14px; }
.tbl-row { font-size: 16px; line-height: 1.4; transition: background-color .1s; }
.tbl-row .num {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .1em;
	color: var(--muted);
	justify-self: start;
	padding: 1px 4px;
	margin-left: -4px;
}
.tbl-row:hover { background: var(--surface); }
.tbl-row:hover .num { background: var(--accent); color: var(--accent-fg); }
.tbl--press .tbl-head, .tbl--press .tbl-row { grid-template-columns: 80px 144px 280px 1fr 300px 24px; }
.tbl--press .strong { font-weight: 600; }
.arrow { justify-self: end; }
.hover-preview {
	position: fixed;
	right: 16px;
	top: 0;
	width: 264px;
	z-index: 30;
	pointer-events: none;
	opacity: 0;
	transition: opacity .15s;
}
.hover-preview.is-on { opacity: 1; }
.hover-preview img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ==========================================================================
   Case study
   ========================================================================== */
.case {
	display: grid;
	grid-template-columns: var(--side) 1fr;
	gap: 0 var(--gutter);
	padding: 32px var(--gutter) 0 8px;
}
.case-sticky { position: sticky; top: calc(var(--hdr) + 16px); padding-left: 8px; }
.case-info .h-cond { margin: 6px 0 8px; }
.case-sub { font-size: 17px; font-weight: 500; margin-bottom: 18px; }
.case-intro { color: var(--muted); font-size: 13px; max-width: 34ch; }
.meta { display: grid; grid-template-columns: 96px 1fr; gap: 6px 8px; margin: 32px 0; font-size: 13px; font-weight: 500; }
.meta dt { padding-top: 3px; }
.meta dd { margin: 0; }
.case-press a { display: block; margin: 8px 0; font-size: 13px; font-weight: 500; }
.case-press a:hover span:last-child { color: var(--accent); }
.case-body > * { width: 100%; }
.case-hero img, .case-hero video { width: 100%; height: auto; }
.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	background: var(--surface);
	padding: 24px 32px 20px;
}
.stat-num { display: block; font-size: clamp(32px, 3.6vw, 56px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.img-row { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.img-cell { min-width: 0; }
.img-row img, .img-row video { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.img-row[style*="--n:1"] img, .img-row[style*="--n:1"] video { aspect-ratio: 16 / 9; }
.img-row[style*="--n:2"] img, .img-row[style*="--n:2"] video { aspect-ratio: 4 / 5; }
.embed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.img-row .embed { height: 100%; }
.img-full img, .img-full video { width: 100%; }
.img-full iframe { width: 100%; aspect-ratio: 16/9; height: auto; display: block; }
/* --bg / --fg are set inline per panel */
.stat-panel {
	background: var(--bg);
	color: var(--fg);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: clamp(48px, 9vw, 120px) 24px;
	text-align: center;
}
.sp-eyebrow { font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: clamp(13px, 1.4vw, 20px); }
.sp-num { font-size: clamp(88px, 15vw, 220px); line-height: .9; font-weight: 400; }
.stat-panel.is-serif .sp-num { font-family: var(--serif); }
.sp-num sup { font-size: .45em; vertical-align: top; position: relative; top: -.1em; }
.case-text { padding: 48px 0; max-width: 720px; }
.case-text .h-md { margin-bottom: 12px; }
.related { margin-top: 96px; padding: 0 0 0 0; }
.related-head { display: flex; justify-content: space-between; align-items: center; padding: 0 16px; margin-bottom: 32px; }

/* ==========================================================================
   Home — HSLR TV
   ========================================================================== */
.tv { position: relative; background: #000; color: #fff; }
.tv-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; transition: height .35s ease; }
.tv.show-player .tv-stage { height: calc(100svh - 110px); }
.tv-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.tv-slide.is-on { opacity: 1; }
.tv-slide img, .tv-slide video { width: 100%; height: 100%; object-fit: cover; }
.tv-bar {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 10px;
	display: flex;
	justify-content: space-between;
	gap: 8px;
	z-index: 3;
}
.tv .pill { background: rgba(255, 255, 255, .92); color: #111; }
.tv .pill .count { color: #888; }
.tv .pill--dark { background: #111; color: #fff; }
.tv a.pill:hover, .tv button.pill:hover { background: var(--accent); color: #111; }
.tv-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; }
.tv-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.tv-player { display: none; background: var(--bg); }
.tv.show-player .tv-player { display: block; }
.tv-thumbs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.tv-thumbs::-webkit-scrollbar { display: none; }
.tv-thumb { flex: 0 0 auto; width: 104px; height: 64px; opacity: .55; position: relative; }
.tv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tv-thumb.is-on { opacity: 1; outline: 2px solid var(--accent); outline-offset: -2px; }
.tv-thumb:hover { opacity: 1; }
.tv-meta { display: flex; justify-content: space-between; padding: 10px 8px; }

/* Home — categories */
.cats {
	position: relative;
	display: flex;
	height: clamp(420px, 44vw, 640px);
	overflow: hidden;
}
.cats-label { position: absolute; top: 12px; left: 8px; z-index: 3; }
.cat {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
	transition: flex-grow .55s cubic-bezier(.2, .7, .2, 1);
	background: var(--surface);
}
.cat.is-on { flex-grow: 3.6; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.82); transition: filter .4s; }
.cat.is-on img { filter: none; }
.cat::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); pointer-events: none; }
.cat-name { position: absolute; left: 8px; bottom: 6px; z-index: 2; color: #fff; }
.cat-name .num-chip { background: #fff; color: #111; margin-bottom: 6px; }
.cat.is-on .num-chip { background: var(--accent); }
.cat-name .h-cond { font-size: clamp(20px, 1.7vw, 28px); transition: font-size .4s; white-space: nowrap; }
.cat.is-on .cat-name .h-cond { font-size: clamp(36px, 4vw, 64px); }
.cat-see { position: absolute; top: 12px; right: 12px; z-index: 2; opacity: 0; transition: opacity .3s; }
.cat.is-on .cat-see { opacity: 1; }

/* Crew image (drag scroll) */
.crew-wide {
	position: relative;
	overflow-x: auto;
	cursor: grab;
	scrollbar-width: none;
	background: #e6e6e6;
}
.crew-wide::-webkit-scrollbar { display: none; }
.crew-wide.is-dragging { cursor: grabbing; }
.crew-wide img { height: clamp(220px, 28vw, 420px); width: auto; max-width: none; user-select: none; -webkit-user-drag: none; }
.drag-hint { position: sticky; float: right; right: 8px; bottom: 8px; margin-top: -32px; }
section.split .crew-wide { min-width: 0; }

/* ==========================================================================
   Services
   ========================================================================== */
.svc {
	display: grid;
	grid-template-columns: var(--side) 1fr;
	gap: 0 var(--gutter);
	padding: 0 var(--gutter);
	margin: 0 0 96px;
	scroll-margin-top: 80px;
}
.svc-info .h-cond { margin: 6px 0 16px; }
.svc-info p { font-size: 13px; max-width: 42ch; }
.svc-info .label + .svc-work, .svc-info p + .label { margin-top: 24px; }
.svc-work { margin: 6px 0 16px; font-size: 13px; font-weight: 500; }
.svc-work li { margin: 2px 0; }
.svc-work a { padding: 0 3px; margin-left: -3px; }
.svc-work a:hover { background: var(--accent); color: var(--accent-fg); }
.svc-media { height: clamp(200px, 21vw, 340px); }
.breakdown li { margin: 0 0 6px; }

/* About */
.studio-media { height: clamp(220px, 28vw, 420px); }
.roster { position: relative; max-width: 900px; }
.roster-item { transition: background-color .15s; }
.roster-item:hover, .roster-item.is-on { background: var(--accent); color: var(--accent-fg); }
.roster-preview {
	position: absolute;
	width: 160px;
	pointer-events: none;
	opacity: 0;
	transition: opacity .15s;
	z-index: 5;
}
.roster-preview.is-on { opacity: 1; }
.roster-preview img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.roster-preview .pill { font-size: 8.5px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 var(--gutter);
	padding: 56px var(--gutter) 100px;
}
.contact-info .h-xl-sans { margin: 6px 0 0; max-width: 18ch; }
.contact-list { display: grid; grid-template-columns: 120px 1fr; gap: 14px 0; margin: 160px 0 40px; align-items: baseline; }
.contact-list dd { margin: 0; font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; }
.contact-list dd a:hover { color: var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 10px; }
.field { display: block; background: var(--surface); padding: 10px 12px 12px; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .15s; }
.field:focus-within { outline-color: var(--accent); }
.field input, .field textarea {
	display: block;
	width: 100%;
	margin-top: 4px;
	background: transparent;
	border: 0;
	color: var(--fg);
	font: 500 17px/1.4 var(--sans);
	outline: none;
	resize: vertical;
}
.field ::placeholder { color: var(--muted); }
.field--full { grid-column: 1 / -1; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; padding-top: 8px; }
.hp { position: absolute; left: -9999px; }
.notice { background: var(--surface); padding: 12px; margin: 10px 0 0; border-left: 3px solid var(--accent); }
.notice.is-error { border-color: #ff5a5a; }
.map { height: 340px; margin-top: 80px; background: var(--surface-2); z-index: 1; }
.map .leaflet-container, .map.leaflet-container { background: var(--surface-2); font-family: var(--mono); }
.map-pin { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.map-pin i { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 7px rgba(255, 73, 226, .3); flex: none; }
.map-pin span { background: var(--accent); color: #111; font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 8px; }
.leaflet-control-attribution { font-size: 8px !important; background: transparent !important; color: var(--muted) !important; text-transform: uppercase; letter-spacing: .1em; }
.leaflet-control-attribution a { color: var(--muted) !important; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-cta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 72px var(--gutter) 96px;
}
.footer-cols {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 24px var(--gutter);
	padding: 0 var(--gutter) 80px;
	font-size: 13px;
	font-weight: 500;
}
.footer-cols .label { margin-bottom: 8px; }
.footer-cols li { margin: 2px 0; }
.footer-cols a:hover { color: var(--accent); }
.footer-bar {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 8px;
}
.footer-bar.is-fixed { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; pointer-events: none; }
.footer-bar.is-fixed .pills { pointer-events: auto; }
body:has(.footer-bar.is-fixed) .site-main { padding-bottom: 56px; }
.js-theme-toggle [data-mode] { color: var(--muted); }
:root:not([data-theme="light"]) .js-theme-toggle [data-mode="dark"],
:root[data-theme="light"] .js-theme-toggle [data-mode="light"] { color: var(--fg); font-weight: 600; }
.js-theme-toggle:hover [data-mode] { color: inherit; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	:root { --side: 30%; }
	.tbl--press .tbl-head, .tbl--press .tbl-row { grid-template-columns: 60px 110px 180px 1fr 140px 20px; }
	.footer-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
	:root { --gutter: 12px; }
	body { font-size: 14px; }
	.hide-sm { display: none !important; }
	.hdr-row { flex-wrap: wrap; gap: 8px 12px; }
	.hdr-right { margin-left: 0; width: 100%; }
	.site-header.is-overlay .hdr-right { width: auto; margin-left: auto; }
	.logo { font-size: 32px; }
	.split, .strip-row, .case, .svc { grid-template-columns: 1fr; }
	.split > .label { margin-bottom: 12px; }
	.section { margin: 72px 0; }
	.section--top { margin-top: 32px; }
	.cols-2, .cols-3 { grid-template-columns: 1fr; gap: 24px; }
	.strip-row { margin-bottom: 56px; }
	.strip-info { margin-bottom: 12px; }
	.case { padding-right: 0; padding-left: 0; }
	.case-sticky { position: static; padding: 0 12px 24px; }
	.svc-info { margin-bottom: 16px; }
	.tbl-head, .tbl-row { grid-template-columns: 34px 1fr 1.2fr; gap: 0 10px; font-size: 14px; }
	.tbl--press .tbl-head, .tbl--press .tbl-row { grid-template-columns: 34px 1fr 2fr 16px; }
	.hover-preview { display: none; }
	.work-overview { --cols: 3; }
	.ov-cap { padding-left: 6%; }
	.ov-media img { width: 86%; }
	.ov-title { font-size: 12px; }
	.cats { display: grid; grid-template-columns: repeat(3, 1fr); height: auto; }
	.cat { aspect-ratio: 1; }
	.cat .cat-name .h-cond, .cat.is-on .cat-name .h-cond { font-size: 20px; }
	.cat-see { display: none; }
	.cats-label { position: static; grid-column: 1 / -1; justify-self: start; margin: 0 0 8px 8px; }
	.tv-bar { flex-direction: column; align-items: flex-start; }
	.contact { grid-template-columns: 1fr; gap: 48px; padding-top: 32px; }
	.contact-list { margin: 48px 0 24px; grid-template-columns: 80px 1fr; }
	.form-grid { grid-template-columns: 1fr; }
	.footer-cta { flex-direction: column; align-items: flex-start; padding-top: 48px; }
	.footer-cols { grid-template-columns: 1fr 1fr; }
	.related-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Contact map: static image + animated pin ---------- */
.map--static { position: relative; overflow: hidden; }
.map-stage { position: absolute; top: 0; left: 0; }
.map-stage img { display: block; width: 100%; height: 100%; }
[data-theme="light"] .map-stage img { filter: invert(1) hue-rotate(180deg); }
.map--static .map-pin { position: absolute; width: 0; height: 0; display: block; }
.map--static .map-pin i,
.map--static .map-pin b { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%) scale(0); }
.map--static .map-pin i { width: 16px; height: 16px; background: var(--accent); box-shadow: none; z-index: 1; }
.map--static .map-pin b { width: 42px; height: 42px; background: rgba(255, 73, 226, .3); }
.map--static .map-pin span { position: absolute; left: 28px; top: 0; font-size: 11px; padding: 8px 10px; opacity: 0; transform: translate(-8px, -50%); clip-path: inset(0 100% 0 0); }
.map--static.is-visible .map-pin i { animation: pin-in .5s cubic-bezier(.34, 1.56, .64, 1) forwards; }
.map--static.is-visible .map-pin b { animation: pin-in .5s .1s ease-out forwards, pin-pulse 2.6s 1.1s ease-out infinite; }
.map--static.is-visible .map-pin span { animation: pin-label .45s .35s ease-out forwards; }
@keyframes pin-in { to { transform: translate(-50%, -50%) scale(1); } }
@keyframes pin-pulse { 0% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(2.1); opacity: 0; } }
@keyframes pin-label { to { opacity: 1; transform: translate(0, -50%); clip-path: inset(0 0 0 0); } }
.map--static .map-pin a { color: inherit; text-decoration: none; }
.map--static .map-pin a span::after { content: ' \2197'; }
.map--static .map-pin a span { transition: background-color .2s ease, color .2s ease; }
.map--static .map-pin a:hover span, .map--static .map-pin a:focus-visible span { background: #fff; color: #111; }
.map--static .map-pin a:focus-visible { outline: none; }
.map--static .map-pin a:focus-visible span { outline: 2px solid var(--accent); outline-offset: 2px; }
.map-credit { position: absolute; left: 10px; bottom: 8px; font: 8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
    .map--static .map-pin i, .map--static .map-pin b { animation: none !important; transform: translate(-50%, -50%) scale(1); }
    .map--static .map-pin span { animation: none !important; opacity: 1; transform: translate(0, -50%); clip-path: none; }
}

/* About – looping drag strips */
.js-loop.is-loop { position: relative; display: block; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.js-loop.is-dragging { cursor: grabbing; }
.crew-wide.is-loop { height: clamp(220px, 28vw, 420px); }
.js-loop .loop-track { display: flex; width: max-content; height: 100%; will-change: transform; }
.js-loop .loop-track > * { flex: none; }
.js-loop .loop-track img { height: 100%; width: auto; max-width: none; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.js-loop > .drag-hint { position: absolute; right: 8px; bottom: 8px; float: none; margin: 0; z-index: 2; pointer-events: none; }

/* ==========================================================================
   Amends — Nov 2026
   ========================================================================== */

/* Bigger main nav */
.site-header > .hdr-row:first-child { align-items: center; }
.main-nav .pill { min-height: 24px; }

/* Work filters line up under the nav (offset set by main.js) */
.hdr-sub { padding-left: max(0px, calc(var(--nav-x, 8px) - 8px)); }

/* Packages dropdown */
.nav-drop { position: relative; }
.nav-drop .caret { display: inline-block; width: 6px; height: 6px; margin-left: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.drop-menu { position: absolute; top: 100%; left: 0; z-index: 60; display: none; flex-direction: column; gap: 2px; min-width: 240px; padding-top: 2px; }
.drop-menu .pill { justify-content: space-between; min-height: 24px; }
.drop-menu .pill.is-on-sub { background: var(--accent); color: var(--accent-fg); }
.nav-drop.is-open .drop-menu { display: flex; }
.nav-drop.is-open > .pill { background: var(--accent); color: var(--accent-fg); }
.nav-drop.is-open .caret { transform: translateY(1px) rotate(-135deg); }
@media (hover: hover) {
	.nav-drop:hover .drop-menu { display: flex; }
	.nav-drop:hover > .pill { background: var(--accent); color: var(--accent-fg); }
	.nav-drop:hover .caret { transform: translateY(1px) rotate(-135deg); }
}

/* Home — more breathing room around the statements */
.home .site-main > .split.section { margin: 160px 0; }

/* About */
.about-intro { max-width: 960px; margin-top: 36px; font-size: 15px; line-height: 1.6; }
.about-intro p { display: inline; margin: 0; }
.about-intro p + p::before { content: " "; }
.wwd-reel { position: relative; min-height: 220px; background: var(--surface); overflow: hidden; }
.wwd-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Case study — stats: no panel, bold condensed numbers */
.stats { background: none; padding: 32px 0 24px; }
.stat-num { font-family: var(--cond); font-weight: 700; font-size: clamp(40px, 4.4vw, 72px); letter-spacing: -.01em; line-height: 1; margin-bottom: 6px; }

/* Case study — rows share one height and each item keeps its own shape:
   no cropping, no gaps, videos included (--ar set per item) */
.img-row { display: flex; }
.img-row .img-cell { position: relative; flex: var(--ar, .75) 1 0%; aspect-ratio: var(--ar, .75); overflow: hidden; }
.img-row .img-cell > img,
.img-row .img-cell > video,
.img-row .img-cell > .embed { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.embed { aspect-ratio: var(--ar, 16 / 9); }
.img-row .embed { background: transparent; }

/* Packages (For Brands / For Agencies) */
.pkg {
	display: grid;
	grid-template-columns: var(--side) 1fr;
	gap: 0 var(--gutter);
	padding: 0 var(--gutter);
	margin: 0 0 120px;
	scroll-margin-top: 90px;
}
.pkg-info .h-cond { margin: 6px 0 10px; }
.pkg-price { font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; margin-bottom: 12px; }
.pkg-text { font-size: 13px; max-width: 42ch; }
.pkg-info p + .label { margin-top: 20px; }
.pkg-info .label + ul { margin-top: 6px; }
.pkg-list { margin: 6px 0 16px; font-size: 13px; font-weight: 500; }
.pkg-list li { margin: 2px 0; }
.pkg-info > .pill { margin-top: 8px; }
.pkg-media { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: clamp(220px, 23vw, 440px); }
.pkg-img { min-width: 0; background: var(--surface); overflow: hidden; }
.pkg-img:nth-child(even) { background: var(--surface-2); }
.pkg-img img { width: 100%; height: 100%; object-fit: cover; }

/* About headline — a touch larger */
.page-template-templatesabout-php .section--top .statement { font-size: clamp(28px, 2.8vw, 52px); max-width: 900px; }

@media (max-width: 760px) {
	.main-nav .pill { min-height: 28px; padding: 5px 9px; font-size: 11px; }
	.hdr-sub { padding-left: 0; }
	.home .site-main > .split.section { margin: 96px 0; }
	.pkg { grid-template-columns: 1fr; margin-bottom: 72px; }
	.pkg-info { margin-bottom: 16px; }
	.pkg-media { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; }
	.pkg-img { aspect-ratio: 3 / 4; }
}

/* About — client logos */
.roster--logos { display: flex; flex-wrap: wrap; align-items: center; gap: 44px 64px; max-width: 1100px; }
.client-logo { display: inline-flex; align-items: center; height: 40px; color: var(--fg); transition: opacity .15s; }
.client-logo img, .client-logo svg { display: block; height: 100%; width: auto; max-width: 190px; object-fit: contain; }
.client-logo--pancake-parlour { height: 84px; }
.client-logo--dr-golly { height: 52px; }
.client-logo--san-churro { height: 70px; }
.client-logo--hairhouse { height: 30px; }
.client-logo.is-text { height: auto; font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; }
.client-logo img.is-raw { filter: brightness(0) invert(1); }
:root[data-theme="light"] .client-logo img { filter: brightness(0); }
.roster--logos .roster-item:hover, .roster--logos .roster-item.is-on { background: none; color: var(--fg); }
.roster--logos a.roster-item:hover { opacity: 1; }
@media (max-width: 760px) {
	.roster--logos { gap: 28px 36px; }
	.client-logo { height: 30px; }
	.client-logo--pancake-parlour { height: 48px; }
}

/* Stacked / tall client logos added Dec 2026 */
.client-logo--bondi-sands { height: 64px; }
.client-logo--the-reject-shop { height: 60px; }
.client-logo--qv { height: 44px; }
@media (max-width: 760px) {
	.client-logo--bondi-sands { height: 48px; }
	.client-logo--the-reject-shop { height: 46px; }
	.client-logo--qv { height: 34px; }
}

/* Client logos: two rows (5 + 4) */
.roster--logos { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; justify-items: start; align-items: center; gap: 48px 32px; max-width: 1100px; }
.client-logo img, .client-logo svg { max-width: min(190px, 100%); }
@media (max-width: 1100px) {
	.roster--logos { gap: 36px 24px; }
	.client-logo { height: 32px; }
	.client-logo--pancake-parlour { height: 52px; }
	.client-logo--san-churro { height: 56px; }
	.client-logo--hairhouse { height: 26px; }
}
@media (max-width: 760px) {
	.roster--logos { grid-template-columns: repeat(3, auto); gap: 32px 20px; }
}

/* Client logos: optical balance */
.client-logo--san-churro { height: 50px; }
.client-logo--typo { height: 30px; }
@media (max-width: 1100px) {
	.client-logo--san-churro { height: 42px; }
	.client-logo--typo { height: 24px; }
}
@media (max-width: 760px) {
	.client-logo--san-churro { height: 38px; }
	.client-logo--typo { height: 22px; }
}

/* Client logos: equal gaps, 5 on the first row, 4 on the second */
.roster--logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; column-gap: clamp(28px, 3.6vw, 64px); row-gap: 24px; max-width: none; }
.roster--logos > .client-logo { order: 1; }
.roster--logos > .client-logo:nth-child(n+6) { order: 3; }
.roster--logos::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
@media (max-width: 760px) {
	.roster--logos { column-gap: 28px; row-gap: 32px; }
	.roster--logos::after { display: none; }
	.roster--logos > .client-logo:nth-child(n+6) { order: 1; }
}

/* Client logos: pink hover box + work preview */
.roster--logos .client-logo { box-sizing: content-box; padding: 8px 12px; margin: -8px -12px; }
/* Client logo hover: turned off (Dec 2026) */
.roster-preview { width: 264px; }
.roster-preview img { aspect-ratio: 3 / 2; }
.roster-preview .pill { font-size: 10px; }

/* Client preview stays open and is clickable */
.roster-preview.is-on { pointer-events: auto; cursor: pointer; }
.roster-preview.is-on:hover .pill { background: var(--accent); color: var(--accent-fg); }

/* Client logos: horizontal Pancake Parlour, smaller Hairhouse */
.client-logo--pancake-parlour { height: 64px; }
.client-logo--pancake-parlour img { max-width: 220px; }
.client-logo--hairhouse { height: 24px; }
@media (max-width: 1100px) {
	.client-logo--pancake-parlour { height: 52px; }
	.client-logo--hairhouse { height: 21px; }
}
@media (max-width: 760px) {
	.client-logo--pancake-parlour { height: 44px; }
	.client-logo--hairhouse { height: 18px; }
}


/* Packages sub-copy under the hero statement */
.pkg-hero .pkg-sub { display: block; max-width: 48rem; margin: 1.25rem 0 1.5rem; }
.pkg-hero .pkg-sub p { margin: 0; }

/* Client logos: even grid, 5 equal columns (3 on mobile) */
.roster--logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); justify-items: center; align-items: center; column-gap: 32px; row-gap: 44px; max-width: none; }
.roster--logos::after { display: none; }
.roster--logos > .client-logo, .roster--logos > .client-logo:nth-child(n+6) { order: 0; }
.roster--logos .client-logo img, .roster--logos .client-logo svg { max-width: 100%; }
@media (max-width: 760px) {
	.roster--logos { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; row-gap: 32px; }
}

/* For Agencies: 4 columns so 8 logos make two full rows (2 on mobile) */
.page-id-322 .roster--logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) {
	.page-id-322 .roster--logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* SEO fixes 2026-11-27: section labels as H2s keep the label look; visually hidden headings */
h2.label { font-weight: inherit; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }

/* ---------- Mobile amends (Dec 2026) ---------- */
@media (max-width: 760px) {
	/* Main nav is replaced by the full-screen menu on mobile */
	.site-header .main-nav { display: none; }

	/* Work: listing only, no view / zoom switches */
	.hdr-right .js-view, .hdr-right .js-zoom { display: none !important; }

	/* Work: give category buttons room */
	.hdr-sub.pills { gap: 6px; padding-top: 4px; }
	.hdr-sub .pill { min-height: 32px; padding: 6px 12px; }

	/* Project: stack Next project / All {category} */
	.related-head .pills { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------- Full-screen mobile menu ---------- */
.nav-toggle, .m-menu { display: none; }
@media (max-width: 760px) {
	.site-header > .hdr-row:first-child { position: relative; z-index: 2; align-items: center; }
	.site-header .hdr-right { transition: opacity .25s ease; }
	.site-header.is-menu-open .hdr-right { opacity: 0; pointer-events: none; }

	/* Toggle: small square, three lines -> one dash */
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 26px; height: 26px; margin-left: auto; padding: 0;
		border: 0; border-radius: 0; cursor: pointer;
		background: color-mix(in srgb, var(--fg) 14%, var(--bg)); color: var(--fg);
		transition: background .3s ease;
	}
	.burger { position: relative; display: block; width: 10px; height: 7px; }
	.burger i {
		position: absolute; left: 0; width: 100%; height: 1px; background: currentColor;
		transition: transform .45s cubic-bezier(.77,0,.18,1), opacity .25s ease, width .45s cubic-bezier(.77,0,.18,1);
	}
	.burger i:nth-child(1) { top: 0; }
	.burger i:nth-child(2) { top: 3px; }
	.burger i:nth-child(3) { top: 6px; }
	.is-menu-open .burger i:nth-child(1) { transform: translateY(3px); opacity: 0; }
	.is-menu-open .burger i:nth-child(3) { transform: translateY(-3px); opacity: 0; }

	/* Panel: wipes down from the top, wipes back up on close */
	.m-menu {
		display: block; position: fixed; inset: 0; z-index: 1;
		background: var(--bg); color: var(--fg);
		overflow-y: auto; overscroll-behavior: contain;
		padding: calc(var(--m-top, 56px) + 18px) 16px 40px;
		visibility: hidden;
		clip-path: inset(0 0 100% 0);
		transition: clip-path .6s cubic-bezier(.77,0,.18,1) .12s, visibility 0s linear .72s;
	}
	.is-menu-open .m-menu {
		visibility: visible;
		clip-path: inset(0 0 0 0);
		transition: clip-path .7s cubic-bezier(.77,0,.18,1), visibility 0s;
	}
	html.menu-locked body { overflow: hidden; }

	/* Items rise in one after another, drop out together on close */
	.m-anim {
		opacity: 0; transform: translateY(28px);
		transition: opacity .2s ease, transform .3s ease;
	}
	.is-menu-open .m-anim {
		opacity: 1; transform: none;
		transition: opacity .55s ease, transform .75s cubic-bezier(.16,1,.3,1);
		transition-delay: calc(.22s + var(--i, 0) * 45ms);
	}

	.m-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 40px; }
	.m-link { font-family: var(--sans); font-size: 28px; line-height: 1.15; font-weight: 400; letter-spacing: -.01em; color: var(--fg); }
	.m-group { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
	.m-group .m-link { margin-bottom: 6px; }
	.m-sub { padding-left: 16px; font-size: 17px; line-height: 1.3; color: var(--fg); }
	.m-link.is-current, .m-sub.is-current { color: var(--accent); }
	a.m-link, .m-sub { transition: opacity .2s ease; }
	a.m-link:active, .m-sub:active { opacity: .6; }

	.m-info { margin: 0 0 22px; display: flex; flex-direction: column; gap: 14px; }
	.m-info .label { font-size: 9.5px; margin-bottom: 4px; }
	.m-info dd { margin: 0; font-size: 17px; line-height: 1.35; }
	.m-info a { color: var(--fg); }
	.m-actions { gap: 2px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
	.m-menu, .is-menu-open .m-menu { clip-path: none; transition: opacity .2s ease, visibility 0s linear .2s; opacity: 0; }
	.is-menu-open .m-menu { opacity: 1; transition: opacity .2s ease, visibility 0s; }
	.m-anim, .is-menu-open .m-anim { transform: none; transition: none; opacity: 1; }
}


/* ==========================================================================
   Site review amends (Si, 2 Dec 2026)
   ========================================================================== */

/* 1. Type scale ------------------------------------------------------------ */
h1, h2, h3, .h-lg, .h-cond, .h-xl-sans, .statement { text-wrap: balance; }
/* One H1 size on every page */
h1.statement, h1.h-xl-sans,
.page-template-templatesabout-php .section--top .statement {
	font-size: clamp(28px, 2.8vw, 48px);
	line-height: 1.12;
	letter-spacing: -.015em;
	font-weight: 500;
}
/* Body copy: 15px throughout */
.small, .small p, .case-intro, .meta, .case-press a, .svc-info p, .svc-work,
.pkg-text, .pkg-list, .pkg-hero .pkg-sub { font-size: 15px; line-height: 1.55; }
/* Sub-headings (About "Ideas", "Action") in Condensed Bold, like Packages */
.h-cond--sub { font-size: clamp(30px, 2.6vw, 44px); margin: 6px 0 12px; }

/* 2. Nav and header ------------------------------------------------------- */
/* Background strip behind the floating header on Home: fades in once you scroll */
.site-header.is-overlay { isolation: isolate; }
.site-header.is-overlay::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--bg); opacity: 0; pointer-events: none;
	transition: opacity .3s ease;
}
.site-header.is-overlay.is-scrolled::before { opacity: 1; }
.site-header.is-overlay.is-scrolled .logo { mix-blend-mode: normal; color: var(--fg); }

/* 4. Sitewide ------------------------------------------------------------- */
/* Every horizontal strip: drag / swipe, with the DRAG tab */
.js-drag { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.js-drag::-webkit-scrollbar { display: none; }
.js-drag.is-dragging { cursor: grabbing; }
.js-drag img { -webkit-user-drag: none; user-select: none; }
.drag-wrap { position: relative; min-width: 0; }
.drag-wrap > .js-drag { width: 100%; }
.drag-wrap > .drag-hint { position: absolute; right: 8px; bottom: 8px; float: none; margin: 0; z-index: 2; pointer-events: none; transition: opacity .2s ease; }
.drag-wrap.no-overflow > .drag-hint { opacity: 0; }

/* Links inside running text get an underline */
.site-main :is(p, dd, li, .about-intro, .case-intro, .pkg-sub) a:not(.pill):not(.roster-item),
.m-soc a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}
.site-main .tbl a, .site-main .tbl li a { text-decoration: none; }

/* Grey numbers in tabs: darker for contrast */
.pill .count { color: #a8a8a5; }
:root:not([data-theme="light"]) .pill--light .count { color: #626260; }
:root[data-theme="light"] .pill:not(.pill--light) .count { color: #555552; }

/* About: shorter intro line length, logos sized by eye */
.about-intro { max-width: 65ch; }
.client-logo--wiredco { height: 22px; }
.client-logo--bondi-sands { height: 50px; }
.client-logo--pancake-parlour { height: 48px; }
.client-logo--the-reject-shop { height: 52px; }
.client-logo--qv { height: 38px; }
@media (max-width: 1100px) {
	.client-logo--wiredco { height: 18px; }
	.client-logo--bondi-sands { height: 42px; }
	.client-logo--pancake-parlour { height: 40px; }
}
@media (max-width: 760px) {
	.client-logo--wiredco { height: 16px; }
	.client-logo--bondi-sands { height: 40px; }
	.client-logo--pancake-parlour { height: 34px; }
	.client-logo--the-reject-shop { height: 42px; }
	.client-logo--qv { height: 30px; }
}

/* Contact: required fields */
.field .req, .req-note .req { color: var(--fg); }
.form-actions { display: flex; align-items: center; gap: 16px; }
.req-note { margin: 0; }

/* 404: push the footer to the bottom of the screen */
body.error404 { display: flex; flex-direction: column; min-height: 100svh; }
body.error404 .site-main { flex: 1 0 auto; }

/* 5. Mobile --------------------------------------------------------------- */
@media (max-width: 760px) {
	body { font-size: 15px; }

	/* Menu: Condensed Bold links with number tabs, current page = pink tab */
	.m-menu-inner { display: flex; flex-direction: column; min-height: calc(100svh - var(--m-top, 56px) - 58px); }
	.m-nav { gap: 10px; margin-bottom: 32px; }
	.m-link { display: inline-flex; align-items: flex-start; gap: 10px; font-family: var(--cond); font-weight: 700; font-size: 44px; line-height: .95; letter-spacing: -.015em; color: var(--fg); }
	.m-link .num-chip { margin-top: 4px; background: var(--inv-bg); color: var(--inv-fg); }
	.m-link.is-current { color: var(--fg); }
	.m-link.is-current .num-chip { background: var(--accent); color: var(--accent-fg); }
	.m-group { gap: 8px; }
	.m-group .m-link { margin-bottom: 4px; }
	.m-sub { padding-left: 38px; font-family: var(--cond); font-weight: 700; font-size: 24px; line-height: 1.05; letter-spacing: -.01em; }
	.m-sub.is-current { color: var(--accent); }
	/* Details sit at the bottom, a little quieter */
	.m-info { margin-top: auto; padding-top: 24px; gap: 10px; }
	.m-info .label { font-size: 9.5px; margin-bottom: 2px; }
	.m-info dd { font-size: 14px; }

	/* Work strips: swipeable, running off the right edge */
	.strip-row .drag-wrap { width: calc(100% + 16px); margin-right: -16px; }

	/* Project pages: rows of three or more stack one per line */
	.img-row:has(> .img-cell:nth-child(3)) { flex-direction: column; }
	.img-row:has(> .img-cell:nth-child(3)) > .img-cell { flex: none; width: 100%; }

	/* Footer links: more room for thumbs */
	.footer-cols li { margin: 0; }
	.footer-cols li a { display: inline-block; padding: 6px 0; }
}

/* 6. Work grid motion ----------------------------------------------------- */
/* Hover grows the thumbnail to fill its cell, holds ~1.5s after the cursor leaves, then eases back */
.ov-fill {
	position: absolute; inset: 6px; z-index: 1; overflow: hidden;
	opacity: 0; transform: scale(.9); pointer-events: none;
	transition: opacity .5s ease, transform .5s cubic-bezier(.4, 0, .2, 1);
}
.ov-fill > .ov-fill-img, .ov-fill > .ov-hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.ov-fill > .chip { display: block; z-index: 1; }
.ov-cell.is-grown { z-index: 2; }
.ov-cell.is-grown .ov-fill { opacity: 1; transform: none; transition-duration: .22s, .35s; transition-timing-function: ease, cubic-bezier(.2, .8, .2, 1); }
.work-overview.is-dense .ov-fill > .chip { display: none; }
@media (prefers-reduced-motion: reduce) {
	.ov-fill, .ov-cell.is-grown .ov-fill { transition: none; transform: none; }
}
