/* Callisto Automation — main styles */

/* Self-hosted fonts (no Google Fonts request) */
@font-face {
	font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500 800; font-display: swap;
	src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
	src: url("/assets/fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--bg: #0e0c09;
	--bg-2: #15120d;
	--surface: #1b1711;
	--line: rgba(243, 236, 224, 0.1);
	--line-strong: rgba(243, 236, 224, 0.18);
	--text: #f3ece0;
	--muted: #b3aa9b;
	--gold: #d8a54d;
	--gold-hi: #e6b964;
	--gold-ink: #17120a;
	--ok: #8fc79a;
	--err: #e59a8a;
	--font-head: "Plus Jakarta Sans", system-ui, sans-serif;
	--font-body: "Inter", system-ui, sans-serif;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 4px;
	--section: clamp(72px, 10vw, 128px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 1.0625rem/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a[href^="tel:"] { white-space: nowrap; }
a:hover { color: var(--gold-hi); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--gold); color: var(--gold-ink); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.eyebrow {
	font: 700 0.78rem/1.2 var(--font-head);
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--gold);
	margin-bottom: 1rem;
}
.h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--text); line-height: 1.55; }
.section { padding: var(--section) 0; }
.section__head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head p:not(.eyebrow) { color: var(--muted); }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons: square, uppercase */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 0 26px;
	border: 1px solid transparent; border-radius: var(--radius);
	font: 700 0.85rem/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.1em;
	text-decoration: none; cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn--gold { background: var(--gold); color: var(--gold-ink); }
.btn--gold:hover { background: var(--gold-hi); color: var(--gold-ink); }
.btn--ghost { border-color: rgba(243, 236, 224, 0.4); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.78rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* Header */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 50;
	background: rgba(14, 12, 9, 0.6);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled,
.site-header.is-open { background: rgba(14, 12, 9, 0.96); border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none; }
.brand:hover { color: var(--gold); }
.brand__name { font: 800 1.08rem/1 var(--font-head); color: var(--text); letter-spacing: -0.01em; }
.brand__name span { color: var(--gold); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
	color: var(--text); text-decoration: none;
	font: 600 0.8rem/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.12em;
}
.site-nav ul a:hover { color: var(--gold); }

.nav-toggle {
	display: none; width: 44px; height: 44px; padding: 0;
	background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--text);
	position: relative; transition: transform 0.25s, background-color 0.25s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: fixed; top: 72px; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 20px;
		padding: 20px var(--gutter) 28px;
		background: rgba(14, 12, 9, 0.98); border-bottom: 1px solid var(--line);
		display: none;
	}
	.site-header.is-open .site-nav { display: flex; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
	.site-nav .btn { min-height: 50px; }
}

