/* ==========================================================================
   Helvetia Analytics — brand theme
   Loaded after main.css (Stellar by HTML5 UP) to retune the template.
   Palette and type follow the helvetia-analytics-logo identity.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
	--paper:          #f2f0eb;
	--paper-deep:     #e9e6df;
	--surface:        #ffffff;
	--surface-2:      #faf9f6;
	--ink:            #16232e;
	--ink-soft:       #4b5864;
	--ink-faint:      #7d8790;
	--line:           #e4e0d7;
	--line-strong:    #d2ccbf;
	--navy:           #172a3a;
	--accent:         #c13b2a;
	--accent-strong:  #a32e20;
	--accent-soft:    #f7e9e5;
	--radius:         12px;
	--radius-lg:      18px;
	--shadow-soft:    0 1px 2px rgba(23, 42, 58, .04), 0 18px 40px -30px rgba(23, 42, 58, .45);
	--shadow-card:    0 26px 60px -42px rgba(23, 42, 58, .6);
	--font-sans:      'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	--font-mono:      'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	background-color: var(--paper);
	background-image:
		radial-gradient(1100px 520px at 50% -8%, rgba(23, 42, 58, .07), rgba(23, 42, 58, 0) 62%),
		linear-gradient(180deg, #f4f2ed 0%, var(--paper-deep) 100%);
	color: var(--ink-soft);
}

body, input, select, textarea {
	font-family: var(--font-sans);
	font-weight: 400;
	letter-spacing: -0.006em;
	line-height: 1.7;
}

::selection {
	background: var(--accent);
	color: #ffffff;
}

a {
	border-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--ink);
}

strong, b {
	font-weight: 600;
	color: var(--ink);
}

p {
	margin: 0 0 1.6em 0;
}

hr {
	border-bottom-color: var(--line);
}

code, pre, .mono {
	font-family: var(--font-mono);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Header / hero
   -------------------------------------------------------------------------- */

#header {
	padding: 5.5em 4em 2em 4em;
}

#header.alt {
	padding: 6em 4em 3.5em 4em;
}

#header .logo {
	display: block;
	margin: 0 0 1.25em 0;
}

#header .logo img {
	display: block;
	width: 64px;
	height: 64px;
	margin: 0 auto;
	border-radius: 16px;
	box-shadow: 0 18px 36px -24px rgba(23, 42, 58, .8);
}

#header.alt > * {
	-moz-transition: opacity 0.7s ease, -moz-transform 0.7s ease;
	-webkit-transition: opacity 0.7s ease, -webkit-transform 0.7s ease;
	transition: opacity 0.7s ease, transform 0.7s ease;
	transition-delay: 0s;
}

#header.alt .logo {
	margin: 0 0 1.7em 0;
}

#header.alt .logo img {
	display: block;
	width: 88px;
	height: 88px;
	max-width: none;
	margin: 0 auto;
	border-radius: 20px;
	box-shadow: 0 24px 46px -26px rgba(23, 42, 58, .8);
}

#header.alt h1 {
	font-size: 3.1em;
	font-weight: 700;
	letter-spacing: -0.045em;
	color: var(--ink);
	margin: 0 0 0.4em 0;
}

#header.alt p {
	font-family: var(--font-mono);
	font-size: 0.72em;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	line-height: 1.9;
	color: var(--ink-faint);
	margin: 0;
}

body.is-preload #header.alt .logo {
	-moz-transform: scale(0.95);
	-webkit-transform: scale(0.95);
	transform: scale(0.95);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

#nav {
	background-color: var(--surface);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 0.5em;
	box-shadow: var(--shadow-soft);
	color: var(--ink-soft);
}

#nav ul li {
	margin: 0 0.15em;
}

#nav ul li a {
	font-family: var(--font-sans);
	font-weight: 500;
	font-size: 0.95em;
	letter-spacing: 0;
	height: 2.4em;
	line-height: 2.4em;
	padding: 0 1.35em;
	border-radius: 999px;
	color: var(--ink-soft);
}

#nav ul li a:hover {
	background-color: var(--accent-soft);
	color: var(--accent);
}

#nav ul li a.active {
	background-color: var(--navy);
	color: #ffffff;
	box-shadow: none;
}

#nav.alt {
	background-color: rgba(255, 255, 255, 0.9);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	box-shadow: 0 14px 34px -28px rgba(23, 42, 58, .6);
}

/* --------------------------------------------------------------------------
   Main surface
   -------------------------------------------------------------------------- */

#main {
	background-color: var(--surface);
	color: var(--ink-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	overflow: hidden;
}

#main > .main {
	padding: 4.5em 4.5em 3em 4.5em;
	border-top: solid 1px var(--line);
}

#main > .main > p {
	max-width: 44em;
}

#main h1, #main h2, #main h3, #main h4, #main h5, #main h6 {
	color: var(--ink);
}

#main strong, #main b {
	color: var(--ink);
}

#main dl dt {
	color: var(--ink);
}

#main a {
	color: var(--accent);
}

