/* ==========================================================================
   Script Monkey · Anthracite Blue
   Replaces the HTML5 UP template stylesheet. Same class names, new look:
   charcoal ground with a blue cast, steel-blue accent, silver-white type,
   monospace labels, flat translucent panels.
   ========================================================================== */

:root {
	--navy-900: #0e1620;
	--navy-800: #1c2430;
	--navy-700: #243040;
	--navy-600: #2f5d8a;
	--cyan:     #4f8fc9;
	--cyan-200: #7fb3e0;
	--green:    #82bf5c;
	--amber:    #e0b64a;
	--ink:      #e6eaf0;
	--ink-70:   #aab4c2;
	--ink-55:   #7e8a9a;
	--glass:    rgba(255,255,255,.05);
	--glass-2:  rgba(255,255,255,.09);
	--glass-line: rgba(255,255,255,.12);
	--shadow:   0 10px 30px rgba(0,0,0,.25);
	--radius:   10px;
	--pill:     6px;
	--font:     "Sora", "Open Sans", Arial, Helvetica, sans-serif;
	--mono:     "JetBrains Mono", ui-monospace, Consolas, "Courier New", monospace;
	--header-h: 4.25rem;
	--gutter:   max(1.25rem, env(safe-area-inset-left, 0px));
}

/* Reset ----------------------------------------------------------------- */
*, *:before, *:after { box-sizing: border-box; }
html { -webkit-text-size-adjust: none; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *:before, *:after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	min-height: 100vh;
	font: 400 16px/1.65 var(--font);
	color: var(--ink);
	background-color: var(--navy-800);
	background-image: none;
	background-attachment: fixed;
	padding-top: calc(var(--header-h) + 2rem);
	overflow-x: hidden;
}
/* the two soft glows behind everything */
body:before, body:after {
	content: "";
	position: fixed;
	z-index: -1;
	border-radius: 50%;
	pointer-events: none;
}
body:before { width: 70vw; height: 50vw; max-width: 1000px; max-height: 700px; right: -15vw; top: -15vw; background: radial-gradient(ellipse, rgba(79,143,201,.35), transparent 70%); }
body:after  { width: 55vw; height: 45vw; max-width: 800px; max-height: 600px; left: -12vw; bottom: -18vw; background: radial-gradient(ellipse, rgba(0,0,0,.55), transparent 70%); }
body.is-preload *, body.is-preload *:before, body.is-preload *:after { animation: none !important; transition: none !important; }

img { max-width: 100%; height: auto; }
figure { margin: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }

/* Typography ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
	color: #ffffff;
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.15;
	margin: 0 0 1rem;
	text-wrap: balance;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4, h5, h6 { font-size: 1rem; }
h1 a, h2 a, h3 a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.25rem; color: var(--ink-70); }
strong, b { color: #ffffff; font-weight: 700; }
em, i { font-style: italic; }
a { color: var(--cyan-200); text-decoration: none; transition: color .2s, border-color .2s; }
a:hover { color: #ffffff; }
sup, sub { font-size: .7em; }
hr { border: 0; border-top: 1px solid var(--glass-line); margin: 2rem 0; }
blockquote { border-left: 3px solid var(--cyan); margin: 0 0 1.5rem; padding: .25rem 0 .25rem 1.25rem; font-style: italic; color: var(--ink-70); }
code { font-family: var(--mono); font-size: .9em; color: var(--cyan-200); background: rgba(0,0,0,.3); border: 1px solid var(--glass-line); border-radius: 6px; padding: .15em .4em; }
pre { font-family: var(--mono); font-size: .85em; background: rgba(0,0,0,.3); border: 1px solid var(--glass-line); border-radius: 8px; padding: 1rem 1.25rem; overflow-x: auto; margin: 0 0 1.5rem; }
pre code { background: none; border: 0; padding: 0; }
.align-left { text-align: left; } .align-center { text-align: center; } .align-right { text-align: right; }

/* Inner ----------------------------------------------------------------- */
.inner {
	margin: 0 auto;
	max-width: 80rem;
	width: calc(100% - 2 * var(--gutter));
	padding-left: env(safe-area-inset-left, 0px);
	padding-right: env(safe-area-inset-right, 0px);
}