/* Hero */
.hero {
	position: relative;
	min-height: 100vh; min-height: 100svh;
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: 120px 0 0;
	overflow: hidden;
}
.hero__bg {
	position: absolute; inset: 0; z-index: 0;
	width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
	filter: sepia(0.45) saturate(0.85) brightness(0.85);
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background:
		linear-gradient(90deg, rgba(14, 12, 9, 0.92) 0%, rgba(14, 12, 9, 0.7) 45%, rgba(14, 12, 9, 0.35) 100%),
		linear-gradient(0deg, var(--bg) 0%, rgba(14, 12, 9, 0) 40%);
}
.hero > .wrap { position: relative; z-index: 2; }
.hero__inner { padding-bottom: clamp(48px, 8vh, 88px); }
.hero__title { font-size: clamp(3.1rem, 9vw, 6.4rem); font-weight: 800; line-height: 0.98; margin-bottom: 0.35em; }
.hero__lead { max-width: 560px; font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: #e4dccd; margin-bottom: 2rem; }

.stats {
	display: grid; grid-template-columns: repeat(4, 1fr);
	list-style: none; margin: 0; padding: 0;
	border-top: 1px solid var(--line-strong);
}
.stats li { padding: 26px 24px 30px 0; }
.stats li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.stats strong { display: block; font: 800 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 var(--font-head); color: var(--gold); margin-bottom: 6px; }
.stats span { color: var(--muted); font-size: 0.92rem; line-height: 1.4; display: block; }
@media (max-width: 760px) {
	.stats { grid-template-columns: 1fr 1fr; }
	.stats li, .stats li + li { padding: 20px 14px 22px 0; border-left: 0; }
	.stats li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
	.stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Intro */
.intro { border-bottom: 1px solid var(--line); }
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro__grid p:not(.lead) { color: var(--muted); }
@media (max-width: 860px) { .intro__grid { grid-template-columns: 1fr; } }

/* Services: numbered list */
.services__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.services__head { position: sticky; top: 112px; margin-bottom: 0; }
.services__head .btn { margin-top: 0.75rem; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
	display: grid; grid-template-columns: 64px 1fr; gap: 16px;
	padding: 30px 0; border-bottom: 1px solid var(--line);
}
.service__num { font: 800 1rem/1.6 var(--font-head); color: var(--gold); letter-spacing: 0.06em; }
.service__name { font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 700; margin-bottom: 0.4em; }
.service p { color: var(--muted); margin: 0; }
@media (max-width: 860px) {
	.services__grid { grid-template-columns: 1fr; }
	.services__head { position: static; }
	.service { grid-template-columns: 44px 1fr; }
}

/* Process */
.process { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
	border-top: 2px solid var(--gold);
}
.step { padding: 28px 24px 8px 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step__num { display: block; font: 700 0.75rem/1 var(--font-head); color: var(--gold); text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 14px; }
.step__name { font-size: 1.2rem; font-weight: 700; }
.step p { color: var(--muted); font-size: 0.97rem; margin: 0; }
@media (max-width: 1000px) {
	.steps { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--gold); }
	.step, .step + .step { padding: 0 0 32px 28px; border-left: 0; }
	.step:last-child { padding-bottom: 0; }
}

/* About / founder */
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__panel {
	aspect-ratio: 4 / 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
	border: 1px solid var(--line-strong); border-radius: var(--radius);
	background: var(--surface);
	color: var(--gold);
}
.about__panel-tag { font: 800 1.1rem/1.2 var(--font-head); color: var(--text); text-transform: uppercase; letter-spacing: 0.14em; margin: 0; }
.about p:not(.lead):not(.eyebrow):not(.btn-row) { color: var(--muted); }
.about .btn-row { margin-top: 1.5rem; }
@media (max-width: 860px) {
	.about__grid { grid-template-columns: 1fr; }
	.about__panel { aspect-ratio: 16 / 9; max-height: 280px; }
	.about__panel .mark { width: 96px; height: 96px; }
}

/* Packages */
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.package {
	position: relative; display: flex; flex-direction: column;
	padding: 36px 30px 30px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.package--featured { border-color: var(--gold); border-top-width: 3px; }
.package__flag { font: 700 0.72rem/1 var(--font-head); color: var(--gold); text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 14px; }
.package__name { font-size: 1.7rem; font-weight: 800; margin-bottom: 0.25em; }
.package__for { color: var(--muted); margin-bottom: 1.5rem; }
.package .btn { margin-top: auto; }
.checklist { list-style: none; margin: 0 0 2rem; padding: 0; }
.checklist li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--line); font-size: 0.98rem; }
.checklist li::before {
	content: ""; position: absolute; left: 2px; top: 17px;
	width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
	transform: rotate(-45deg);
}
@media (max-width: 960px) { .package-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
	list-style: none; cursor: pointer;
	display: flex; justify-content: space-between; gap: 20px; align-items: center;
	padding: 24px 0; font: 700 1.12rem/1.35 var(--font-head);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
	content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center;
	border: 1px solid var(--line-strong); border-radius: var(--radius);
	color: var(--gold); font: 400 1.3rem/1 var(--font-body); transition: transform 0.2s;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item summary:hover { color: var(--gold); }
.faq__item p { color: var(--muted); margin: 0; padding: 0 52px 26px 0; }
@media (max-width: 860px) {
	.faq__grid { grid-template-columns: 1fr; }
	.faq__item p { padding-right: 0; }
}

/* Contact */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.next-steps { margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: s; }
.next-steps li { counter-increment: s; position: relative; padding: 16px 0 16px 48px; border-top: 1px solid var(--line); color: var(--muted); }
.next-steps li::before {
	content: counter(s); position: absolute; left: 0; top: 14px;
	width: 30px; height: 30px; display: grid; place-items: center;
	border: 1px solid var(--gold); border-radius: var(--radius); color: var(--gold);
	font: 700 0.85rem/1 var(--font-head);
}
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.contact-card__label { margin: 0 0 8px; font: 600 0.78rem/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.contact-card__phone { display: inline-block; margin-bottom: 20px; font: 800 clamp(2rem, 5vw, 3rem)/1.1 var(--font-head); letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.contact-card__phone:hover { color: var(--gold); }
.contact-card p:not(.contact-card__label):not(.btn-row) { color: var(--muted); margin-bottom: 1.6em; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: 0.95rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer__tag { color: var(--muted); max-width: 360px; margin-top: 16px; }
.site-footer__h { font: 700 0.75rem/1 var(--font-head); color: var(--gold); text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; color: var(--muted); }
.site-footer ul a { color: var(--text); text-decoration: none; }
.site-footer ul a:hover { color: var(--gold); }
.site-footer__base { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.site-footer__base p { margin: 0; }
.site-footer__base a { color: var(--muted); }
@media (max-width: 760px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__grid > :first-child { grid-column: 1 / -1; }
	.site-footer__base { flex-direction: column; }
}

/* Inner pages */
.inner-page { padding: 150px 0 var(--section); min-height: 70vh; }
.page__head { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.page__head h1, .page--404 h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.page--404 .lead { color: var(--muted); margin-bottom: 2rem; }
.prose { color: #ddd5c7; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; color: var(--text); }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.post-card { padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-card h2 { font-size: 1.5rem; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card__meta { color: var(--muted); font-size: 0.9rem; }

/* Scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; transition: none; }
}