#main a:hover {
	color: var(--accent-strong);
}

#main hr {
	border-bottom-color: var(--line);
}

#main ul.alt li {
	border-top-color: var(--line);
}

#main .box {
	border-color: var(--line);
}

#main .icon.major {
	border-color: var(--line);
}

#main .icon.alt {
	border-color: var(--line);
	color: var(--ink);
}

#main .icon.alt:hover {
	background-color: var(--accent-soft);
	color: var(--accent);
}

#main .spotlight .image {
	border-color: var(--line);
}

/* Section headings */

#main header.major h2 {
	font-size: 1.9em;
	font-weight: 600;
	color: var(--ink);
}

#main header.major h2:after {
	background-color: var(--accent);
	background-image: none;
	width: 2.25em;
	height: 3px;
	border-radius: 3px;
	margin: 0.8em 0 1.1em 0;
}

#main .special header.major h2:after {
	margin-left: auto;
	margin-right: auto;
}

#main header.major p {
	font-size: 1.05em;
	color: var(--ink-faint);
}

/* Inline text links */

.text-link {
	color: var(--accent);
	font-weight: 600;
	border-bottom: 1px solid rgba(193, 59, 42, .35);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
	color: var(--accent-strong);
	border-bottom-color: var(--accent-strong);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
	border-radius: 999px;
	font-family: var(--font-sans);
	font-weight: 500;
	letter-spacing: 0;
	height: 2.9em;
	line-height: 2.9em;
	padding: 0 1.6em;
}

#main input[type="submit"],
#main input[type="reset"],
#main input[type="button"],
#main button,
#main .button {
	background-color: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line-strong);
	color: var(--ink) !important;
}

#main input[type="submit"]:hover,
#main input[type="reset"]:hover,
#main input[type="button"]:hover,
#main button:hover,
#main .button:hover {
	background-color: var(--surface-2);
	box-shadow: inset 0 0 0 1px var(--navy);
}

#main input[type="submit"].primary,
#main input[type="reset"].primary,
#main input[type="button"].primary,
#main button.primary,
#main .button.primary {
	background-color: var(--accent);
	color: #ffffff !important;
	box-shadow: none;
}

#main input[type="submit"].primary:hover,
#main input[type="reset"].primary:hover,
#main input[type="button"].primary:hover,
#main button.primary:hover,
#main .button.primary:hover {
	background-color: var(--accent-strong);
}

.button,
button {
	background-color: transparent;
	box-shadow: inset 0 0 0 1px var(--line-strong);
	color: var(--ink) !important;
}

.button:hover,
button:hover {
	background-color: rgba(23, 42, 58, 0.05);
}

.button.primary {
	background-color: var(--accent);
	box-shadow: none;
	color: #ffffff !important;
}

.button.primary:hover {
	background-color: var(--accent-strong);
}

/* --------------------------------------------------------------------------
   Topics (services)
   -------------------------------------------------------------------------- */

.topics {
	display: -moz-flex;
	display: -webkit-flex;
	display: flex;
	-moz-flex-wrap: wrap;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	gap: 1.25em;
	max-width: 46em;
	margin: 0 auto 2.5em auto;
	text-align: left;
}

.topic-card {
	-moz-flex: 1 1 15em;
	-webkit-flex: 1 1 15em;
	flex: 1 1 15em;
	background-color: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.6em 1.6em 1em 1.6em;
}

.topic-label {
	font-family: var(--font-mono);
	font-size: 0.68em;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 1em 0;
}

.topic-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.topic-list li {
	position: relative;
	padding: 0.55em 0 0.55em 1.4em;
	border-top: 1px solid var(--line);
	font-size: 0.98em;
	line-height: 1.5;
}

.topic-list li:first-child {
	border-top: 0;
	padding-top: 0;
}

.topic-list li:before {
	content: '';
	position: absolute;
	left: 0;
	top: 1.05em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
}

.topic-list li:first-child:before {
	top: 0.55em;
}

/* --------------------------------------------------------------------------
   Team cards
   -------------------------------------------------------------------------- */

#main .features > li {
	display: -moz-flex;
	display: -webkit-flex;
	display: flex;
	-moz-flex-direction: column;
	-webkit-flex-direction: column;
	flex-direction: column;
	background-color: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 2em 1.75em 1.6em 1.75em;
	text-align: left;
	box-shadow: 0 22px 48px -42px rgba(23, 42, 58, .7);
	-moz-transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	-webkit-transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#main .features > li > .actions {
	display: block;
	margin: auto 0 0 0;
	padding: 0;
	width: 100%;
}

#main .features > li > .actions > li {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
}

#main .features > li > .actions .button {
	display: block;
	width: 100%;
}

#main .features > li:hover {
	-moz-transform: translateY(-4px);
	-webkit-transform: translateY(-4px);
	transform: translateY(-4px);
	border-color: var(--line-strong);
	box-shadow: 0 32px 64px -44px rgba(23, 42, 58, .6);
}