/* Row / columns (kept for the contact form and old page content) -------- */
.row { display: flex; flex-wrap: wrap; margin: 0 -.75rem; }
.row > * { padding: 0 .75rem; box-sizing: border-box; min-width: 0; }
.row.gtr-uniform > * { margin-bottom: 1.5rem; }
.col-1 { width: 8.3333%; } .col-2 { width: 16.6667%; } .col-3 { width: 25%; } .col-4 { width: 33.3333%; }
.col-5 { width: 41.6667%; } .col-6 { width: 50%; } .col-7 { width: 58.3333%; } .col-8 { width: 66.6667%; }
.col-9 { width: 75%; } .col-10 { width: 83.3333%; } .col-11 { width: 91.6667%; } .col-12 { width: 100%; }
@media screen and (max-width: 980px) { .col-12-medium { width: 100%; } .col-6-medium { width: 50%; } }
@media screen and (max-width: 736px) { .col-12-small { width: 100%; } .col-6-small { width: 50%; } }
@media screen and (max-width: 480px) { .col-12-xsmall { width: 100%; } }

/* Glass surfaces -------------------------------------------------------- */
.glass, #content > section, #sidebar > section, #footer .inner > .content > section, .features > a[href], .mini-posts > article, .posts > article {
	background: var(--glass);
	border: 1px solid var(--glass-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

/* Buttons --------------------------------------------------------------- */
input[type="submit"], input[type="reset"], input[type="button"], button, .button {
	appearance: none;
	-webkit-appearance: none;
	display: inline-block;
	background: var(--cyan);
	color: var(--navy-900) !important;
	border: 1px solid var(--cyan);
	border-radius: var(--pill);
	padding: .7rem 1.5rem;
	font: 600 .9rem/1.4 var(--font);
	letter-spacing: .01em;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 0 24px rgba(79,143,201,.35);
	transition: transform .15s, box-shadow .15s, background .15s;
}
input[type="submit"]:hover, input[type="reset"]:hover, input[type="button"]:hover, button:hover, .button:hover { transform: translateY(-1px); box-shadow: 0 0 34px rgba(79,143,201,.55); background: var(--cyan-200); border-color: var(--cyan-200); }
input[type="submit"]:active, button:active, .button:active { transform: translateY(0); }
.button.alt, input[type="reset"].alt, button.alt { background: transparent; color: var(--ink) !important; border-color: rgba(255,255,255,.25); box-shadow: none; }
.button.alt:hover, input[type="reset"].alt:hover { background: var(--glass-2); }
.button.primary { background: var(--cyan-200); border-color: var(--cyan-200); }
.button.small { padding: .4rem 1rem; font-size: .8rem; }
.button.fit { width: 100%; }
.button:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--cyan-200); outline-offset: 2px; }

/* Actions list ---------------------------------------------------------- */
ul.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 0 0 1.25rem; }
ul.actions li { padding: 0; }
ul.actions.fixed { margin-top: .25rem; }
ul.actions.fit li { flex: 1; } ul.actions.fit .button { width: 100%; }

