/* ---------------------------------------------------------
   Albissus — design tokens
   Black & yellow palette (#1c1c1c / #f59e0b)
--------------------------------------------------------- */
:root {
	--ink: #1c1c1c;         /* primary black — hero, cards, header */
	--ink-deep: #000000;    /* true black — contact, footer */
	--paper: #fafaf8;       /* soft off-white — readable sections */
	--paper-ink: #1a1a1a;   /* body copy on paper */
	--gold: #f59e0b;        /* brand yellow, on dark */
	--gold-dim: #8a6d3b;    /* muted yellow, on paper */
	--lavender: #a6a6a6;    /* secondary text on dark */
	--line-on-dark: rgba(245, 158, 11, 0.22);
	--line-on-paper: rgba(26, 26, 26, 0.12);

	--font-display: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
	--font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--container: 1080px;
}

/* ---------------------------------------------------------
   Reset & base
--------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--paper-ink);
	background: var(--paper);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
	font-family: var(--font-display);
	margin: 0 0 0.5em;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
a { color: inherit; }

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

.visually-hidden {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--gold);
	color: var(--ink-deep);
	padding: 0.75em 1em;
	z-index: 999;
	font-family: var(--font-display);
}
.skip-link:focus {
	left: 1em;
	top: 1em;
}

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

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------
   Shared layout helpers
--------------------------------------------------------- */
.section__inner,
.site-header__inner,
.site-footer__inner,
.hero__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 1.75rem;
}

.section { padding: 6rem 0; }
.section--paper { background: var(--paper); color: var(--paper-ink); }
.section--ink   { background: var(--ink); color: #fff; }
.section--deep  { background: var(--ink-deep); color: #fff; }

.section__title { font-size: clamp(1.6rem, 3vw, 2.25rem); max-width: 30ch; }
.section__title--light { color: var(--gold); }
.section__lede { max-width: 60ch; font-size: 1.05rem; color: rgba(26,26,26,0.75); }
.section__lede--light { color: var(--lavender); }

.eyebrow {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.75rem;
	color: var(--gold);
	margin-bottom: 1.25rem;
}
.eyebrow--dark { color: var(--gold-dim); }

/* ---------------------------------------------------------
   Hero eyebrow — flip-letter + typewriter intro
--------------------------------------------------------- */
.phonetic-flip, .typed-rest {
	display: inline-block;
	white-space: pre-wrap;
}

.flip-char {
	display: inline-block;
	perspective: 60px;
}
.flip-char__inner {
	display: inline-block;
	backface-visibility: hidden;
}
.flip-char__inner.flip-tick {
	animation: flip-tick 0.09s ease-in;
}
@keyframes flip-tick {
	0%   { transform: rotateX(0deg); }
	50%  { transform: rotateX(-90deg); }
	100% { transform: rotateX(0deg); }
}

.typed-rest::after {
	content: "";
	display: inline-block;
	width: 2px;
	height: 0.9em;
	margin-left: 2px;
	background: var(--gold);
	vertical-align: -0.15em;
	animation: caret-blink 0.9s steps(2, jump-none) infinite;
}
.typed-rest.is-done::after { opacity: 0; }
@keyframes caret-blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	.typed-rest::after { display: none; }
}

/* ---------------------------------------------------------
   Header / nav
--------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--ink);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line-on-dark);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 0.9rem;
	padding-bottom: 0.9rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
	color: var(--gold);
	font-family: var(--font-display);
	font-size: 1.1rem;
}

.brand__dots { display: inline-flex; gap: 4px; }
.brand__dots i {
	width: 5px; height: 5px;
	border-radius: 50%;
	background: var(--gold);
	display: block;
}
.site-header .brand__dots i { animation: pulse 2.4s ease-in-out infinite; }
.site-header .brand__dots i:nth-child(2) { animation-delay: 0.25s; }
.site-header .brand__dots i:nth-child(3) { animation-delay: 0.5s; }

.site-nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.site-nav a {
	color: #fff;
	text-decoration: none;
	font-size: 0.95rem;
	opacity: 0.85;
	transition: opacity 0.15s ease;
}
.site-nav a:hover { opacity: 1; }

.site-nav__cta {
	font-family: var(--font-display);
	font-size: 0.85rem;
	color: var(--ink);
	background: var(--gold);
	padding: 0.5em 1em;
	border-radius: 2px;
	opacity: 1 !important;
}
.site-nav__cta:hover { background: #fff; }

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px; height: 40px;
	background: none;
	border: 1px solid var(--line-on-dark);
	border-radius: 4px;
	cursor: pointer;
}
.nav-toggle span {
	display: block;
	width: 18px; height: 2px;
	background: var(--gold);
	margin: 0 auto;
}

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */
.hero {
	background: var(--ink);
	color: #fff;
	padding: 7rem 0 6rem;
	position: relative;
	overflow: hidden;
}

.hero::after {
	content: "";
	position: absolute;
	right: -10%;
	top: -20%;
	width: 60%;
	height: 140%;
	background: radial-gradient(circle, rgba(245,158,11,0.10) 0%, rgba(245,158,11,0) 65%);
	pointer-events: none;
}

.hero__inner { position: relative; text-align: left; }

.hero__dots { display: inline-flex; gap: 8px; margin-bottom: 1.5rem; }
.hero__dots i {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--gold);
	display: block;
	animation: pulse 2.4s ease-in-out infinite;
}
.hero__dots i:nth-child(2) { animation-delay: 0.25s; }
.hero__dots i:nth-child(3) { animation-delay: 0.5s; }

@keyframes pulse {
	0%, 100% { opacity: 0.4; transform: scale(0.85); }
	50% { opacity: 1; transform: scale(1); }
}

