/*
	Clip-on.AI — site styles
	Hand-written. No framework, no build step.
*/

/* ---------- Tokens ---------- */

:root {
	--ink: #14171a;
	--ink-2: #4a5259;
	--ink-3: #6b757d;
	--bg: #ffffff;
	--bg-2: #f5f8f6;
	--bg-3: #eef2ef;
	--line: #e0e6e2;
	--line-strong: #c8d2cb;

	--accent: #1f6f4a;
	--accent-dark: #175539;
	--accent-soft: #e8f2ec;

	--warn: #a8541b;

	--radius: 10px;
	--radius-lg: 16px;

	--shadow-sm: 0 1px 2px rgba(20, 23, 26, 0.05);
	--shadow: 0 2px 8px rgba(20, 23, 26, 0.06), 0 1px 2px rgba(20, 23, 26, 0.04);
	--shadow-lg: 0 12px 32px rgba(20, 23, 26, 0.10), 0 2px 8px rgba(20, 23, 26, 0.05);

	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
		"Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

	--wrap: 1140px;
	--wrap-narrow: 760px;
	--header-h: 64px;
}

/* ---------- Reset ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover {
	color: var(--accent-dark);
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	line-height: 1.2;
	letter-spacing: -0.02em;
	font-weight: 650;
	text-wrap: balance;
}

p {
	margin: 0 0 1.1em;
	text-wrap: pretty;
}

p:last-child {
	margin-bottom: 0;
}

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

::selection {
	background: var(--accent-soft);
	color: var(--accent-dark);
}

/* ---------- Layout primitives ---------- */

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: 24px;
}

.wrap-narrow {
	max-width: var(--wrap-narrow);
}

.section {
	padding-block: 88px;
	border-top: 1px solid var(--line);
}

.section--tint {
	background: var(--bg-2);
}

.section--flush {
	border-top: 0;
}

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

.skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 200;
	background: var(--ink);
	color: #fff;
	padding: 10px 16px;
	border-radius: var(--radius);
	font-weight: 600;
	text-decoration: none;
	transition: top 0.15s ease;
}

.skip-link:focus {
	top: 12px;
	color: #fff;
}

/* ---------- Section headings ---------- */

.eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	font-size: 12px;
	font-weight: 650;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
}

.section-title {
	font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
	margin-bottom: 0.4em;
}

.section-lede {
	font-size: 1.125rem;
	color: var(--ink-2);
	max-width: 62ch;
}

.section-head {
	margin-bottom: 48px;
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--line);
}

.site-header .wrap {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 24px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 9px;
	font-weight: 680;
	font-size: 1.0625rem;
	letter-spacing: -0.02em;
	color: var(--ink);
	text-decoration: none;
	flex-shrink: 0;
}

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

.brand svg {
	width: 22px;
	height: 22px;
	color: var(--accent);
}

.nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 4px;
}

.nav a {
	padding: 7px 12px;
	border-radius: 7px;
	font-size: 0.9375rem;
	font-weight: 520;
	color: var(--ink-2);
	text-decoration: none;
	white-space: nowrap;
}

.nav a:hover {
	color: var(--ink);
	background: var(--bg-3);
}

.nav a.nav-cta {
	margin-left: 8px;
	background: var(--accent);
	color: #fff;
	font-weight: 600;
}

.nav a.nav-cta:hover {
	background: var(--accent-dark);
	color: #fff;
}

.nav-toggle {
	display: none;
	margin-left: auto;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	background: none;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	color: var(--ink);
	cursor: pointer;
}

.nav-toggle svg {
	width: 20px;
	height: 20px;
}

