/* Jianify LLC — warm minimal. No third-party resources: fonts are system stacks,
   the paper grain is an inline SVG data URI. Both are load-bearing for the
   promise made on the privacy page. */

:root {
	--bg: #faf9f7;
	--ink: #1c1b19;
	--muted: #625e57;
	--accent: #8b593e;
	--hair: rgba(28, 27, 25, 0.12);
	--mark: rgba(28, 27, 25, 0.075);
	--glow: rgba(196, 168, 130, 0.16);
	--grain: 0.035;
	--icon-rot: 0deg;

	--serif: ui-serif, "New York", Georgia, "Songti SC", "Noto Serif CJK SC", serif;
	--sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
		"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;

	--pad: clamp(1.5rem, 5vw, 4rem);
	--measure: 40rem;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #141312;
		--ink: #f2efe9;
		--muted: #b3aaa0;
		--accent: #d2a886;
		--hair: rgba(242, 239, 233, 0.14);
		--mark: rgba(242, 239, 233, 0.085);
		--glow: rgba(196, 168, 130, 0.09);
		--grain: 0.018;
		--icon-rot: 180deg;
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--bg: #141312;
	--ink: #f2efe9;
	--muted: #b3aaa0;
	--accent: #d2a886;
	--hair: rgba(242, 239, 233, 0.14);
	--mark: rgba(242, 239, 233, 0.085);
	--glow: rgba(196, 168, 130, 0.09);
	--grain: 0.018;
	--icon-rot: 180deg;
	color-scheme: dark;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	/* Crop the off-screen fixed watermark without widening the mobile page. */
	overflow-x: clip;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	transition: background-color 0.25s ease, color 0.25s ease;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: var(--grain);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * {
	position: relative;
	z-index: 1;
}

::selection {
	background: var(--ink);
	color: var(--bg);
}

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

/* The 简 stays put while the copy scrolls past it. */
.mark {
	position: fixed;
	top: 50%;
	right: -2vw;
	z-index: 0;
	transform: translateY(-50%);
	color: var(--mark);
	font-family: var(--serif);
	font-size: clamp(16rem, 40vw, 34rem);
	line-height: 1;
	pointer-events: none;
	user-select: none;
	transition: color 0.25s ease;
}

/* Top bar */

.bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.75rem var(--pad);
}

/* Soft fade so scrolled copy does not collide with the wordmark. */
.bar::before {
	content: "";
	position: absolute;
	inset: 0 0 -2.5rem;
	z-index: -1;
	background: linear-gradient(to bottom, var(--bg) 45%, transparent);
	pointer-events: none;
}

.wordmark {
	font-family: var(--serif);
	font-size: 1.2rem;
	letter-spacing: -0.01em;
	color: inherit;
	text-decoration: none;
}

.bar-nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	font-size: 0.85rem;
}

.bar-nav a,
.foot-meta a {
	color: var(--muted);
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 1px;
	transition: background-size 0.3s ease, color 0.2s ease;
}

.bar-nav a:hover,
.foot-meta a:hover {
	color: var(--ink);
	background-size: 100% 1px;
}

.theme {
	display: grid;
	place-items: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	margin: -0.75rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--muted);
	cursor: pointer;
	transition: color 0.2s ease;
}

.theme:hover {
	color: var(--ink);
}

.theme svg {
	display: block;
	transform: rotate(var(--icon-rot));
	transition: transform 0.45s ease;
}

/* Sections */

.band {
	padding: clamp(4rem, 12vh, 8rem) var(--pad);
}

.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	/* Fill the visible screen so the next section does not peek. dvh tracks
	   the mobile browser chrome; svh is the fallback. */
	min-height: 100svh;
	min-height: 100dvh;
}

.hero::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: -1;
	width: min(120vw, 68rem);
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	background: radial-gradient(circle, var(--glow), transparent 62%);
	pointer-events: none;
}

.hero-title {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(2.75rem, 8.5vw, 6rem);
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: -0.025em;
}

.hero-sub {
	max-width: 29rem;
	margin: 1.75rem 0 0;
	color: var(--muted);
	font-size: clamp(1rem, 2vw, 1.15rem);
	line-height: 1.65;
	text-wrap: balance;
}

.hero-sub:lang(zh-Hans) {
	max-width: 24em;
}

