/* =========================================================================
   Onyx Industrial Group — main stylesheet
   Structure: variables → reset → typography → layout primitives →
   header → hero → sectors → business interests/marquee → contact →
   footer → simple page → responsive overrides.
   ========================================================================= */

/* ---------------------------------------------------------------------
   0. Variables
   ------------------------------------------------------------------- */
:root {
	--onyx-bg: #030810;
	--onyx-bg-raised: #060c16;
	--onyx-green: #8fcb19;
	--onyx-green-dim: rgba(143, 203, 25, 0.35);
	--onyx-white: #ffffff;
	--onyx-text-secondary: #b7c0c9;
	--onyx-text-muted: #7c8794;
	--onyx-divider: rgba(255, 255, 255, 0.08);
	--onyx-divider-strong: rgba(255, 255, 255, 0.14);

	--onyx-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--onyx-container: 1280px;
	--onyx-gutter: clamp(24px, 5vw, 64px);

	--onyx-header-h: 96px;

	--onyx-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------------------------
   1. Reset
   ------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--onyx-bg);
	color: var(--onyx-white);
	font-family: var(--onyx-font);
	font-size: 16px;
	line-height: 1.5;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font-family: inherit;
	cursor: pointer;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

h1,
h2,
h3,
p {
	margin: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: fixed;
	top: -60px;
	left: 16px;
	z-index: 10000;
	background: var(--onyx-green);
	color: #04120a;
	padding: 10px 18px;
	border-radius: 3px;
	font-weight: 600;
	transition: top 0.2s var(--onyx-ease);
}

.skip-link:focus {
	top: 16px;
	width: auto;
	height: auto;
	clip: auto;
	overflow: visible;
}

:focus-visible {
	outline: 2px solid var(--onyx-green);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------------
   2. Layout primitives
   ------------------------------------------------------------------- */
.site-header__inner,
.hero__content,
.sectors__list,
.business-interests,
.contact-cta__inner,
.site-footer__inner {
	width: 100%;
	max-width: var(--onyx-container);
	margin-inline: auto;
	padding-inline: var(--onyx-gutter);
}

/* ---------------------------------------------------------------------
   3. Header
   ------------------------------------------------------------------- */
.site-header {
	position: relative;
	z-index: 50;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--onyx-header-h);
}

.site-header__logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.site-header__logo-mark-img {
	display: block;
	height: 40px;
	width: auto;
}

.site-header__logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.site-header__logo-title {
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: 0.08em;
	color: var(--onyx-white);
}

.site-header__logo-subtitle {
	font-size: 0.55rem;
	letter-spacing: 0.22em;
	color: var(--onyx-text-muted);
	margin-top: 2px;
}

.site-header__nav {
	display: flex;
	align-items: center;
}

.site-header__contact-link {
	position: relative;
	font-size: 0.95rem;
	color: var(--onyx-white);
	padding-bottom: 6px;
}

.site-header__contact-link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--onyx-green);
}

.site-header__divider {
	height: 1px;
	background: var(--onyx-divider);
}

/* ---------------------------------------------------------------------
   4. Hero
   ------------------------------------------------------------------- */
.hero {
	position: relative;
	overflow: hidden;
	min-height: clamp(480px, 62vw, 640px);
	display: flex;
	align-items: center;
}

.hero::after {
	/* Soft bottom divider, matches the mockup's thin seam before the sector strip */
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--onyx-divider);
}

.hero__graphic {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(58%, 760px);
	pointer-events: none;
}

.hero__graphic::before {
	/* left-edge fade so the graphic dissolves into the black background */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--onyx-bg) 0%, rgba(3, 8, 16, 0) 30%);
	z-index: 2;
}

.hero__graphic-panel,
.hero__graphic-outline {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right top;
}

.hero__graphic-panel {
	opacity: 0.52;
	animation: onyxHeroBreathe 8s ease-in-out infinite;
}

.hero__graphic-outline {
	opacity: 0.65;
	animation: onyxHeroBreatheOutline 8s ease-in-out infinite;
}

