:root {
	--bg: #090807;
	--bg-2: #12100e;
	--paper: #f7f0e8;
	--ink: #ffffff;
	--muted: rgba(255, 255, 255, 0.68);
	--quiet: rgba(255, 255, 255, 0.42);
	--line: rgba(255, 255, 255, 0.16);
	--line-strong: rgba(255, 255, 255, 0.32);
	--amber: #f18a24;
	--violet: #6e45ff;
	--cyan: #69e6d2;
	--green: #a9ff68;
	--max: 1320px;
	--gutter: clamp(24px, 2.85vw, 56px);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-hard: cubic-bezier(0.89, 0, 0.11, 1);
}

* {
	box-sizing: border-box;
}

html {
	background: var(--bg);
	color: var(--ink);
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family:
		Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		"Microsoft YaHei", "PingFang SC", sans-serif;
	letter-spacing: 0;
	overflow-x: hidden;
}

body.menu-open {
	overflow: hidden;
}

button,
input,
textarea,
select {
	font: inherit;
}

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

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

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

.screen-reader-text:focus {
	z-index: 10000;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 12px 14px;
	clip: auto;
	background: var(--paper);
	color: #0b0a09;
	border-radius: 6px;
}

.visual-stage {
	position: fixed;
	inset: 0;
	z-index: 0;
	background: var(--bg);
	pointer-events: none;
}

.webgl-canvas {
	display: block;
	width: 100%;
	height: 100%;
	opacity: 1;
	filter: saturate(1.2) contrast(1.08);
}

.spectral-object {
	position: absolute;
	top: 50%;
	left: 53.5%;
	width: clamp(190px, 15.2vw, 292px);
	aspect-ratio: 1;
	filter:
		drop-shadow(0 28px 70px rgba(241, 138, 36, 0.22))
		drop-shadow(0 0 54px rgba(110, 69, 255, 0.26));
	opacity: 0.96;
	transform: translate(-50%, -50%) rotate(-4deg);
	animation: spectral-float 8s var(--ease) infinite alternate;
}

.spectral-object__face,
.spectral-object__lens {
	position: absolute;
	inset: 0;
	display: block;
}