.story {
	padding-top: clamp(4.5rem, 9vw, 8rem);
	padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.approach {
	padding-top: clamp(2.5rem, 5vw, 4.5rem);
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

.kicker {
	margin: 0 0 2rem;
	color: var(--muted);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.statement {
	max-width: var(--measure);
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(1.5rem, 3.4vw, 2.75rem);
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.name-note {
	max-width: var(--measure);
	margin: 2rem 0 0;
	padding-left: 1rem;
	border-left: 1px solid var(--accent);
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.8;
	text-wrap: pretty;
}

.lead {
	max-width: var(--measure);
	margin: 0;
	font-size: clamp(1.05rem, 1.8vw, 1.2rem);
	line-height: 1.75;
}

.body {
	max-width: var(--measure);
	margin: 2rem 0 0;
	color: var(--muted);
	font-size: clamp(1.0625rem, 1.5vw, 1.125rem);
	line-height: 1.8;
	text-wrap: pretty;
}

.body:lang(zh-Hans) {
	text-wrap: balance;
}

/* Principles */

.principles {
	max-width: var(--measure);
	margin: 0;
	padding: 0;
	list-style: none;
}

.principles li {
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1fr);
	align-items: baseline;
}

.principles li + li {
	margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

.principles .num {
	color: var(--accent);
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.08em;
}

.principles h3 {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(1.375rem, 2.2vw, 1.75rem);
	font-weight: 400;
	letter-spacing: -0.01em;
	line-height: 1.4;
}

.principles p {
	grid-column: 2;
	max-width: 36em;
	margin: 0.75rem 0 0;
	color: var(--muted);
	font-size: 1.0625rem;
	line-height: 1.8;
	text-wrap: pretty;
}

/* End with a direct invitation; company records stay in the shared footer. */
.contact {
	padding-top: clamp(3rem, 6vw, 5rem);
	padding-bottom: clamp(4.5rem, 9vw, 8rem);
}

.contact .lead {
	font-size: clamp(1.125rem, 1.8vw, 1.375rem);
	text-wrap: pretty;
}

.contact-note {
	max-width: var(--measure);
	margin: 1rem 0 0;
	color: var(--muted);
	font-size: 1.0625rem;
	line-height: 1.8;
	text-wrap: pretty;
}

.contact-link {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 2.75rem;
	margin-top: 1.25rem;
	color: var(--accent);
	font-size: 1.125rem;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
	transition: color 0.2s ease;
}

.contact-link:hover {
	color: var(--ink);
}

/* Privacy pages */

.page-head {
	padding: clamp(7rem, 18vh, 10rem) var(--pad) 0;
}

.page-head h1 {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(2.25rem, 6vw, 3.5rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.page-sub {
	margin: 1rem 0 0;
	color: var(--muted);
	font-size: 0.9rem;
}

.prose {
	padding: clamp(2.5rem, 7vh, 4rem) var(--pad) clamp(3rem, 9vh, 5rem);
}

.prose h2 {
	margin: 3rem 0 0.75rem;
	font-family: var(--serif);
	font-size: 1.2rem;
	font-weight: 400;
	letter-spacing: -0.005em;
}

.prose p {
	max-width: var(--measure);
	margin: 0;
	color: var(--muted);
	line-height: 1.8;
}

.prose .lead {
	color: var(--ink);
}

.prose a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

/* Footer — carries the legal name, address and phone that the bank and D&B
   check against the application forms. Keep it as plain text. */

.foot {
	padding: clamp(3rem, 9vh, 5rem) var(--pad) 3rem;
	border-top: 1px solid var(--hair);
	color: var(--muted);
	font-size: 0.82rem;
	line-height: 1.8;
}

.foot-name {
	margin: 0;
	color: var(--ink);
}

.foot-line {
	max-width: 52rem;
	margin: 0.25rem 0 0;
}

.foot-line a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
	text-decoration-color: var(--hair);
	transition: text-decoration-color 0.2s ease;
}

.foot-line a:hover {
	text-decoration-color: currentColor;
}

.foot-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin: 1.5rem 0 0;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

@media (max-width: 34rem) {
	.principles li {
		grid-template-columns: 2.5rem minmax(0, 1fr);
	}

	/* A narrow column leaves the 简 nowhere to sit clear of the copy, so it
	   moves to the bottom corner and fades further: it will overlap the longest
	   section's last line, and needs to cost nothing when it does. */
	.mark {
		top: auto;
		bottom: 3vh;
		right: -20vw;
		transform: none;
		font-size: 14rem;
		opacity: 0.55;
	}
}

@media (max-width: 24rem) {
	.hero-title {
		font-size: clamp(2rem, 11.4vw, 2.75rem);
	}
}