@keyframes onyxHeroBreathe {
	0%,
	100% {
		opacity: 0.45;
	}
	50% {
		opacity: 0.6;
	}
}

@keyframes onyxHeroBreatheOutline {
	0%,
	100% {
		opacity: 0.58;
	}
	50% {
		opacity: 0.75;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero__graphic-panel,
	.hero__graphic-outline {
		animation: none !important;
		opacity: 0.55;
	}
}

.hero__content {
	position: relative;
	z-index: 3;
	padding-block: clamp(48px, 8vw, 96px);
}

.hero__heading {
	font-weight: 800;
	font-size: clamp(2.5rem, 4.6vw, 4rem);
	line-height: 1.08;
	letter-spacing: -0.01em;
	color: var(--onyx-white);
	max-width: 640px;
}

.hero__heading-line {
	display: block;
}

.hero__rule {
	display: block;
	width: 56px;
	height: 3px;
	background: var(--onyx-green);
	margin: 28px 0 24px;
}

.hero__paragraph {
	max-width: 440px;
	color: var(--onyx-text-secondary);
	font-size: clamp(0.95rem, 1.1vw, 1.05rem);
	line-height: 1.75;
}

/* ---------------------------------------------------------------------
   5. Industry sector strip
   ------------------------------------------------------------------- */
.sectors {
	border-bottom: 1px solid var(--onyx-divider);
}

.sectors__list {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	padding-block: clamp(28px, 4vw, 40px);
}

.sectors__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-inline: 12px;
	border-left: 1px solid var(--onyx-divider);
}

.sectors__item:first-child {
	border-left: none;
}

.sectors__icon {
	color: var(--onyx-green);
	width: clamp(34px, 4vw, 48px);
	height: clamp(34px, 4vw, 48px);
	margin-bottom: 14px;
}

.sectors__icon svg {
	width: 100%;
	height: 100%;
}

.sectors__label {
	font-size: clamp(0.85rem, 1vw, 0.98rem);
	font-weight: 600;
	color: var(--onyx-white);
}

.sectors__underline {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--onyx-green);
	margin-top: 12px;
}

/* ---------------------------------------------------------------------
   6. Business interests / logo marquee
   ------------------------------------------------------------------- */
.business-interests {
	padding-block: clamp(36px, 5vw, 56px);
}

.business-interests__label {
	color: var(--onyx-green);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	margin-bottom: 22px;
}