#main .features > li h3 {
	color: var(--ink);
	margin: 0 0 0.5em 0;
}

#main .features > li > p {
	font-size: 0.96em;
	color: var(--ink-soft);
}

#main .features .icon-container {
	-moz-justify-content: flex-start;
	-webkit-justify-content: flex-start;
	-ms-justify-content: flex-start;
	justify-content: flex-start;
}

#main .icon.solid.major.style1 {
	width: 108px;
	height: 108px;
	padding: 0;
	margin: 0 0 1.4em 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background-color: var(--surface);
	box-shadow: 0 0 0 5px var(--surface), 0 0 0 6px var(--line);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

#main label {
	color: var(--ink);
}

#main input[type="text"],
#main input[type="password"],
#main input[type="email"],
#main select,
#main textarea {
	background-color: var(--surface);
	border-color: var(--line-strong);
	color: var(--ink);
}

#main input[type="text"]:focus,
#main input[type="password"]:focus,
#main input[type="email"]:focus,
#main select:focus,
#main textarea:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent);
}

#main select {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' preserveAspectRatio='none' viewBox='0 0 40 40'%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='%23a89f8f' /%3E%3C/svg%3E");
}

#main select option {
	color: var(--ink);
	background: var(--surface);
}

#main input[type="checkbox"]:checked + label:before,
#main input[type="radio"]:checked + label:before {
	background-color: var(--accent);
	border-color: var(--accent);
	color: #ffffff;
}

#main input[type="checkbox"]:focus + label:before,
#main input[type="radio"]:focus + label:before {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent);
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

#main table tbody tr {
	border-color: var(--line);
}

#main table tbody tr:nth-child(2n + 1) {
	background-color: var(--surface-2);
}

#main table th {
	color: var(--ink);
}

#main table thead {
	border-bottom-color: var(--line-strong);
}

#main table tfoot {
	border-top-color: var(--line-strong);
}

#main table.alt tbody tr td {
	border-color: var(--line);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

#footer {
	padding: 4.5em 4em 2.5em 4em;
	border-top: 1px solid var(--line);
	margin-top: 1.5em;
}

#footer h2 {
	font-size: 1.35em;
	color: var(--ink);
}

#footer dl.alt dd {
	margin: 0 0 0.85em 0;
}

#footer dl.alt dt {
	float: none;
	width: auto;
}

#footer a {
	color: var(--ink);
	border-bottom: 1px solid var(--line-strong);
}

#footer a:hover {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

#footer .icon.alt {
	border-color: var(--line);
	color: var(--ink);
}

#footer .icon.alt:hover {
	background-color: var(--accent-soft);
	border-color: transparent;
	color: var(--accent);
}

#footer .copyright {
	color: var(--ink-faint);
	font-size: 0.8em;
	letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media screen and (max-width: 1280px) {

	#header {
		padding: 4.5em 3.5em 1.5em 3.5em;
	}

	#header.alt {
		padding: 5em 3.5em 3em 3.5em;
	}

	#main > .main {
		padding: 4em 3.5em 2.5em 3.5em;
	}

	#footer {
		padding: 4em 3.5em 2.25em 3.5em;
	}

}

@media screen and (max-width: 980px) {

	#header {
		padding: 4em 2.75em 1em 2.75em;
	}

	#header.alt {
		padding: 4.5em 2.75em 2.5em 2.75em;
	}

	#main > .main {
		padding: 3.5em 2.75em 2em 2.75em;
	}

	#footer {
		padding: 3.5em 2.75em 2em 2.75em;
	}

}

@media screen and (max-width: 736px) {

	#header {
		padding: 3em 1.75em 0.75em 1.75em;
	}

	#header.alt {
		padding: 3.5em 1.75em 2em 1.75em;
	}

	#header.alt .logo img {
		width: 72px;
		height: 72px;
		border-radius: 16px;
	}

	#header.alt h1 {
		font-size: 2.2em;
	}

	#header.alt p {
		letter-spacing: 0.14em;
	}

	#nav {
		display: block;
	}

	#nav + #main {
		padding-top: 4.25em;
	}

	#nav ul li {
		margin: 0 0.1em;
	}

	#nav ul li a {
		padding: 0 1em;
		font-size: 0.9em;
	}

	#main > .main {
		padding: 3em 1.75em 1.5em 1.75em;
	}

	#main .features > li {
		padding: 1.75em 1.5em 1.4em 1.5em;
	}

	#footer {
		padding: 3em 1.75em 1.5em 1.75em;
	}

}

@media screen and (max-width: 480px) {

	#header {
		padding: 2.5em 1.25em 0.5em 1.25em;
	}

	#header.alt {
		padding: 3em 1.25em 1.5em 1.25em;
	}

	#header.alt h1 {
		font-size: 1.9em;
	}

	#main > .main {
		padding: 2.5em 1.25em 1em 1.25em;
	}

	.topics {
		gap: 1em;
	}

}

@media screen and (max-width: 360px) {

	#main {
		border-radius: 0;
	}

}
