/* Phoenix Software — "Ember" restoration
   Gartenmann Software AG */

:root {
	--bg:      #140F0B;
	--bg-2:    #0C0907;
	--ember:   #ED8226;  /* brand orange */
	--flame:   #FF5A2C;
	--spark:   #F6B45C;
	--paper:   #F5ECE2;
	--ash:     #B9ADA1;
	--line:    rgba(245, 236, 226, 0.10);
	--card:    rgba(245, 236, 226, 0.035);

	--display: system-ui, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
	--body:    system-ui, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
	--mono:    "Cascadia Code", "Cascadia Mono", Consolas, "SF Mono", ui-monospace, "Segoe UI Mono", monospace;

	--maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--body);
	color: var(--paper);
	background: var(--bg-2);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	line-height: 1.6;
	overflow-x: hidden;
}

a { color: var(--spark); text-decoration: none; }
a:hover { color: var(--ember); }

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

:focus-visible {
	outline: 2px solid var(--ember);
	outline-offset: 3px;
	border-radius: 2px;
}

.wrap {
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 28px;
}

.eyebrow {
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--ember);
	margin: 0;
}

/* ---------- top bar ---------- */
.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(12, 9, 7, 0.72);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.topbar .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}
.brandmark {
	font-family: var(--display);
	font-weight: 800;
	font-size: 17px;
	letter-spacing: 0.02em;
	color: var(--paper);
	display: inline-flex;
	align-items: baseline;
	gap: 9px;
}
.brandmark .dot { color: var(--flame); }
.topbar nav a {
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ash);
}
.topbar nav a:hover { color: var(--paper); }

/* ---------- hero ---------- */
.hero {
	position: relative;
	text-align: center;
	padding: clamp(72px, 13vw, 150px) 0 clamp(56px, 9vw, 110px);
	overflow: hidden;
}
/* the ember glow — the signature */
.hero::before {
	content: "";
	position: absolute;
	top: -10%;
	left: 50%;
	width: 760px;
	height: 760px;
	max-width: 130vw;
	transform: translateX(-50%);
	background: radial-gradient(circle at 50% 45%,
		rgba(255, 90, 44, 0.42) 0%,
		rgba(237, 130, 38, 0.22) 28%,
		rgba(246, 180, 92, 0.07) 48%,
		transparent 68%);
	filter: blur(8px);
	z-index: 0;
	animation: emberPulse 6.5s ease-in-out infinite;
	pointer-events: none;
}
@keyframes emberPulse {
	0%, 100% { opacity: 0.78; transform: translateX(-50%) scale(1); }
	50%      { opacity: 1;    transform: translateX(-50%) scale(1.06); }
}
.hero .wrap { position: relative; z-index: 1; }

.hero .phoenix {
	width: 230px;
	height: auto;
	margin: 0 auto 30px;
	filter: drop-shadow(0 8px 34px rgba(255, 90, 44, 0.45));
}

.hero h1 {
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(2.6rem, 7vw, 5.2rem);
	line-height: 0.98;
	letter-spacing: -0.025em;
	margin: 18px auto 0;
	max-width: 14ch;
}
.hero h1 .glow {
	background: linear-gradient(95deg, var(--spark), var(--flame));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero p.lead {
	color: var(--ash);
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	max-width: 46ch;
	margin: 22px auto 0;
}

/* ---------- platforms ---------- */
.platforms {
	padding: clamp(56px, 8vw, 104px) 0;
	border-top: 1px solid var(--line);
}
.section-head {
	display: flex;
	align-items: baseline;
	gap: 18px;
	margin-bottom: 46px;
}
.section-head h2 {
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(1.5rem, 3.4vw, 2.25rem);
	letter-spacing: -0.02em;
	margin: 0;
}
.section-head .rule {
	flex: 1;
	height: 1px;
	background: var(--line);
}

.grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.card {
	position: relative;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--card);
	padding: 26px 24px 28px;
	overflow: hidden;
	transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
/* ember edge that ignites on hover */
.card::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 14px;
	box-shadow: inset 0 0 0 1px transparent, 0 0 0 0 transparent;
	transition: box-shadow 0.35s ease;
	pointer-events: none;
}
.card:hover {
	transform: translateY(-6px);
	border-color: rgba(237, 130, 38, 0.55);
}
.card:hover::after {
	box-shadow: inset 0 0 22px rgba(255, 90, 44, 0.18),
	            0 18px 40px rgba(0, 0, 0, 0.45);
}

.card .thumb {
	position: relative;
	border-radius: 9px;
	overflow: hidden;
	margin-bottom: 22px;
	aspect-ratio: 250 / 130;
	background: #000;
}
.card .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease, filter 0.5s ease;
	filter: saturate(0.85) brightness(0.92);
}
.card:hover .thumb img {
	transform: scale(1.05);
	filter: saturate(1.1) brightness(1);
}
/* reveal overlay that replaces the old "Test" text */
.card .reveal {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: 16px;
	background: linear-gradient(to top,
		rgba(20, 8, 3, 0.92) 0%,
		rgba(20, 8, 3, 0.45) 45%,
		transparent 100%);
	opacity: 0;
	transition: opacity 0.4s ease;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--spark);
}
.card:hover .reveal { opacity: 1; }

.card h3 {
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.45rem;
	letter-spacing: -0.01em;
	margin: 0 0 10px;
}
.card p {
	color: var(--ash);
	font-size: 0.97rem;
	margin: 0;
}

/* ---------- footer / contact ---------- */
.footer {
	border-top: 1px solid var(--line);
	background: var(--bg);
	padding: clamp(48px, 7vw, 80px) 0 44px;
}
.footer .cols {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 64px;
	align-items: flex-start;
	justify-content: space-between;
}
.contact-block .eyebrow { margin-bottom: 14px; }
.contact-block .addr {
	font-family: var(--display);
	font-weight: 600;
	font-size: clamp(1.2rem, 2.4vw, 1.6rem);
	line-height: 1.45;
	letter-spacing: -0.01em;
	color: var(--paper);
}
.contact-block .addr a { color: var(--ember); }
.meta {
	text-align: right;
	color: var(--ash);
	font-size: 0.92rem;
}
.meta .eyebrow { margin-bottom: 10px; }
.footer .baseline {
	margin-top: 48px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ash);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
	.grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
	.footer .cols { flex-direction: column; }
	.meta { text-align: left; }
}
@media (max-width: 480px) {
	.topbar nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero::before { animation: none; }
	* { transition: none !important; }
}