.marquee {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.marquee__viewport {
	flex: 1 1 auto;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1.5%, #000 98.5%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 1.5%, #000 98.5%, transparent 100%);
}

.marquee__track {
	display: flex;
	align-items: center;
	width: max-content;
	animation: onyxMarquee var(--onyx-marquee-duration, 34s) linear infinite;
}

.marquee.is-paused .marquee__track,
.marquee__track.is-paused {
	animation-play-state: paused;
}

@keyframes onyxMarquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.marquee__track {
		animation: none;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.marquee__track::-webkit-scrollbar {
		display: none;
	}
}

.marquee__item {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-inline: clamp(20px, 3vw, 36px);
	border-right: 1px solid var(--onyx-divider);
	min-width: 150px;
	min-height: 96px;
}

.marquee__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.marquee__logo {
	/* A bounding box, not a fixed height — the supplied logos range from
	   wide wordmarks (Origin Digital, FNN, Toro Capital) to near-square/
	   portrait badge marks (PCM Group, Weld Asset Co). object-fit: contain
	   inside a consistent box reads as "the same size" even though each
	   logo's native aspect ratio differs, matching the brief's requirement
	   to keep perceived size consistent without stretching anything.
	   max-width is a little wider than a badge mark needs so wordmarks
	   (which are width-bound, not height-bound, inside this box) get more
	   of the available height rather than shrinking to a thin strip. */
	display: block;
	width: auto;
	height: auto;
	max-width: 190px;
	max-height: 67px;
	object-fit: contain;
	/* Full brand color and full opacity at rest — this is a horizontally
	   auto-scrolling marquee, so a dimmed/desaturated resting state (as
	   you'd use on a static logo grid people hover one at a time) just
	   reads as permanently washed out here. A small hover/focus lift is
	   still enough to show the row is interactive. A mild brightness/
	   contrast lift also helps the darker brand marks read as bold
	   against the dark marquee background instead of vague/faint. */
	opacity: 1;
	filter: brightness(1.12) contrast(1.08);
	transition: transform 0.25s var(--onyx-ease);
}

.marquee__link:hover .marquee__logo,
.marquee__link:focus-visible .marquee__logo {
	transform: scale(1.06);
}

.marquee__caption {
	font-size: 0.62rem;
	letter-spacing: 0.14em;
	color: var(--onyx-text-muted);
	text-align: center;
	line-height: 1.4;
}

.marquee__arrow {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid var(--onyx-divider-strong);
	border-radius: 50%;
	color: var(--onyx-text-secondary);
	transition: border-color 0.2s var(--onyx-ease), color 0.2s var(--onyx-ease), background 0.2s var(--onyx-ease);
}

.marquee__arrow:hover,
.marquee__arrow:focus-visible {
	color: var(--onyx-green);
	border-color: var(--onyx-green);
	background: rgba(143, 203, 25, 0.06);
}

/* ---------------------------------------------------------------------
   7. Contact CTA
   ------------------------------------------------------------------- */
.contact-cta {
	position: relative;
	overflow: hidden;
	border-top: 1px solid var(--onyx-green);
	background: var(--onyx-bg);
	min-height: clamp(190px, 22vw, 260px);
	display: flex;
	align-items: center;
}

.contact-cta__glow {
	position: absolute;
	left: -10%;
	bottom: -40%;
	width: 46%;
	height: 140%;
	background: radial-gradient(closest-side, rgba(143, 203, 25, 0.22), rgba(143, 203, 25, 0) 70%);
	pointer-events: none;
}

.contact-cta__inner {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: flex-end;
}

.btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: transparent;
	border: 1px solid var(--onyx-green);
	color: var(--onyx-white);
	font-size: 0.95rem;
	font-weight: 600;
	padding: 15px 28px;
	border-radius: 2px;
	transition: background 0.2s var(--onyx-ease), border-color 0.2s var(--onyx-ease), transform 0.2s var(--onyx-ease);
}

.btn-outline:hover,
.btn-outline:focus-visible {
	background: rgba(143, 203, 25, 0.1);
	border-color: #a4e02c;
}

.btn-outline:active {
	transform: translateY(1px);
}

/* ---------------------------------------------------------------------
   8. Contact modal
   ------------------------------------------------------------------- */
.contact-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.contact-modal[hidden] {
	display: none;
}

.contact-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 5, 10, 0.82);
	backdrop-filter: blur(3px);
}

.contact-modal__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background: var(--onyx-bg-raised);
	border: 1px solid var(--onyx-divider-strong);
	border-radius: 4px;
	padding: clamp(28px, 4vw, 40px);
}

.contact-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: transparent;
	border: none;
	color: var(--onyx-text-secondary);
	font-size: 1.5rem;
	line-height: 1;
	width: 32px;
	height: 32px;
}

.contact-modal__close:hover {
	color: var(--onyx-green);
}

.contact-modal__title {
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 24px;
}

.contact-form__row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}

.contact-form__row label {
	font-size: 0.8rem;
	color: var(--onyx-text-secondary);
	letter-spacing: 0.03em;
}

.contact-form__row input,
.contact-form__row textarea {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--onyx-divider-strong);
	border-radius: 2px;
	color: var(--onyx-white);
	font-family: inherit;
	font-size: 0.95rem;
	padding: 11px 12px;
	resize: vertical;
	transition: border-color 0.2s var(--onyx-ease);
}

.contact-form__row input:focus,
.contact-form__row textarea:focus {
	border-color: var(--onyx-green);
	outline: none;
}

