/* Erick Feiling: red variation of Read Only by HTML5 UP. */
:root { --accent: #b53645; --accent-dark: #962535; }
body, input, select, textarea { color: #626262; }
a:hover { color: var(--accent) !important; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
#header { background: var(--accent); }
#header > header .monogram {
 display: grid; place-items: center; width: 112px; height: 112px;
 border: 2px solid rgba(255,255,255,.55); border-radius: 50%;
 background: rgba(255,255,255,.08); color: #fff;
 font-size: 2.2rem; font-weight: 700; letter-spacing: -.05em;
}
#header > header p { color: #fff; }
#header .icons a:focus-visible { outline-color: #fff; }
#header > footer .icons li a { color: #fff; }
#header .sidebar-note { display: block; font-size: .8em; letter-spacing: .06em; margin-top: 1.25em; }
#top .image.main { position: relative; background: #30242b; }
#top .image.main img { width: 100%; height: 100%; object-fit: cover; }
#top .image.main::after { content: ''; position: absolute; inset: 0; background: rgba(115, 24, 42, .2); }
header.major h2 { letter-spacing: -.035em; }
.eyebrow { color: var(--accent); font-size: .8em; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; margin-bottom: .8em; }
.feature-icons { margin-top: 2em; }
.features article { display: flex; align-items: center; gap: 2.5em; }
.features article .image { width: 46%; flex-shrink: 0; padding: 0; border: 0; }
.features article .image img { height: auto; border: 1px solid #eee; }
.features article .inner { width: auto; flex: 1; }
.features article .inner p { font-size: .95em; line-height: 1.8; margin-bottom: 1.25em; }
.features article .inner h3 { font-size: 1.25em; margin-bottom: .65em; }
.project-type { display: block; color: var(--accent); font-size: .72em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6em; }
.project-actions { display: flex; flex-wrap: wrap; gap: .6em; }
button {
 appearance: none; display: inline-flex; align-items: center; justify-content: center;
 border: 0; border-radius: .35em; background: var(--accent); color: #fff;
 font: inherit; font-size: .9em; font-weight: 700; line-height: 1.4;
 min-height: 44px; padding: .65em 1.3em; cursor: pointer;
 transition: background-color .2s ease;
}
button:hover { background: var(--accent-dark); }
button:active { background: #7d202d; }
.button.primary:hover { background-color: var(--accent-dark); }
.button.primary, button { text-decoration: none; }
#footer { color: #717171; }
#contact .actions { flex-wrap: wrap; }
.skip-link { position: fixed; z-index: 100000; top: .5em; left: .5em; transform: translateY(-200%); background: #fff; padding: .75em 1em; }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 736px) {
 .features article { display: block; }
 .features article .image { width: 100%; margin-bottom: 1.5em; }
 .features article .inner { width: 100%; }
 .project-actions { gap: .5em; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Demo viewer: fit both portrait and landscape phone viewports. */
body.demo-open { overflow: hidden; }
#demo-dialog {
	width: 1000px;
	max-width: calc(100% - 16px);
	max-height: calc(100% - 16px);
	max-height: calc(100dvh - 16px);
	margin: auto;
	padding: 12px;
	border: 0;
	border-radius: 6px;
	color: #444;
	background: #fff;
	overflow: auto;
}
#demo-dialog::backdrop { background: rgba(0, 0, 0, 0.8); }
.demo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.demo-toolbar h2 { font-size: 1.1em; }
#demo-close { min-height: 44px; padding: 8px 16px; flex-shrink: 0; }
#demo-content video { display: block; width: 100%; max-height: 70vh; background: #000; }
#demo-content .flash-demo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
#demo-content .ic-demo { aspect-ratio: 800 / 490; }
#demo-content .html-demo { display: block; border: 0; width: 100%; height: min(56.25vw, 55dvh); aspect-ratio: 16 / 9; }
.demo-pan { overflow: auto; margin-top: 8px; max-height: calc(100vh - 300px); max-height: calc(100dvh - 300px); min-height: 100px; }
.demo-pan-controls { margin-top: 8px; }
.demo-pan-controls button { min-width: 44px; min-height: 44px; padding: 4px 12px; margin-right: 4px; }
#demo-content .zoomed .html-demo { width: 1200px; height: 675px; }
#demo-content .demo-hint { margin: 0 0 8px; font-size: 0.8em; line-height: 1.4; }
@media (max-width: 736px), (max-width: 960px) and (max-height: 500px), (hover: none) and (pointer: coarse) {
	.desktop-only, .features article.desktop-demo { display: none; }
}

.demo-pan:not(.zoomed) { max-height: none; }
@media (max-height: 500px) {
	#demo-content .demo-hint { display: none; }
	.demo-pan { max-height: calc(100dvh - 190px); }
}