.spectral-object__face--top {
	clip-path: polygon(18% 9%, 70% 8%, 93% 49%, 48% 37%);
	z-index: 2;
	background: linear-gradient(132deg, #7b4dff, #a9468f 48%, #34130f);
}

.spectral-object__face--left {
	clip-path: polygon(18% 9%, 48% 37%, 24% 91%, 7% 48%);
	z-index: 2;
	background: linear-gradient(150deg, #1b0d32, #4b1d85 46%, #0b0708);
}

.spectral-object__face--right {
	clip-path: polygon(48% 37%, 93% 49%, 78% 84%, 24% 91%);
	z-index: 3;
	background: linear-gradient(145deg, #361308, #ff951f 52%, #d35a14);
}

.spectral-object__face--bottom {
	clip-path: polygon(18% 9%, 70% 8%, 93% 49%, 78% 84%, 24% 91%, 7% 48%);
	z-index: 1;
	background:
		linear-gradient(80deg, rgba(255, 255, 255, 0.08), transparent 38%),
		linear-gradient(135deg, rgba(241, 138, 36, 0.18), rgba(110, 69, 255, 0.16)),
		#130c0a;
	opacity: 0.58;
}

.spectral-object__lens {
	inset: 39% auto auto 35%;
	width: 23%;
	z-index: 4;
	aspect-ratio: 1;
	border-radius: 50%;
	background:
		radial-gradient(circle at 34% 27%, rgba(255, 214, 133, 0.92), rgba(241, 138, 36, 0.58) 34%, rgba(83, 36, 255, 0.86) 72%, rgba(0, 0, 0, 0.24));
	box-shadow:
		inset -12px -18px 24px rgba(0, 0, 0, 0.38),
		0 0 26px rgba(241, 138, 36, 0.44);
}

@keyframes spectral-float {
	0% {
		transform: translate(-50%, -51%) rotate(-5deg) scale(0.99);
	}

	100% {
		transform: translate(-49%, -48%) rotate(1deg) scale(1.02);
	}
}

.grain-layer,
.edge-vignette {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.grain-layer {
	opacity: 0.34;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

.edge-vignette {
	background:
		linear-gradient(90deg, rgba(9, 8, 7, 0.48), rgba(9, 8, 7, 0.04) 42%, rgba(9, 8, 7, 0.58)),
		linear-gradient(180deg, rgba(9, 8, 7, 0.12), rgba(9, 8, 7, 0.42) 68%, rgba(9, 8, 7, 0.86));
}

.site-chrome {
	position: fixed;
	z-index: 80;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 34px var(--gutter);
	pointer-events: none;
}

.admin-bar .site-chrome {
	top: 32px;
}

.brand-mark,
.menu-toggle {
	pointer-events: auto;
}

.brand-mark {
	display: inline-flex;
	align-items: center;
	max-width: 220px;
	min-height: 48px;
	color: var(--ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2rem;
	line-height: 0.9;
	font-weight: 400;
	text-transform: lowercase;
}

.brand-mark .custom-logo-link,
.brand-mark img {
	display: block;
	max-width: 180px;
	max-height: 72px;
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 98px;
	height: 52px;
	padding: 0 0 0 16px;
	border: 0;
	color: var(--ink);
	background: transparent;
	cursor: pointer;
}

.menu-toggle__text {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
}

.menu-toggle__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	transition: border-color 240ms ease, background 240ms ease;
}

.menu-toggle__icon i {
	position: absolute;
	width: 3px;
	height: 3px;
	background: currentColor;
	border-radius: 50%;
	transition: transform 420ms var(--ease), opacity 280ms ease;
}

.menu-toggle__icon i:first-child {
	transform: translateY(-8px);
}

.menu-toggle__icon i:last-child {
	transform: translateY(8px);
}

.menu-toggle:hover .menu-toggle__icon,
.menu-toggle[aria-expanded="true"] .menu-toggle__icon {
	border-color: rgba(255, 255, 255, 0.72);
	background: rgba(255, 255, 255, 0.06);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child {
	transform: rotate(45deg) scaleX(5);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child {
	transform: rotate(-45deg) scaleX(5);
}

.site-menu {
	position: fixed;
	z-index: 70;
	inset: 0;
	background: rgba(9, 8, 7, 0.94);
	backdrop-filter: blur(28px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 520ms var(--ease), visibility 520ms var(--ease);
}

.site-menu.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.site-menu__inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100%;
	padding: 110px var(--gutter) 40px;
}

.site-menu__links {
	display: grid;
	gap: 8px;
	width: min(900px, 100%);
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.site-menu__links a {
	display: inline-flex;
	position: relative;
	overflow: hidden;
	font-size: 5rem;
	line-height: 1;
	font-weight: 600;
}

.site-menu__links a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.05em;
	height: 2px;
	background: currentColor;
	transform: translateX(-105%);
	transition: transform 720ms var(--ease);
}

.site-menu__links a:hover::after {
	transform: translateX(0);
}

.site-menu__meta {
	display: flex;
	justify-content: space-between;
	width: min(900px, 100%);
	margin: 52px auto 0;
	color: var(--quiet);
	font-size: 0.85rem;
}

.home-page {
	position: relative;
	z-index: 2;
}

.hero-section {
	display: flex;
	position: relative;
	align-items: flex-end;
	min-height: 100svh;
	padding: 150px var(--gutter) 76px;
}

.hero-section__content {
	position: relative;
	width: 100%;
	margin: 0;
}

.eyebrow {
	margin: 0 0 26px;
	color: var(--cyan);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.hero-title,
.section-title,
.final-title {
	margin: 0;
	letter-spacing: 0;
}

.hero-title {
	max-width: min(760px, 58vw);
	font-size: clamp(4rem, 5.15vw, 6.25rem);
	line-height: 0.96;
	font-weight: 520;
	text-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
}

.line {
	display: block;
	overflow: hidden;
	padding: 0.02em 0 0.12em;
}

.line > span {
	display: block;
	transform: translateY(115%);
	transition: transform 1100ms var(--ease);
}

.js-title.is-visible .line > span,
.hero-title .line > span {
	transform: translateY(0);
}

.hero-title .line:nth-child(2) > span {
	transition-delay: 110ms;
}

.hero-title .line:nth-child(3) > span {
	transition-delay: 210ms;
}

.hero-section__lower {
	margin-top: 34px;
}

.hero-section__lower p {
	max-width: 440px;
	margin: 0;
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.5;
}

.hero-section__lower .magnetic-cta {
	position: absolute;
	right: 0;
	bottom: 20px;
}

.magnetic-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 50px;
	padding: 0 24px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	background: var(--amber);
	color: #100b08;
	font-size: 0.95rem;
	font-weight: 750;
	white-space: nowrap;
	transition: transform 260ms var(--ease), background 260ms ease, border-color 260ms ease;
}

.magnetic-cta:hover {
	transform: translateY(-2px);
	background: #ff9d35;
	border-color: rgba(255, 255, 255, 0.36);
}

.magnetic-cta b {
	font-size: 1rem;
	line-height: 1;
}

.magnetic-cta--light {
	background: var(--paper);
	color: #100b08;
}

.scroll-cue {
	position: absolute;
	right: var(--gutter);
	bottom: 26px;
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--quiet);
	font-size: 0.78rem;
}

.scroll-cue i {
	display: block;
	width: 82px;
	height: 1px;
	background: var(--line-strong);
	transform-origin: left center;
}

.section-block {
	position: relative;
	padding: 124px var(--gutter);
	background:
		linear-gradient(180deg, rgba(9, 8, 7, 0.42), rgba(9, 8, 7, 0.76)),
		rgba(9, 8, 7, 0.48);
	backdrop-filter: blur(1px);
}

.section-block::before {
	content: "";
	position: absolute;
	top: 0;
	left: var(--gutter);
	right: var(--gutter);
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.section-shell {
	display: grid;
	grid-template-columns: minmax(132px, 0.23fr) minmax(0, 1fr);
	gap: 64px;
	width: min(var(--max), 100%);
	margin: 0 auto;
}

.section-kicker {
	position: sticky;
	top: 110px;
	align-self: start;
	display: flex;
	gap: 14px;
	color: var(--quiet);
}

.section-kicker span {
	color: var(--cyan);
	font-weight: 800;
}

.section-kicker small {
	font-size: 0.78rem;
	text-transform: uppercase;
}

.section-title {
	max-width: 980px;
	font-size: clamp(3.4rem, 5vw, 5.85rem);
	line-height: 1;
	font-weight: 500;
}

.compact-title {
	font-size: clamp(2.9rem, 4.1vw, 4.8rem);
}

.large-copy {
	max-width: 700px;
	margin: 34px 0 0;
	color: var(--muted);
	font-size: 1.32rem;
	line-height: 1.55;
}

.service-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 48px;
}

.archive-item {
	border: 1px solid var(--line);
	border-radius: 8px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
		rgba(12, 11, 10, 0.48);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
	backdrop-filter: blur(14px);
}

.service-card {
	min-height: 330px;
	padding: 24px 22px 0 0;
	border-top: 1px solid var(--line-strong);
	transition: transform 360ms var(--ease), border-color 260ms ease;
}

.service-card:hover {
	transform: translateY(-6px);
	border-color: rgba(105, 230, 210, 0.48);
}

.service-card__index {
	display: block;
	margin-bottom: 96px;
	color: var(--green);
	font-size: 0.82rem;
	font-weight: 800;
}

.service-card h3 {
	margin: 0;
	font-size: 1.55rem;
	line-height: 1.1;
}

.service-card p {
	margin: 20px 0 34px;
	color: var(--muted);
	font-size: 0.98rem;
	line-height: 1.52;
}

.service-card a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ink);
	font-size: 0.9rem;
	font-weight: 760;
}

.figures-block {
	background:
		linear-gradient(90deg, rgba(241, 138, 36, 0.17), rgba(9, 8, 7, 0.78) 44%, rgba(110, 69, 255, 0.18)),
		rgba(9, 8, 7, 0.72);
}

.figures-shell {
	align-items: end;
}

.figure-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.figure-item {
	min-height: 190px;
	padding: 18px 0 0;
	border-top: 1px solid var(--line-strong);
}

.figure-item strong {
	display: block;
	font-size: 5rem;
	line-height: 0.95;
	font-weight: 680;
}

.figure-item p {
	max-width: 240px;
	margin: 18px 0 0;
	color: var(--muted);
	line-height: 1.45;
}

.testimonial-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 48px;
}

.testimonial-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 280px;
	margin: 0;
	padding: 24px 24px 0 0;
	border-top: 1px solid var(--line-strong);
}

.testimonial-card blockquote {
	margin: 0;
	color: var(--ink);
	font-size: 1.25rem;
	line-height: 1.42;
}

.testimonial-card figcaption {
	margin-top: 32px;
}

.testimonial-card strong,
.testimonial-card span {
	display: block;
}

.testimonial-card span {
	margin-top: 6px;
	color: var(--quiet);
	font-size: 0.9rem;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 48px;
}

.post-card {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 8px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
		rgba(12, 11, 10, 0.36);
	transition: transform 360ms var(--ease), border-color 260ms ease;
}

.post-card:hover {
	transform: translateY(-6px);
	border-color: rgba(241, 138, 36, 0.48);
}

.post-card a {
	display: grid;
	height: 100%;
}

.post-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background:
		linear-gradient(135deg, rgba(241, 138, 36, 0.92), rgba(110, 69, 255, 0.82) 52%, rgba(105, 230, 210, 0.78)),
		#1b1714;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.82) contrast(1.08);
	transition: transform 720ms var(--ease), filter 360ms ease;
}

.post-card:hover .post-card__media img {
	transform: scale(1.05);
	filter: saturate(1.04) contrast(1.08);
}

.post-card__media span {
	position: absolute;
	inset: 16%;
	border: 1px solid rgba(255, 255, 255, 0.3);
	clip-path: polygon(50% 0, 100% 34%, 84% 100%, 18% 84%, 0 24%);
}

.post-card__body {
	padding: 20px;
}

.post-card time {
	display: block;
	margin-bottom: 18px;
	color: var(--green);
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
}

.post-card h3 {
	margin: 0;
	font-size: 1.28rem;
	line-height: 1.18;
}

.post-card p {
	margin: 16px 0 0;
	color: var(--muted);
	font-size: 0.94rem;
	line-height: 1.5;
}

.post-card--empty {
	grid-column: 1 / -1;
}

.final-cta {
	padding: 140px var(--gutter) 120px;
	background: var(--paper);
	color: #100b08;
}

.final-cta__inner {
	width: min(var(--max), 100%);
	margin: 0 auto;
}

.final-cta .eyebrow {
	color: #7a35ff;
}

.final-title {
	max-width: 880px;
	margin-bottom: 40px;
	font-size: 5.4rem;
	line-height: 0.98;
	font-weight: 650;
}

.archive-page {
	min-height: 100svh;
	padding: 150px var(--gutter) 80px;
	background: var(--bg);
}

.archive-page__inner {
	width: min(var(--max), 100%);
	margin: 0 auto;
}

.archive-page h1 {
	margin: 0 0 48px;
	font-size: 4rem;
	line-height: 1;
}

.archive-list {
	display: grid;
	gap: 16px;
}

.archive-item a {
	display: grid;
	gap: 12px;
	padding: 24px;
}

.archive-item time {
	color: var(--green);
	font-size: 0.8rem;
	font-weight: 800;
}

.archive-item h2,
.archive-item p {
	margin: 0;
}

.archive-item p {
	color: var(--muted);
}

.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 820ms var(--ease), transform 820ms var(--ease);
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 1100px) {
	.spectral-object {
		left: 66%;
		width: clamp(150px, 24vw, 250px);
		opacity: 0.72;
	}

	.hero-title {
		font-size: 5.2rem;
	}

	.section-title {
		font-size: 3.8rem;
	}

	.compact-title {
		font-size: 3rem;
	}

	.service-grid,
	.testimonial-row,
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.admin-bar .site-chrome {
		top: 46px;
	}
}