.nav-toggle .icon-close {
	display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

.nav-toggle[aria-expanded="true"] .icon-open {
	display: none;
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	padding-block: 96px 72px;
	background:
		radial-gradient(ellipse 70% 60% at 15% 0%, var(--accent-soft), transparent 70%),
		linear-gradient(180deg, #fbfdfb, var(--bg));
	overflow: hidden;
}

.hero-inner {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 56px;
	align-items: center;
}

.hero h1 {
	font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.5rem);
	line-height: 1.08;
	letter-spacing: -0.035em;
	margin-bottom: 24px;
}

.hero h1 em {
	font-style: normal;
	color: var(--accent);
}

.hero-lede {
	font-size: 1.1875rem;
	color: var(--ink-2);
	max-width: 52ch;
	margin-bottom: 32px;
}

.hero-figure {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	background: var(--bg-3);
}

.hero-figure img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.hero-figure figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 18px 14px;
	background: linear-gradient(transparent, rgba(10, 14, 12, 0.78));
	color: rgba(255, 255, 255, 0.94);
	font-size: 0.8125rem;
	line-height: 1.45;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 22px;
	padding: 6px 13px 6px 10px;
	background: var(--bg);
	border: 1px solid var(--line-strong);
	border-radius: 100px;
	font-size: 0.8125rem;
	font-weight: 550;
	color: var(--ink-2);
	box-shadow: var(--shadow-sm);
}

.badge .dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	flex-shrink: 0;
}

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

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: 9px;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease,
		transform 0.15s ease;
}

.btn svg {
	width: 16px;
	height: 16px;
}

.btn-primary {
	background: var(--accent);
	color: #fff;
}

.btn-primary:hover {
	background: var(--accent-dark);
	color: #fff;
	transform: translateY(-1px);
}

.btn-secondary {
	background: var(--bg);
	color: var(--ink);
	border-color: var(--line-strong);
}

.btn-secondary:hover {
	background: var(--bg-2);
	color: var(--ink);
	border-color: var(--ink-3);
	transform: translateY(-1px);
}

/* ---------- Stat strip ---------- */

.stat-strip {
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--bg-2);
}

.stat-strip .wrap {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	padding-inline: 0;
	background: var(--line);
}

.stat {
	background: var(--bg-2);
	padding: 30px 24px;
	text-align: center;
}

.stat-value {
	display: block;
	font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.125rem);
	font-weight: 680;
	letter-spacing: -0.03em;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
}

.stat-label {
	display: block;
	margin-top: 6px;
	font-size: 0.8125rem;
	color: var(--ink-3);
	letter-spacing: 0.01em;
}

/* ---------- Prose ---------- */

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

.prose h3 {
	margin-top: 2em;
	font-size: 1.25rem;
	color: var(--ink);
}

.prose h3:first-child {
	margin-top: 0;
}

.prose ul {
	margin: 0 0 1.1em;
	padding-left: 0;
	list-style: none;
	color: var(--ink-2);
}

.prose ul li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 0.6em;
}

.prose ul li::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 0.68em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
}

.prose strong {
	color: var(--ink);
	font-weight: 620;
}

/* ---------- Cards ---------- */

.grid {
	display: grid;
	gap: 24px;
}

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

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

.card {
	padding: 28px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

.section--tint .card {
	background: var(--bg);
}

.card h3 {
	font-size: 1.125rem;
	margin-bottom: 0.5em;
}

.card p {
	color: var(--ink-2);
	font-size: 0.9688rem;
	margin-bottom: 0;
}

.card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 18px;
	border-radius: 10px;
	background: var(--accent-soft);
	color: var(--accent);
}

.card-icon svg {
	width: 20px;
	height: 20px;
}

.card-num {
	display: inline-block;
	margin-bottom: 14px;
	font-family: var(--mono);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--accent);
}

/* ---------- Figures ---------- */

.figure {
	margin: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--bg);
}

.figure img {
	width: 100%;
	background: var(--bg);
}

.figure figcaption {
	padding: 14px 18px;
	border-top: 1px solid var(--line);
	background: var(--bg-2);
	font-size: 0.8438rem;
	line-height: 1.5;
	color: var(--ink-3);
}

.figure figcaption strong {
	color: var(--ink-2);
	font-weight: 600;
}

.figure--wide img {
	aspect-ratio: 3 / 1;
	object-fit: cover;
}

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

.table-scroll {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--bg);
	-webkit-overflow-scrolling: touch;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