.contact-form__hp {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	left: -9999px;
}

.contact-form__submit {
	width: 100%;
	justify-content: center;
	margin-top: 6px;
}

.contact-form__status {
	margin-top: 14px;
	font-size: 0.85rem;
	color: var(--onyx-text-secondary);
	min-height: 1.2em;
}

.contact-form__status.is-error {
	color: #ff9d8a;
}

.contact-form__status.is-success {
	color: var(--onyx-green);
}

/* ---------------------------------------------------------------------
   9. Footer
   ------------------------------------------------------------------- */
.site-footer {
	border-top: 1px solid var(--onyx-divider);
}

.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding-block: 22px;
}

.site-footer__location {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--onyx-text-secondary);
	font-size: 0.85rem;
}

.site-footer__pin {
	color: var(--onyx-green);
	flex-shrink: 0;
}

.site-footer__meta {
	display: flex;
	align-items: center;
	gap: 20px;
	color: var(--onyx-text-muted);
	font-size: 0.8rem;
}

.site-footer__privacy {
	color: var(--onyx-text-secondary);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s var(--onyx-ease), color 0.2s var(--onyx-ease);
}

.site-footer__privacy:hover {
	color: var(--onyx-green);
	border-color: var(--onyx-green);
}

/* ---------------------------------------------------------------------
   10. Simple page (e.g. Privacy Policy)
   ------------------------------------------------------------------- */
.simple-page__inner {
	max-width: 760px;
	margin-inline: auto;
	padding: clamp(48px, 8vw, 96px) var(--onyx-gutter);
}

.simple-page__title {
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	font-weight: 800;
	margin-bottom: 24px;
}

.simple-page__content {
	color: var(--onyx-text-secondary);
	line-height: 1.8;
}

.simple-page__content p {
	margin-bottom: 1.2em;
}

/* ---------------------------------------------------------------------
   11. Responsive — tablet / laptop
   ------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.hero {
		min-height: auto;
		padding-block: clamp(40px, 8vw, 64px);
	}

	.hero__graphic {
		width: 100%;
		opacity: 0.6;
	}

	.hero__graphic::before {
		background: linear-gradient(90deg, var(--onyx-bg) 0%, rgba(3, 8, 16, 0.35) 45%, var(--onyx-bg) 100%);
	}

	.hero__content {
		max-width: 640px;
	}

	.sectors__list {
		grid-template-columns: repeat(3, 1fr);
		row-gap: 28px;
	}

	.sectors__item:nth-child(3n + 1) {
		border-left: none;
	}

	.sectors__item:nth-child(-n + 3) {
		border-bottom: 1px solid var(--onyx-divider);
		padding-bottom: 20px;
	}
}

/* ---------------------------------------------------------------------
   12. Responsive — mobile
   ------------------------------------------------------------------- */
@media (max-width: 640px) {
	:root {
		--onyx-header-h: 76px;
	}

	.site-header__logo-subtitle {
		display: none;
	}

	.hero__graphic {
		opacity: 0.5;
	}

	.hero__heading {
		max-width: none;
	}

	.hero__paragraph {
		max-width: none;
	}

	.sectors__list {
		grid-template-columns: repeat(2, 1fr);
	}

	.sectors__item:nth-child(2n + 1) {
		border-left: none;
	}

	.sectors__item:nth-child(-n + 4) {
		border-bottom: 1px solid var(--onyx-divider);
		padding-bottom: 20px;
	}

	.marquee {
		gap: 4px;
	}

	.marquee__arrow {
		width: 28px;
		height: 28px;
	}

	.marquee__item {
		min-width: 120px;
		min-height: 76px;
		padding-inline: 16px;
	}

	.marquee__logo {
		max-width: 115px;
		max-height: 50px;
	}

	.contact-cta__inner {
		justify-content: center;
	}

	.btn-outline {
		width: 100%;
		justify-content: center;
	}

	.site-footer__inner {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}
}