/* Forms ----------------------------------------------------------------- */
form { margin: 0 0 1.5rem; }
label { display: block; font-weight: 700; margin: 0 0 .5rem; color: var(--ink); }
input[type="text"], input[type="password"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"], input[type="date"], input[type="number"], select, textarea {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	display: block;
	background: rgba(0,0,0,.2);
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 8px;
	color: var(--ink);
	font: inherit;
	padding: .75rem 1rem;
	transition: border-color .2s, background .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { background: rgba(255,255,255,.08); border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(79,143,201,.25); outline: none; }
::placeholder { color: var(--ink-55); opacity: 1; }
textarea { min-height: 9rem; resize: vertical; }
select { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' preserveAspectRatio='none'%3E%3Cpath d='M9.4,12.3l10.4,10.4l10.4-10.4c0.2-0.2,0.5-0.4,0.9-0.4c0.3,0,0.6,0.1,0.9,0.4l3.3,3.3c0.2,0.2,0.4,0.5,0.4,0.9 c0,0.4-0.1,0.6-0.4,0.9L20.7,31.9c-0.2,0.2-0.5,0.4-0.9,0.4c-0.3,0-0.6-0.1-0.9-0.4L4.3,17.3c-0.2-0.2-0.4-0.5-0.4-0.9 c0-0.4,0.1-0.6,0.4-0.9l3.3-3.3c0.2-0.2,0.5-0.4,0.9-0.4S9.1,12.1,9.4,12.3z' fill='%23ffffff' /%3E%3C/svg%3E"); background-size: 1.25rem; background-repeat: no-repeat; background-position: calc(100% - 1rem) center; padding-right: 2.75rem; }
select option { color: var(--navy-900); background: #fff; }
.dataerror input, .dataerror textarea { border-color: #ff8a80; box-shadow: 0 0 0 3px rgba(255,80,60,.25); }
h1.alert, p.alert { color: #ffb3ab; }

/* Lists ----------------------------------------------------------------- */
#content ul:not(.actions):not(.contact-icons), #content ol { margin: 0 0 1.25rem 1.25rem; color: var(--ink-70); }
#content ul:not(.actions):not(.contact-icons) { list-style: disc; }
#content ol { list-style: decimal; }
#content ul.alt { list-style: none; margin-left: 0; }
#content ul.alt li { border-top: 1px solid var(--glass-line); padding: .5rem 0; }
#content ul.alt li:first-child { border-top: 0; padding-top: 0; }
#content li { padding-left: .25rem; }

/* Icons ----------------------------------------------------------------- */
.icon { text-decoration: none; position: relative; border-bottom: none; }
.icon:before { display: inline-block; font-family: 'Font Awesome 5 Free'; font-weight: 400; font-style: normal; text-rendering: auto; line-height: 1; text-transform: none !important; }
.icon.solid:before { font-weight: 900; }
.icon.brands:before { font-family: 'Font Awesome 5 Brands'; }
.icon > .label { display: none; }

/* Images ---------------------------------------------------------------- */
.image { border: 0; display: inline-block; position: relative; border-radius: 8px; overflow: hidden; }
.image img { display: block; border-radius: 8px; }
.image.left, .image.right { max-width: 40%; margin-bottom: 1.25rem; }
.image.left { float: left; margin-right: 1.5rem; }
.image.right { float: right; margin-left: 1.5rem; }
.image.fit { display: block; margin: 0 0 1.5rem; width: 100%; }
.image.fit img { width: 100%; }
.image.main { display: block; margin: 0 0 2rem; width: 100%; }
.image.main img { width: 100%; }
@media screen and (max-width: 736px) { .image.left, .image.right { float: none; max-width: 100%; margin: 0 0 1.25rem; } }

/* Tables ---------------------------------------------------------------- */
.table-wrapper { overflow-x: auto; margin: 0 0 1.5rem; border-radius: 8px; border: 1px solid var(--glass-line); }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: .95rem; }
.table-wrapper table { margin: 0; }
th, td { text-align: left; padding: .6rem .8rem; vertical-align: top; }
th { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan-200); background: rgba(255,255,255,.06); }
td { color: var(--ink-70); border-top: 1px solid var(--glass-line); }
tbody tr:nth-child(2n) td { background: rgba(255,255,255,.04); }

/* Header: the floating glass pill ---------------------------------------- */
#header {
	position: fixed;
	top: env(safe-area-inset-top, 0px);
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 0 var(--gutter);
	background: rgba(28, 36, 48, .82);
	border-bottom: 1px solid var(--glass-line);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
#header .inner {
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
#header .logo { display: flex; align-items: center; gap: .75rem; color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; text-decoration: none; line-height: 1.2; min-width: 0; }
#header .logo img { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #fff; padding: .12rem; flex: 0 0 auto; }
#header .logo strong { color: #fff; font-weight: 800; white-space: nowrap; }
#header .logo { font-weight: 500; color: var(--ink-70); }
#nav > ul { display: flex; align-items: center; gap: .25rem; }
#nav > ul > li { position: relative; }
#nav > ul > li > a { display: inline-block; padding: .45rem .9rem; border-radius: var(--pill); color: var(--ink-70); font-family: var(--mono); font-weight: 500; font-size: .84rem; text-decoration: none; transition: background .2s, color .2s; }
#nav > ul > li > a:before { content: "// "; color: var(--cyan); }
#nav > ul > li > a:hover, #nav > ul > li.active > a { background: var(--glass-2); color: #fff; }
#nav > ul > li:last-child > a { background: var(--cyan); color: var(--navy-900); }
#nav > ul > li:last-child > a:before { color: var(--navy-900); }
#nav > ul > li:last-child > a:hover { background: var(--cyan-200); }
#nav > ul > li > ul { display: none; }
/* dropotron menus */
.dropotron {
	list-style: none;
	margin: .5rem 0 0;
	padding: .5rem;
	min-width: 13rem;
	background: rgba(28, 36, 48, .95);
	border: 1px solid var(--glass-line);
	border-radius: 10px;
	box-shadow: var(--shadow);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}
.dropotron li { padding: 0; }
.dropotron li a, .dropotron li span { display: block; padding: .55rem .9rem; border-radius: 6px; color: var(--ink-70); text-decoration: none; font-family: var(--mono); font-size: .84rem; }
.dropotron li a:hover { background: var(--glass-2); color: #fff; }
.dropotron.level-0 { margin-top: .75rem; }
#header .navPanelToggle { display: none; }
@media screen and (max-width: 980px) {
	#nav { display: none; }
	#header .navPanelToggle { display: inline-block; padding: .45rem 1rem; border-radius: var(--pill); background: var(--cyan); color: var(--navy-900); font-family: var(--mono); font-size: .85rem; text-decoration: none; }
	#header .navPanelToggle .label { display: inline; }
	#header .logo { font-size: 0; }
	#header .logo strong { font-size: 1rem; }
}

/* Nav panel (mobile slide-in) ------------------------------------------- */
#navPanel {
	transform: translateX(100%);
	transition: transform .5s ease, box-shadow .5s ease, visibility .5s;
	display: none;
	position: fixed;
	top: 0; right: 0;
	height: 100%;
	width: 20rem;
	max-width: 85%;
	z-index: 1100;
	visibility: hidden;
	overflow-y: auto;
	padding: 4.5rem 1.5rem 2rem;
	background: rgba(14, 22, 32, .96);
	border-left: 1px solid var(--glass-line);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}
#navPanel.visible { transform: translateX(0); visibility: visible; box-shadow: -10px 0 40px rgba(0,0,0,.4); }
#navPanel nav { display: block; }
#navPanel .link { display: block; padding: .8rem .75rem; border-radius: 6px; color: var(--ink-55) !important; text-decoration: none; font-family: var(--mono); font-size: .9rem; }
#navPanel .link.depth-0 { color: #fff !important; }
#navPanel .link:hover { background: var(--glass-2); color: #fff !important; }
#navPanel .link .indent-1 { display: inline-block; width: 1.25rem; }
#navPanel .link .indent-2 { display: inline-block; width: 2.5rem; }
#navPanel .close { position: absolute; top: .9rem; right: 1rem; width: 2.5rem; height: 2.5rem; border-radius: 6px; background: var(--glass-2); color: #fff !important; text-align: center; line-height: 2.5rem; text-decoration: none; }
#navPanel .close:before { content: '\f00d'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
@media screen and (max-width: 980px) { #navPanel { display: block; } }

/* Banner slider --------------------------------------------------------- */
#banner {
	position: relative;
	height: 34rem;
	margin: 0 auto 2.5rem;
	max-width: 80rem;
	width: calc(100% - 2 * var(--gutter));
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--glass-line);
	box-shadow: 0 30px 70px rgba(0,0,0,.45);
	background: var(--navy-900);
	display: flex;
	align-items: flex-end;
}
#banner > article {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: 2.5rem;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0;
	visibility: hidden;
	transition: opacity .75s, visibility .75s;
	z-index: 0;
}
#banner > article:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,22,32,.1) 0%, rgba(14,22,32,.6) 70%, rgba(14,22,32,.85) 100%); }
#banner > article:before { content: ""; position: absolute; inset: 0; background: var(--navy-800); opacity: 0; transition: opacity .75s ease-in-out; }
body.is-preload #banner > article:before { opacity: 1; }
#banner > article.visible { opacity: 1; visibility: visible; }
#banner > article.top { z-index: 102; }
#banner > article.instant { transition: none; }
#banner > article img { display: none; }
#banner > article .inner { position: relative; z-index: 2; width: 100%; max-width: none; margin: 0; padding: 0; }
#banner .features { display: block; }
#banner .features a {
	display: inline-block;
	max-width: 36rem;
	padding: 1.5rem 1.75rem;
	border-radius: var(--radius);
	background: rgba(14,22,32,.6);
	border: 1px solid rgba(255,255,255,.14);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: var(--shadow);
	color: var(--ink);
	text-decoration: none;
	transition: background .2s, transform .2s;
}
#banner .features a:hover { background: rgba(14,22,32,.75); border-color: var(--cyan); transform: translateY(-2px); }
#banner .features a h2 { font-size: 1.9rem; margin: 0 0 .4rem; }
#banner .features a p { margin: 0; color: var(--ink-70); }
#banner .features a:before { display: none; }
#banner .features a:after { content: "// read more"; position: static; display: inline-block; margin-top: .75rem; font-family: var(--mono); font-size: .8rem; color: var(--cyan-200); }
#banner .indicators { position: absolute; right: 2.25rem; bottom: 2.25rem; z-index: 103; display: flex; gap: .5rem; padding: .5rem .7rem; border-radius: 999px; background: rgba(14,22,32,.6); border: 1px solid var(--glass-line); }
#banner .indicators li { width: .7rem; height: .7rem; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; text-indent: -9999px; overflow: hidden; transition: background .2s, transform .2s; }
#banner .indicators li.visible { background: var(--cyan-200); transform: scale(1.25); }
#banner .indicators li > span { display: none; }
@media screen and (max-width: 980px) { #banner { height: 28rem; } #banner > article { padding: 1.5rem; } #banner .indicators { display: none; } #banner .features a h2 { font-size: 1.5rem; } }
@media screen and (max-width: 480px) { #banner { height: 24rem; border-radius: 10px; } #banner > article { padding: 1rem; } #banner .features a { padding: 1.1rem 1.25rem; } }

/* Main ------------------------------------------------------------------ */
#main { padding: 0 0 3rem; }
#main > .inner { display: flex; gap: 2rem; align-items: flex-start; }
#content { flex: 1 1 0; min-width: 0; }
#sidebar { flex: 0 0 24rem; min-width: 0; }
#content > section, #sidebar > section { padding: 2rem; margin: 0 0 2rem; }
#content > section > header, #sidebar > section > header { margin-bottom: 1.25rem; }
#content > section > header h1 { font-size: 2.1rem; }
#content > section > header p, #sidebar > section > header p { color: var(--ink-70); }
#content > section > header p:last-child { margin-bottom: 0; }
#pagemade { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-200); }
#pagedescription { font-size: 1.1rem; }
#content section section { margin-top: 1.5rem; }
#content > section > header + section, #content > section > header + .posts { margin-top: 0; }
#sidebar > section > header h1 { font-size: 1.6rem; }
@media screen and (max-width: 1100px) { #sidebar { flex-basis: 20rem; } }
@media screen and (max-width: 980px) {
	#main > .inner { flex-direction: column; }
	#sidebar { flex: 1 1 auto; width: 100%; }
	#content > section, #sidebar > section { padding: 1.5rem; }
}
@media screen and (max-width: 480px) { #content > section, #sidebar > section { padding: 1.25rem; border-radius: 16px; } h1 { font-size: 1.8rem; } #content > section > header h1 { font-size: 1.7rem; } }

/* Posts (case studies on the home page) ---------------------------------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem; margin: 0 0 1rem; }
.posts > article { padding: 1.25rem; display: flex; flex-direction: column; background: rgba(255,255,255,.08); }
.posts > article .image.fit { margin-bottom: 1rem; }
.posts > article h2 { font-size: 1.15rem; margin-bottom: .5rem; }
.posts > article p { flex: 1; font-size: .95rem; }
.posts > article ul.actions { margin-bottom: 0; }

/* Mini posts (thoughts, blog cards) ------------------------------------- */
.mini-posts { display: flex; flex-direction: column; gap: 1rem; margin: 0 0 1rem; }
.mini-posts > article { display: flex; gap: 1rem; padding: 1rem; background: rgba(255,255,255,.08); align-items: flex-start; }
.mini-posts > article .image { flex: 0 0 7.5rem; width: 7.5rem; border-radius: 8px; }
.mini-posts > article .image img { width: 100%; border-radius: 8px; }
.mini-posts > article .content { flex: 1; min-width: 0; }
.mini-posts > article .content p { margin-bottom: .75rem; font-size: .95rem; }
.mini-posts > article .content p:last-child, .mini-posts > article .content ul.actions { margin-bottom: 0; }
.mini-posts > article .content > a { color: var(--ink-70); display: block; }
.mini-posts > article .content > a:hover { color: #fff; }
.mini-posts > article .content > a strong { display: block; color: #fff; margin-bottom: .2rem; }
.mini-posts .timestamp { margin-top: .5rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan-200); }
.mini-posts.small > article .image { flex-basis: 4.5rem; width: 4.5rem; }
.mini-posts.small > article .content { font-size: .9rem; }
.mini-posts.minimal > article { background: transparent; border: 0; box-shadow: none; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.mini-posts > ul.actions { margin-top: .5rem; }
.mini-posts > article .image a:empty { display: none; }
@media screen and (max-width: 480px) { .mini-posts > article { flex-direction: column; } .mini-posts > article .image, .mini-posts.small > article .image { width: 100%; flex-basis: auto; } }

/* Features (home sidebar services, with accent icons) ------------------- */
#sidebar .features { display: grid; gap: 1rem; padding: 0; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.features > a:not([href]) { display: block; height: 0; overflow: hidden; }
.features > a[href] { display: block; padding: 1.25rem 1.25rem 1.25rem 1.25rem; color: var(--ink-70); text-decoration: none; position: relative; transition: transform .2s, background .2s; }
.features > a[href]:hover { transform: translateY(-2px); background: var(--glass-2); border-color: rgba(79,143,201,.5); color: #fff; }
.features > a[href]:before { content: ""; display: block; width: 2rem; height: 2rem; border-radius: 6px; margin-bottom: .9rem; background: linear-gradient(135deg, var(--cyan-200), var(--navy-600)); box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.features > a.accent2:before { background: linear-gradient(135deg, #b9e39a, #4f7d3a); }
.features > a.accent3:before { background: linear-gradient(135deg, #f1d58a, #9c7a1f); }
.features > a h2 { font-size: 1.15rem; margin: 0 0 .35rem; color: #fff; }
.features > a p { margin: 0; font-size: .95rem; }
.features > a[href]:after { content: "\2192"; position: absolute; top: 1.25rem; right: 1.25rem; color: var(--cyan-200); font-weight: 700; }

/* Twitter embed sits in the sidebar; give it a frame */
.twitter-timeline { border-radius: 8px; overflow: hidden; }

/* Contact icons (footer) ------------------------------------------------ */
ul.contact-icons li { position: relative; padding: .35rem 0 .35rem 2.25rem; color: var(--ink-70); }
ul.contact-icons li:before { position: absolute; left: 0; top: .55rem; width: 1.5rem; text-align: center; color: var(--cyan-200); }
ul.contact-icons address { font-style: normal; }

/* Footer ---------------------------------------------------------------- */
#footer { padding: 0 0 2rem; }
#footer .inner { padding-top: 2rem; }
#footer .content { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
#footer .content > section { padding: 1.5rem; }
#footer .content > section h2 { font-family: var(--mono); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-200); margin-bottom: .75rem; }
#footer .content > section h2:before { content: "// "; color: var(--cyan); }
#footer .content > section ul.alt li { border-top: 1px solid var(--glass-line); padding: .45rem 0; font-size: .92rem; }
#footer .content > section ul.alt li:first-child { border-top: 0; padding-top: 0; }
#footer .content > section a { color: var(--ink-70); }
#footer .content > section a:hover { color: #fff; }
#footer .copyright { text-align: center; font-family: var(--mono); font-size: .78rem; color: var(--ink-55); padding: 1rem 0 0; }

/* Helpers used by old content ------------------------------------------- */
.box { padding: 1.25rem; margin: 0 0 1.5rem; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 8px; }
.box > :last-child { margin-bottom: 0; }
iframe { max-width: 100%; border-radius: 8px; }
canvas { max-width: 100%; }