thead th {
	padding: 14px 18px;
	text-align: left;
	background: var(--bg-2);
	border-bottom: 1px solid var(--line);
	font-size: 0.75rem;
	font-weight: 650;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-3);
	white-space: nowrap;
}

tbody td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--line);
	color: var(--ink-2);
	font-variant-numeric: tabular-nums;
}

tbody tr:last-child td {
	border-bottom: 0;
}

tbody tr.is-best td {
	background: var(--accent-soft);
}

tbody td strong,
tbody td b {
	color: var(--ink);
	font-weight: 620;
}

.tag {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 7px;
	border-radius: 100px;
	background: var(--accent);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 650;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	vertical-align: 1px;
}

/* ---------- Metric tiles ---------- */

.metrics {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.metric {
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg);
}

.metric-value {
	display: block;
	font-size: 1.875rem;
	font-weight: 680;
	letter-spacing: -0.03em;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	color: var(--accent);
}

.metric-label {
	display: block;
	margin-top: 8px;
	font-size: 0.8438rem;
	color: var(--ink-3);
	line-height: 1.45;
}

/* ---------- Callout ---------- */

.callout {
	padding: 26px 30px;
	border: 1px solid var(--line);
	border-left: 3px solid var(--accent);
	border-radius: var(--radius);
	background: var(--bg);
	font-size: 0.9688rem;
	color: var(--ink-2);
}

.callout-title {
	display: block;
	margin-bottom: 10px;
	font-size: 0.75rem;
	font-weight: 650;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

/* ---------- Split (text + media) ---------- */

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}

.split--reverse .split-media {
	order: -1;
}

/* Top-align when one column is much taller than the other */
.split--top {
	align-items: start;
}

/* NOTE: never crop hardware photos — the sensor unit on the grabber
   shaft must stay visible. Tall figures are allowed their full height. */

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

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

.person {
	display: flex;
	gap: 16px;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--bg);
}

.person img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--bg-3);
}

.person-name {
	font-size: 1rem;
	font-weight: 620;
	margin: 0 0 2px;
	line-height: 1.3;
}

.person-role {
	display: block;
	margin-bottom: 8px;
	font-size: 0.8125rem;
	color: var(--accent);
	font-weight: 550;
}

.person p {
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--ink-2);
	margin: 0;
}

.alumni {
	margin-top: 32px;
	padding: 20px 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg-2);
	font-size: 0.9375rem;
	color: var(--ink-2);
}

.alumni strong {
	color: var(--ink);
}

/* ---------- Founders ---------- */

.founders {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}

.founder {
	padding: 30px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--bg);
}

.founder-name {
	font-size: 1.1875rem;
	margin-bottom: 2px;
}

.founder-role {
	display: block;
	margin-bottom: 16px;
	font-size: 0.875rem;
	color: var(--accent);
	font-weight: 550;
}

.founder p {
	font-size: 0.9375rem;
	color: var(--ink-2);
}

/* ---------- Contact ---------- */

.contact {
	text-align: center;
	background:
		radial-gradient(ellipse 60% 70% at 50% 100%, var(--accent-soft), transparent 70%),
		var(--bg-2);
}

.contact .section-lede {
	margin-inline: auto;
}

.contact .btn-row {
	justify-content: center;
	margin-top: 32px;
}

.involve {
	margin-top: 56px;
	text-align: left;
}

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

.site-footer {
	padding-block: 40px;
	border-top: 1px solid var(--line);
	background: var(--bg);
	font-size: 0.875rem;
	color: var(--ink-3);
}

.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
}

.social {
	display: flex;
	gap: 8px;
}

.social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--ink-2);
}

.social a:hover {
	background: var(--bg-2);
	color: var(--accent);
	border-color: var(--line-strong);
}