@media (max-width: 760px) {
	:root {
		--gutter: 20px;
	}

	.site-chrome {
		padding-top: 24px;
	}

	.brand-mark {
		font-size: 1.45rem;
	}

	.menu-toggle {
		min-width: 54px;
		padding-left: 0;
	}

	.menu-toggle__text {
		display: none;
	}

	.site-menu__links a {
		font-size: 3.2rem;
	}

	.site-menu__meta {
		display: grid;
		gap: 12px;
	}

	.spectral-object {
		top: 35%;
		left: 58%;
		width: 185px;
		opacity: 0.58;
	}

	.hero-section {
		min-height: 92svh;
		padding-top: 128px;
		padding-bottom: 54px;
	}

	.hero-title {
		font-size: 3.2rem;
		line-height: 1.02;
		max-width: 86vw;
	}

	.hero-section__lower {
		display: grid;
		gap: 24px;
	}

	.hero-section__lower .magnetic-cta {
		position: static;
		width: fit-content;
	}

	.scroll-cue {
		display: none;
	}

	.section-block {
		padding: 82px var(--gutter);
	}

	.section-shell {
		display: block;
	}

	.section-kicker {
		position: static;
		margin-bottom: 28px;
	}

	.section-title,
	.compact-title,
	.final-title {
		font-size: 2.65rem;
		line-height: 1.04;
	}

	.large-copy {
		font-size: 1.08rem;
	}

	.service-grid,
	.figure-grid,
	.testimonial-row,
	.post-grid {
		grid-template-columns: 1fr;
	}

	.service-card {
		min-height: 280px;
	}

	.service-card__index {
		margin-bottom: 54px;
	}

	.figure-item strong {
		font-size: 4rem;
	}

	.final-cta {
		padding: 92px var(--gutter);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 1ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 1ms !important;
	}

	.reveal,
	.line > span {
		opacity: 1;
		transform: none;
	}
}
