/* david.sigmar.au — one dark theme, by design (the brand is dark navy + ember
   orange); colour-scheme is declared so form controls and scrollbars agree. */
:root {
	color-scheme: dark;
	--bg: #0a0f1a;
	--bg-raised: #111827;
	--bg-card: #0f1625;
	--line: #1f2a3d;
	--line-strong: #2b3a54;
	--text: #f3f5f9;
	--text-dim: #a9b3c4;
	--text-faint: #7d889b;
	--accent: #f26a1b;
	--accent-hot: #ff8a3d;
	--accent-ink: #1a0b02;
	--radius: 10px;
	--wrap: 1200px;
	--font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
	--script: "Caveat", "Bradley Hand", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 16px/1.55 var(--font);
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
.accent { color: var(--accent); }
.muted { color: var(--text-faint); }
.sprite { display: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.icon {
	width: 18px; height: 18px; flex: none;
	fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.icon-lg { width: 34px; height: 34px; stroke-width: 1.5; color: var(--accent); }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 13px 22px; border-radius: 8px;
	font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap;
	border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .site-nav a:focus-visible, .nav-toggle:focus-visible { outline: 2px solid var(--accent-hot); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -10px rgba(242, 106, 27, .7); }
.btn-primary:hover { background: var(--accent-hot); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: var(--text); background: rgba(10, 15, 26, .35); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── header ──────────────────────────────────────────────────────────── */
.site-header {
	position: sticky; top: 0; z-index: 20;
	background: rgba(10, 15, 26, .86); backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { text-decoration: none; display: grid; gap: 2px; }
.brand-name { font-weight: 700; font-size: 22px; letter-spacing: .01em; }
.brand-tag { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-dim); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { text-decoration: none; font-size: 15px; color: var(--text-dim); position: relative; padding: 6px 0; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="true"] { color: var(--text); }
.site-nav a[aria-current="true"]::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 8px; padding: 8px; cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--bg-raised); border-bottom: 1px solid var(--line);
		padding: 8px 16px 16px; display: none;
	}
	.site-nav.open { display: flex; }
	.site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
	.site-nav a[aria-current="true"]::after { display: none; }
	.site-nav .btn { margin-top: 14px; justify-content: center; }
}

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-art {
	position: absolute; inset: 0;
	background:
		linear-gradient(90deg, var(--bg) 0%, var(--bg) 38%, rgba(10, 15, 26, .72) 58%, rgba(10, 15, 26, .25) 100%),
		radial-gradient(60% 80% at 85% 40%, rgba(242, 106, 27, .28), transparent 70%),
		url("/img/photos/hero-code.jpg") right center / cover no-repeat;
}
.hero-script {
	position: absolute; right: 4%; bottom: 14%;
	font: 500 34px/1.1 var(--script); color: #fff; transform: rotate(-6deg); text-align: right;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .7);
}
.hero-script::after { content: ""; display: block; margin: 8px 0 0 auto; width: 70%; height: 2px; background: var(--accent); border-radius: 2px; }
.hero-body { position: relative; padding-top: 72px; padding-bottom: 88px; display: grid; gap: 22px; }
.eyebrow {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0;
	font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); margin-right: 14px; }
.eyebrow span + span::before { content: "|"; margin: 0 12px; color: var(--text-faint); }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 800; max-width: 15em; }
.lede { font-size: clamp(17px, 1.8vw, 21px); color: var(--text-dim); max-width: 30em; }
.hero .actions { margin-top: 10px; }
@media (max-width: 720px) {
	.hero-art { background:
		linear-gradient(180deg, rgba(10, 15, 26, .55) 0%, var(--bg) 85%),
		url("/img/photos/hero-code.jpg") center / cover no-repeat; }
	.hero-script { display: none; }
	.hero-body { padding-top: 48px; padding-bottom: 56px; }
}

/* ── stats ───────────────────────────────────────────────────────────── */
.stats {
	list-style: none; margin: -36px 0 0; padding: 18px; position: relative;
	display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
	background: var(--bg-raised); border: 1px solid var(--line); border-radius: 12px;
	box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .8);
}
.stats li {
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
	padding: 8px 12px;
}
.stats li + li { border-left: 1px solid var(--line); }
.stat-icon {
	grid-row: span 2; width: 46px; height: 46px; border-radius: 10px;
	display: grid; place-items: center; color: var(--accent); background: rgba(242, 106, 27, .1);
}
.stat-icon .icon { width: 24px; height: 24px; }
.stats strong { font-size: 24px; font-weight: 700; line-height: 1.1; }
.stats li > span:last-child { font-size: 13px; color: var(--text-dim); }
@media (max-width: 960px) {
	.stats { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
	.stats li + li { border-left: 0; }
	.stats li:last-child { grid-column: span 2; }
}
@media (max-width: 420px) {
	.stats { grid-template-columns: 1fr; }
	.stats li:last-child { grid-column: auto; }
}

/* ── sections ────────────────────────────────────────────────────────── */
.section { padding: 56px 0 8px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; }
.section-head p { color: var(--text-dim); }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-5 { grid-template-columns: 1fr; } }