.social svg {
	width: 17px;
	height: 17px;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

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

@media (max-width: 980px) {
	.hero-inner,
	.split {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.split--reverse .split-media {
		order: 0;
	}

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

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

@media (max-width: 860px) {
	.nav-toggle {
		display: flex;
	}

	.nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		margin: 0;
		padding: 12px 16px 20px;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow-lg);
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	}

	.nav.is-open {
		transform: none;
		opacity: 1;
		visibility: visible;
	}

	.nav a {
		padding: 12px 14px;
		font-size: 1rem;
	}

	.nav a.nav-cta {
		margin: 8px 0 0;
		text-align: center;
		justify-content: center;
	}
}

@media (max-width: 720px) {
	body {
		font-size: 16px;
	}

	.section {
		padding-block: 60px;
	}

	.hero {
		padding-block: 56px 48px;
	}

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

	.grid-2,
	.grid-3,
	.people,
	.founders {
		grid-template-columns: 1fr;
	}

	.section-head {
		margin-bottom: 32px;
	}

	.figure--wide img {
		aspect-ratio: 16 / 9;
	}

	.card,
	.founder {
		padding: 22px;
	}

	.callout {
		padding: 20px 22px;
	}

	.site-footer .wrap {
		justify-content: center;
		text-align: center;
	}
}

@media (max-width: 460px) {
	.metrics {
		grid-template-columns: 1fr;
	}
}

/* ---------- Alive: the site responds to you ---------- */

/* Hero glow that follows the cursor */
.hero-glow {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.5s ease;
	background: radial-gradient(
		420px circle at var(--mx, 50%) var(--my, 40%),
		rgba(31, 111, 74, 0.12),
		transparent 65%
	);
}

.hero.is-live .hero-glow {
	opacity: 1;
}

/* Cards, people, metrics lift toward you */
.card,
.person,
.founder,
.metric,
.callout,
.alumni {
	transition: transform 0.3s ease, box-shadow 0.3s ease,
		border-color 0.3s ease;
}

.card:hover,
.person:hover,
.founder:hover,
.metric:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--line-strong);
}

.callout:hover {
	transform: translateX(3px);
	border-left-color: var(--accent-dark);
}

.card-icon {
	transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover .card-icon {
	transform: translateY(-2px) rotate(-4deg);
	background: var(--accent);
	color: #fff;
}

/* Images breathe slightly on hover */
.figure img,
.hero-figure img {
	transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.figure:hover img,
.hero-figure:hover img {
	transform: scale(1.025);
}

.figure figcaption {
	position: relative; /* paint above the zoomed image */
}

/* Paperclip wiggles when greeted */
@keyframes wiggle {
	0%, 100% { transform: rotate(0deg); }
	25% { transform: rotate(-11deg); }
	60% { transform: rotate(8deg); }
}

.brand:hover svg {
	animation: wiggle 0.5s ease;
}

/* The badge dot breathes */
@keyframes breathe {
	0%, 100% { box-shadow: 0 0 0 0 rgba(31, 111, 74, 0.35); }
	50% { box-shadow: 0 0 0 6px rgba(31, 111, 74, 0); }
}

.badge .dot {
	animation: breathe 2.6s ease-in-out infinite;
}

/* Button icons nudge forward */
.btn svg {
	transition: transform 0.2s ease;
}

.btn:hover svg {
	transform: translateX(3px);
}

/* Badge row in hero */
.badge-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 22px;
}

.badge-row .badge {
	margin-bottom: 0;
}

a.badge {
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

a.badge:hover {
	color: var(--accent-dark);
	border-color: var(--accent);
	transform: translateY(-1px);
}

/* ---------- Life layer: a resident spirit in the page ---------- */

#life-canvas {
	position: fixed;
	inset: 0;
	z-index: 50; /* above content, below the sticky header (100) */
	pointer-events: none;
}

@media print {
	#life-canvas {
		display: none;
	}
}

/* ---------- Motion / print ---------- */

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}
}

@media print {
	.site-header,
	.nav-toggle,
	.btn-row,
	.social {
		display: none !important;
	}

	.reveal {
		opacity: 1 !important;
		transform: none !important;
	}

	.section {
		padding-block: 24px;
		break-inside: avoid;
	}

	body {
		font-size: 11pt;
	}
}