.hero__logo {
	display: none;
	position: absolute;
	right: 100%;
	top: 50%;
	transform: translateY(-50%);
	margin-right: 2.5rem;
	height: clamp(170px, 16vw, 240px);
	width: auto;
	border-radius: 10px;
}

@media (min-width: 1500px) {
	.hero__logo { display: block; }
	/* nudge hero content (and the logo anchored to it) clear of the left edge */
	.hero__inner { transform: translateX(clamp(2rem, 6vw, 5rem)); }
}

.hero__word {
	font-size: clamp(3rem, 10vw, 6.5rem);
	color: var(--gold);
	margin: 0 0 1rem;
}

.hero__tagline {
	font-size: clamp(1.1rem, 2vw, 1.5rem);
	max-width: 42ch;
	color: #fff;
	font-family: var(--font-body);
}

.hero__actions {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */
.btn {
	font-family: var(--font-display);
	font-size: 0.9rem;
	text-decoration: none;
	padding: 0.85em 1.6em;
	border-radius: 2px;
	display: inline-block;
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn--primary {
	background: var(--gold);
	color: var(--ink-deep);
}
.btn--primary:hover { background: #fff; transform: translateY(-1px); }

.btn--ghost {
	border: 1px solid var(--line-on-dark);
	color: #fff;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------------------------------------------------------
   Trusted by — logo carousel
--------------------------------------------------------- */
.section--trusted {
	padding: 3rem 0;
	background: var(--paper);
	border-bottom: 1px solid var(--line-on-paper);
}

.logo-row {
	margin-top: 1rem;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 2.5rem 3rem;
}

.logo-row__item img {
	height: 80px;
	width: auto;
	object-fit: contain;
	opacity: 0.85;
	filter: grayscale(0.15);
	transition: opacity 0.2s ease;
}
.logo-row__item img:hover { opacity: 1; }

/* ---------------------------------------------------------
   Cards / grid — What we do
--------------------------------------------------------- */
.grid { display: grid; gap: 1.75rem; margin-top: 3rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
	background: #fff;
	border: 1px solid var(--line-on-paper);
	border-radius: 6px;
	padding: 2rem 1.5rem;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
	border-color: var(--gold-dim);
	transform: translateY(-3px);
	box-shadow: 0 12px 24px rgba(28, 28, 28, 0.1);
}
.card__mark {
	color: var(--gold-dim);
	margin-bottom: 1rem;
}
.card__mark svg {
	width: 30px;
	height: 30px;
}
.card__title { font-size: 1.05rem; margin-bottom: 0.6rem; }
.card__text { font-size: 0.95rem; color: rgba(26,26,26,0.75); margin-bottom: 0; }

/* ---------------------------------------------------------
   Tag list — Who we build for
--------------------------------------------------------- */
.tag-list {
	list-style: none;
	margin: 2.5rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem 1rem;
}
.tag-list li {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	border: 1px solid var(--line-on-dark);
	border-radius: 999px;
	padding: 0.6em 1.2em;
	font-size: 0.95rem;
}
.tag-list__dot {
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--gold);
	display: inline-block;
}

/* ---------------------------------------------------------
   Team
--------------------------------------------------------- */
.person.card {
	padding: 2.5rem;
}
.person__avatar {
	width: 120px; height: 120px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--gold);
	font-family: var(--font-display);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	margin-bottom: 1.5rem;
	border: 1px solid var(--gold-dim);
	object-fit: cover;
}

@media (max-width: 720px) {
	.person__avatar { width: 96px; height: 96px; font-size: 1.3rem; }
}
.person__name { font-size: 1.15rem; margin-bottom: 0.25rem; }
.person__role {
	font-family: var(--font-display);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--gold-dim);
	margin-bottom: 1rem;
}
.person__bio { color: rgba(26,26,26,0.8); font-size: 0.97rem; }

.person__links {
	display: flex;
	gap: 0.75rem;
	margin-top: 0.5rem;
}
.person__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	border: 1px solid var(--line-on-paper);
	color: var(--paper-ink);
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.person__icon svg { width: 19px; height: 19px; }
.person__icon:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--gold);
	transform: translateY(-2px);
}

/* ---------------------------------------------------------
   Contact
--------------------------------------------------------- */
.contact-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem;
	margin-top: 3rem;
	border-top: 1px solid var(--line-on-dark);
	padding-top: 2.5rem;
}
.contact-block h3 {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--gold);
	margin-bottom: 0.75rem;
}
.contact-block a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid var(--line-on-dark);
}
.contact-block a:hover { border-color: var(--gold); color: var(--gold); }
.contact-block p { color: var(--lavender); margin: 0; }

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.site-footer {
	background: var(--ink-deep);
	border-top: 1px solid var(--line-on-dark);
	padding: 2rem 0;
}
.site-footer__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.site-footer p {
	margin: 0;
	color: var(--lavender);
	font-size: 0.85rem;
}
.site-footer__logo {
	height: 26px;
	width: auto;
	opacity: 0.85;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 900px) {
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
	.nav-toggle { display: flex; }
	.site-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--ink);
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 0 1.75rem;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
	}
	.site-nav.is-open { max-height: 300px; }
	.site-nav a { width: 100%; padding: 1em 0; border-bottom: 1px solid var(--line-on-dark); }
	.site-nav__cta { margin: 1em 0; text-align: center; }

	.grid--4 { grid-template-columns: 1fr; }
	.grid--3 { grid-template-columns: 1fr; }
	.grid--2 { grid-template-columns: 1fr; }
	.section { padding: 4rem 0; }
}