.org-card, .solve-card, .xp-card {
	background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}

/* organisation cards */
.org-card { padding-bottom: 18px; }
.org-card h3 { font-size: 17px; font-weight: 600; margin: 16px 18px 4px; }
.org-card p { margin: 0 18px; font-size: 14px; color: var(--text-dim); }
.org-card p.muted { color: var(--text-faint); margin-bottom: 6px; }
.org-media { position: relative; height: 150px; }
.org-media > img:first-child { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.7); }
.org-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10, 15, 26, .85)); }
.org-media .mark { position: absolute; z-index: 1; left: 16px; top: 16px; }

/* word marks — typographic stand-ins, not reproductions of company logos */
.mark { display: inline-block; font-weight: 800; line-height: 1; }
.mark-nw { background: #d71920; color: #fff; padding: 7px 10px; font-size: 15px; letter-spacing: .02em; border-radius: 3px; }
.mark-ford { background: #fff; color: #0b2e59; padding: 9px 12px; font-size: 18px; border-radius: 4px; }
.mark-ford::first-letter { color: #1d8fe1; }
.mark-skin { background: rgba(255, 255, 255, .92); color: #2a2522; padding: 8px 12px; font-weight: 400; font-size: 22px; border-radius: 4px; letter-spacing: .02em; }
.mark-sigmar { height: 34px; width: auto; }
.mark-sm.mark-nw { font-size: 11px; padding: 5px 7px; }
.mark-sm.mark-ford, .mark-sm.mark-skin { font-size: 15px; padding: 6px 9px; }
.mark-sm.mark-sigmar { height: 26px; }

/* what I solve */
.solve-card { padding: 26px 20px; text-align: center; display: grid; justify-items: center; align-content: start; gap: 12px; }
.solve-card h3 { font-size: 16px; font-weight: 600; }
.solve-card p { font-size: 14px; color: var(--text-dim); }

/* experience */
.xp-card { display: flex; flex-direction: column; }
.xp-media { height: 110px; }
.xp-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.75); }
.xp-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.xp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.xp-years { font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.xp-body h3 { font-size: 16.5px; font-weight: 700; }
.xp-body ul { margin: 0; padding-left: 16px; font-size: 13.5px; color: var(--text-dim); display: grid; gap: 4px; }
.xp-body li::marker { color: var(--accent); }
.tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: var(--bg-raised); border: 1px solid var(--line-strong); color: var(--text-dim); }

/* technology */
.tech { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(13, 1fr); gap: 12px; }
.tech li { display: grid; justify-items: center; gap: 8px; font-size: 12.5px; color: var(--text-dim); text-align: center; }
.tech-tile {
	width: 100%; max-width: 64px; aspect-ratio: 1; display: grid; place-items: center;
	background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
}
.tech-tile img { width: 58%; height: 58%; object-fit: contain; }
.tech-tile img.invert-dark { filter: invert(1) brightness(1.4); }
@media (max-width: 1080px) { .tech { grid-template-columns: repeat(7, 1fr); } }
@media (max-width: 560px) { .tech { grid-template-columns: repeat(4, 1fr); } }

/* ── bands ───────────────────────────────────────────────────────────── */
.band { margin-top: 64px; border-top: 1px solid var(--line); }
.kicker { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--accent); }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--accent); }

.band-aos { background: radial-gradient(70% 120% at 80% 50%, rgba(242, 106, 27, .16), transparent 60%), linear-gradient(180deg, #0d1322, var(--bg)); }
.aos { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.aos-copy { display: grid; gap: 14px; max-width: 32em; }
.aos-copy h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 700; }
.aos-sub { font-size: 18px; font-weight: 600; }
.aos-copy p:last-child { color: var(--text-dim); }

.devices { position: relative; padding-right: 70px; }
.laptop .screen {
	display: grid; grid-template-columns: 30% 1fr; aspect-ratio: 16 / 10;
	background: #070b13; border: 10px solid #1c2232; border-bottom-width: 14px; border-radius: 14px 14px 4px 4px; overflow: hidden;
}
.laptop .base { height: 14px; margin: 0 -6%; background: linear-gradient(#2a3142, #121722); border-radius: 0 0 14px 14px; }
.app-nav { background: #0c1220; border-right: 1px solid var(--line); padding: 12px 10px; display: grid; align-content: start; gap: 7px; font-size: 10px; color: var(--text-faint); }
.app-nav img { height: 16px; width: auto; margin-bottom: 8px; }
.app-nav .on { color: #fff; background: rgba(242, 106, 27, .9); border-radius: 4px; padding: 3px 6px; }
.app-main {
	padding: 18px; display: grid; align-content: space-between;
	background: radial-gradient(50% 60% at 80% 35%, rgba(242, 106, 27, .45), transparent 70%), #0a0f1a;
}
.app-hero { font-size: clamp(13px, 1.6vw, 20px); font-weight: 600; line-height: 1.2; }
.app-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.app-tiles span { font-size: 9px; color: var(--text-dim); text-align: center; padding: 18px 4px 6px; background: #121a2b; border: 1px solid var(--line); border-radius: 6px; }
.phone {
	position: absolute; right: 0; bottom: -18px; width: 132px; aspect-ratio: 9 / 18.5;
	border: 7px solid #1c2232; border-radius: 22px; padding: 26px 12px; overflow: hidden;
	background: linear-gradient(180deg, rgba(10, 15, 26, .1), rgba(10, 15, 26, .75)), url("/img/photos/outback.jpg") center / cover;
}
.phone p { font-size: 12px; font-weight: 600; line-height: 1.3; }
@media (max-width: 860px) {
	.aos { grid-template-columns: 1fr; }
	.devices { max-width: 520px; padding-right: 48px; }
	.phone { width: 92px; border-width: 5px; border-radius: 16px; padding: 16px 8px; }
	.phone p { font-size: 9.5px; }
}

.band-cta {
	padding: 72px 0 80px;
	background:
		linear-gradient(180deg, rgba(10, 15, 26, .92) 0%, rgba(10, 15, 26, .55) 45%, rgba(10, 15, 26, .9) 100%),
		url("/img/photos/outback.jpg") center 60% / cover no-repeat;
}
.band-cta h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin: 14px 0 32px; }
.facts { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-wrap: wrap; gap: 20px 40px; }
.facts li { display: flex; align-items: center; gap: 14px; font-size: 14.5px; }
@media (max-width: 640px) { .band-cta h2 br { display: none; } }

.site-footer { border-top: 1px solid var(--line); padding: 22px 0; font-size: 13px; color: var(--text-faint); }

/* ── identity line, card links ───────────────────────────────────────── */
.hero-name { font-size: clamp(18px, 2vw, 22px); font-weight: 500; color: var(--text-dim); }
.hero-name strong { color: var(--text); font-weight: 700; }
.section-link, .xp-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.section-link:hover, .xp-more:hover { color: var(--accent-hot); }
.xp-more { font-size: 13px; }
.xp-body h3 a { text-decoration: none; }
.xp-body h3 a:hover { color: var(--accent-hot); }

/* ── footer with machine-readable links ──────────────────────────────── */
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-row nav a { color: var(--text-dim); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
.footer-row nav a:hover { color: var(--accent); }

/* ── server-rendered document pages (/experience…) — plain reading layout ── */
.doc-main { max-width: 860px; padding-top: 40px; padding-bottom: 64px; }
.doc-main h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 10px 0 18px; }
.doc-main h2 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; }
.doc-main h3 { font-size: 16px; font-weight: 600; margin: 20px 0 8px; color: var(--text-dim); }
.doc-main ul { padding-left: 20px; color: var(--text-dim); display: grid; gap: 6px; }
.doc-main li::marker { color: var(--accent); }
.doc-main a { color: var(--accent); }
.doc-main .lede { margin-bottom: 8px; }
.crumbs { font-size: 13px; color: var(--text-faint); margin-bottom: 18px; }
.crumbs a { color: var(--text-dim); }
.role { border-top: 1px solid var(--line); padding-top: 8px; }
.role h2 a { color: var(--text); text-decoration: none; }
.role h2 a:hover { color: var(--accent); }
.facts-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 8px; }
.facts-list dt { color: var(--text-faint); }
.facts-list dd { margin: 0; }
.doc-main .inline-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.inline-list li { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--bg-raised); border: 1px solid var(--line-strong); }
