/*
 * IndieBirds — main stylesheet
 * Editorial, museum-quality, dark-mode-by-default.
 * Plain CSS, custom properties, no build step required.
 */

:root {
	--ib-bg: #0d0d0d;
	--ib-bg-raised: #141414;
	--ib-text: #f5f5f2;
	--ib-text-muted: #afafaf;
	--ib-accent: #c8a96a;
	--ib-accent-soft: rgba(200, 169, 106, 0.16);
	--ib-success: #6e8f6b;
	--ib-error: #a5645a;
	--ib-line: rgba(245, 245, 242, 0.12);
	--ib-line-strong: rgba(245, 245, 242, 0.22);

	--ib-font-serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
	--ib-font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

	--ib-shell-max: 1200px;
	--ib-shell-pad: clamp(24px, 5vw, 72px);

	--ib-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ib-dur-fast: 240ms;
	--ib-dur-med: 560ms;
	--ib-dur-slow: 900ms;
}

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

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

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

body {
	margin: 0;
	background: var(--ib-bg);
	color: var(--ib-text);
	font-family: var(--ib-font-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--ib-accent);
	text-decoration: none;
}

a:hover {
	color: #ddbf8b;
}

button,
input,
select,
textarea {
	font-family: inherit;
	color: inherit;
}

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

h1,
h2,
h3,
h4 {
	font-family: var(--ib-font-serif);
	font-weight: 500;
	letter-spacing: -0.01em;
	margin: 0;
	text-wrap: balance;
}

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

/* ---------- Skip link ---------- */
.ib-skip-link {
	position: fixed;
	top: -100%;
	left: 16px;
	z-index: 1000;
	background: var(--ib-accent);
	color: #0d0d0d;
	padding: 12px 20px;
	border-radius: 2px;
	font-weight: 600;
	transition: top var(--ib-dur-fast) var(--ib-ease);
}

.ib-skip-link:focus {
	top: 16px;
}

/* ---------- Shell / layout primitives ---------- */
.ib-shell {
	max-width: var(--ib-shell-max);
	margin-inline: auto;
	padding-inline: var(--ib-shell-pad);
}

.ib-eyebrow {
	font-family: var(--ib-font-sans);
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ib-accent);
	margin: 0 0 18px;
}

.ib-heading-lg {
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1.08;
}

.ib-heading-md {
	font-size: clamp(28px, 3.4vw, 44px);
	line-height: 1.12;
}

.ib-section-head {
	max-width: 640px;
	margin-bottom: 64px;
}

section {
	position: relative;
	padding-block: clamp(72px, 12vw, 160px);
}

/* ---------- Reveal / split-text motion ---------- */
[data-ib-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity var(--ib-dur-slow) var(--ib-ease), transform var(--ib-dur-slow) var(--ib-ease);
}

[data-ib-reveal].is-visible {
	opacity: 1;
	transform: none;
}

[data-ib-reveal-delay='1'] { transition-delay: 90ms; }
[data-ib-reveal-delay='2'] { transition-delay: 180ms; }
[data-ib-reveal-delay='3'] { transition-delay: 270ms; }

.ib-split-word {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
}

.ib-split-char {
	display: inline-block;
	opacity: 0;
	transform: translateY(60%);
	transition: opacity var(--ib-dur-med) var(--ib-ease), transform var(--ib-dur-med) var(--ib-ease);
}

.ib-split-char.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	[data-ib-reveal],
	.ib-split-char {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* ---------- Loader ---------- */
.ib-loader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: var(--ib-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity var(--ib-dur-slow) var(--ib-ease), visibility var(--ib-dur-slow) var(--ib-ease);
}

.ib-loader.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.ib-loader__mark {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--ib-line-strong);
	border-top-color: var(--ib-accent);
	animation: ib-spin 900ms linear infinite;
}

@keyframes ib-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.ib-loader { display: none; }
}

/* ---------- Custom cursor (pointer:fine only) ---------- */
.ib-cursor {
	position: fixed;
	top: 0;
	left: 0;
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px;
	border-radius: 50%;
	background: var(--ib-accent);
	pointer-events: none;
	z-index: 9998;
	opacity: 0;
	transition: opacity var(--ib-dur-fast) var(--ib-ease), transform var(--ib-dur-fast) var(--ib-ease), width var(--ib-dur-fast) var(--ib-ease), height var(--ib-dur-fast) var(--ib-ease), margin var(--ib-dur-fast) var(--ib-ease);
	transform: translate3d(var(--ib-cx, -50px), var(--ib-cy, -50px), 0);
	will-change: transform;
}

.ib-cursor.is-active {
	opacity: 1;
}

.ib-cursor.is-hovering {
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	background: transparent;
	border: 1px solid var(--ib-accent);
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
	.ib-cursor { display: none; }
}

/* ---------- Buttons ---------- */
.ib-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 30px;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-weight: 600;
	border-radius: 2px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background var(--ib-dur-fast) var(--ib-ease), color var(--ib-dur-fast) var(--ib-ease), border-color var(--ib-dur-fast) var(--ib-ease), transform var(--ib-dur-fast) var(--ib-ease);
}

.ib-btn--primary {
	background: var(--ib-accent);
	color: #0d0d0d;
}

.ib-btn--primary:hover {
	background: #ddbf8b;
	color: #0d0d0d;
	transform: translateY(-1px);
}

.ib-btn--ghost {
	background: transparent;
	color: var(--ib-text);
	border-color: var(--ib-line-strong);
	padding: 12px 22px;
}

.ib-btn--ghost:hover {
	border-color: var(--ib-accent);
	color: var(--ib-accent);
}

.ib-btn--text {
	background: transparent;
	color: var(--ib-text);
	padding: 16px 6px;
}

.ib-btn--text:hover {
	color: var(--ib-accent);
}

.ib-btn__arrow {
	transition: transform var(--ib-dur-fast) var(--ib-ease);
}

.ib-btn--text:hover .ib-btn__arrow {
	transform: translateY(3px);
}

.ib-btn__spinner {
	display: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid rgba(13, 13, 13, 0.3);
	border-top-color: #0d0d0d;
	animation: ib-spin 700ms linear infinite;
}

.ib-btn[data-loading='true'] .ib-btn__spinner {
	display: inline-block;
}

.ib-btn[data-loading='true'] [data-ib-submit-label] {
	opacity: 0.6;
}

/* ---------- Site header ---------- */
.ib-site-header {
	position: sticky;
	top: 0;
	z-index: 500;
	background: rgba(13, 13, 13, 0.72);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--ib-line);
}

.ib-site-header__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 20px;
}

.ib-site-header__wordmark {
	font-family: var(--ib-font-serif);
	font-size: 20px;
	letter-spacing: 0.02em;
	color: var(--ib-text);
}

.ib-site-header__mark img,
.ib-site-header__mark .custom-logo {
	max-height: var(--ib-logo-height, 32px);
	max-width: var(--ib-logo-width, 200px);
	width: auto;
	height: auto;
	object-fit: contain;
}

.ib-site-header__nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.ib-site-header__menu {
	display: flex;
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 14px;
	letter-spacing: 0.03em;
}

.ib-site-header__menu a {
	color: var(--ib-text-muted);
}

.ib-site-header__menu a:hover {
	color: var(--ib-text);
}

.ib-site-header__cta {
	white-space: nowrap;
}

@media (max-width: 780px) {
	.ib-site-header__nav {
		display: none;
	}
}

/* ---------- Hero ---------- */
.ib-hero {
	min-height: 100svh;
	display: grid;
	grid-template-columns: 1fr;
	align-items: end;
	padding-top: 160px;
	padding-bottom: 64px;
	overflow: hidden;
}

.ib-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	opacity: 0.5;
	mix-blend-mode: overlay;
	pointer-events: none;
	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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

.ib-hero__bg {
	position: absolute;
	inset: -10% -5%;
	background:
		radial-gradient(48% 42% at 72% 18%, rgba(200, 169, 106, 0.16), transparent 70%),
		radial-gradient(60% 50% at 12% 92%, rgba(200, 169, 106, 0.08), transparent 70%),
		var(--ib-bg);
	will-change: transform;
}

.ib-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(13, 13, 13, 0.1) 0%, rgba(13, 13, 13, 0.7) 100%);
}

.ib-hero__frame {
	position: absolute;
	inset: 28px;
	border: 1px solid rgba(245, 245, 242, 0.14);
	pointer-events: none;
	z-index: 2;
}

.ib-hero__coord {
	position: absolute;
	top: 52px;
	right: 56px;
	z-index: 3;
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ib-text-muted);
	text-align: right;
	line-height: 1.9;
	opacity: 0.85;
	border-right: 1px solid var(--ib-line-strong);
	padding-right: 16px;
}

.ib-hero__content {
	position: relative;
	z-index: 2;
	max-width: 1020px;
}

.ib-hero__headline {
	font-size: clamp(56px, 10vw, 148px);
	line-height: 0.94;
	letter-spacing: -0.015em;
	margin-bottom: 40px;
}

.ib-hero__sub {
	color: var(--ib-text-muted);
	font-size: clamp(16px, 1.6vw, 19px);
	max-width: 460px;
	margin-bottom: 48px;
	padding-left: 24px;
	border-left: 1px solid var(--ib-accent);
}

.ib-hero__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.ib-hero__scroll-cue {
	position: absolute;
	bottom: 40px;
	left: var(--ib-shell-pad);
	width: 1px;
	height: 56px;
	z-index: 2;
	background: linear-gradient(180deg, transparent, var(--ib-line-strong) 40%, transparent);
}

@media (prefers-reduced-motion: reduce) {
	.ib-hero__bg { transform: none !important; }
}

@media (max-width: 780px) {
	.ib-hero__coord {
		top: 32px;
		right: 24px;
		font-size: 10px;
		padding-right: 10px;
	}
}

@media (max-width: 480px) {
	.ib-hero__coord { display: none; }
	.ib-hero__frame { inset: 14px; }
}

/* ---------- Discipline marquee ---------- */
.ib-marquee {
	border-top: 1px solid var(--ib-line);
	border-bottom: 1px solid var(--ib-line);
	overflow: hidden;
	padding-block: 22px;
}

.ib-marquee__track {
	display: flex;
	width: max-content;
	animation: ib-marquee 38s linear infinite;
}

.ib-marquee__group {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.ib-marquee__item {
	font-family: var(--ib-font-serif);
	font-style: italic;
	font-size: 20px;
	color: var(--ib-text-muted);
	padding-inline: 28px;
	white-space: nowrap;
}

.ib-marquee__item::after {
	content: '\2022';
	margin-left: 28px;
	color: var(--ib-accent);
	font-style: normal;
}

@keyframes ib-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.ib-marquee__track { animation: none; }
}

/* ---------- About ---------- */
.ib-about__row {
	max-width: 880px;
}

.ib-about__body {
	margin-top: 28px;
	color: var(--ib-text-muted);
	font-size: 18px;
	max-width: 640px;
}

/* ---------- Who belongs ---------- */
.ib-who__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	border-top: 1px solid var(--ib-line);
	border-left: 1px solid var(--ib-line);
}

.ib-who__item {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 44px 28px;
	border-right: 1px solid var(--ib-line);
	border-bottom: 1px solid var(--ib-line);
	transition: background var(--ib-dur-med) var(--ib-ease);
	position: relative;
	overflow: hidden;
}

.ib-who__item::before {
	content: '';
	position: absolute;
	inset: auto 0 0 0;
	height: 2px;
	background: var(--ib-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--ib-dur-med) var(--ib-ease);
}

.ib-who__item:hover {
	background: var(--ib-bg-raised);
}

.ib-who__item:hover::before {
	transform: scaleX(1);
}

.ib-who__item:hover .ib-who__label {
	transform: translateX(6px);
	color: var(--ib-accent);
}

.ib-who__index {
	font-family: var(--ib-font-serif);
	color: var(--ib-accent);
	font-size: 13px;
	letter-spacing: 0.05em;
}

.ib-who__label {
	font-family: var(--ib-font-serif);
	font-size: clamp(22px, 2.4vw, 28px);
	transition: transform var(--ib-dur-med) var(--ib-ease), color var(--ib-dur-med) var(--ib-ease);
}

/* ---------- Why apply ---------- */
.ib-why__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1px;
	background: var(--ib-line);
}

.ib-why__card {
	background: var(--ib-bg);
	padding: 40px 32px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ib-why__glyph {
	width: 34px;
	height: 34px;
	border: 1px solid var(--ib-accent);
	border-radius: 50%;
	position: relative;
}

.ib-why__glyph::after {
	content: '';
	position: absolute;
	inset: 10px;
	background: var(--ib-accent);
	border-radius: 50%;
}

.ib-why__title {
	font-size: 20px;
}

.ib-why__body {
	color: var(--ib-text-muted);
	font-size: 15px;
}

/* ---------- Philosophy ---------- */
.ib-philosophy {
	background: var(--ib-bg-raised);
}

.ib-philosophy__row {
	max-width: 840px;
}

.ib-philosophy__quote {
	margin: 0;
	position: relative;
	font-family: var(--ib-font-serif);
	font-size: clamp(30px, 4.2vw, 52px);
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--ib-text);
	padding-left: 32px;
}

.ib-philosophy__quote::before {
	content: '';
	position: absolute;
	top: 6px;
	bottom: 6px;
	left: 0;
	width: 2px;
	background: var(--ib-accent);
}

.ib-philosophy__body {
	margin-top: 32px;
	color: var(--ib-text-muted);
	font-size: 17px;
	max-width: 620px;
}

/* ---------- Process timeline ---------- */
.ib-process__timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 24px;
}

.ib-process__step {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--ib-line-strong);
	position: relative;
}

.ib-process__step::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 0;
	width: 28px;
	height: 1px;
	background: var(--ib-accent);
}

.ib-process__num {
	font-family: var(--ib-font-serif);
	font-style: italic;
	color: transparent;
	-webkit-text-stroke: 1px var(--ib-accent);
	font-size: clamp(48px, 5vw, 72px);
	line-height: 1;
}

.ib-process__label {
	font-size: 17px;
	letter-spacing: 0.01em;
}

@media (max-width: 900px) {
	.ib-process__timeline {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.ib-process__timeline {
		grid-template-columns: 1fr;
	}
}

/* ---------- Application form ---------- */
.ib-application {
	background: var(--ib-bg-raised);
}

.ib-application__row {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: 72px;
	align-items: start;
}

.ib-application__note {
	color: var(--ib-text-muted);
	margin-top: 20px;
	max-width: 360px;
}

.ib-application__panel {
	position: relative;
}

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

.ib-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px 28px;
	margin-bottom: 28px;
}

.ib-field--full {
	grid-column: 1 / -1;
}

.ib-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ib-field label {
	font-size: 13px;
	letter-spacing: 0.03em;
	color: var(--ib-text-muted);
}

.ib-field--required label::after {
	content: ' *';
	color: var(--ib-accent);
}

.ib-field input,
.ib-field select,
.ib-field textarea {
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--ib-line-strong);
	padding: 10px 2px;
	font-size: 16px;
	color: var(--ib-text);
	transition: border-color var(--ib-dur-fast) var(--ib-ease);
}

.ib-field select option {
	background: var(--ib-bg-raised);
	color: var(--ib-text);
}

.ib-field input:focus,
.ib-field select:focus,
.ib-field textarea:focus {
	outline: none;
	border-color: var(--ib-accent);
}

.ib-field textarea {
	resize: vertical;
	min-height: 100px;
}

.ib-field.has-error input,
.ib-field.has-error select,
.ib-field.has-error textarea {
	border-color: var(--ib-error);
}

.ib-field__error {
	min-height: 16px;
	font-size: 12px;
	color: var(--ib-error);
}

.ib-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 14px;
	color: var(--ib-text-muted);
	margin-bottom: 32px;
	cursor: pointer;
}

.ib-form__consent input {
	margin-top: 3px;
	accent-color: var(--ib-accent);
}

.ib-form__footer {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.ib-form__status {
	font-size: 13px;
	color: var(--ib-error);
}

.ib-form__status[data-state='ok'] {
	color: var(--ib-success);
}

.ib-form.is-submitting {
	opacity: 0.7;
	pointer-events: none;
}

.ib-form-success {
	text-align: center;
	padding: 48px 16px;
}

.ib-form-success__mark {
	display: inline-flex;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 1px solid var(--ib-accent);
	margin-bottom: 24px;
	position: relative;
}

.ib-form-success__mark::after {
	content: '';
	position: absolute;
	inset: 16px;
	border-radius: 50%;
	background: var(--ib-accent);
}

.ib-form-success h3 {
	font-size: 26px;
	margin-bottom: 14px;
}

.ib-form-success p {
	color: var(--ib-text-muted);
	max-width: 420px;
	margin-inline: auto;
}

.ib-form-success p + p {
	margin-top: 8px;
}

@media (max-width: 900px) {
	.ib-application__row {
		grid-template-columns: 1fr;
	}

	.ib-form__grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Footer ---------- */
.ib-site-footer {
	border-top: 1px solid var(--ib-line);
	padding-block: 64px;
}

.ib-site-footer__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 32px;
}

.ib-site-footer__wordmark {
	font-family: var(--ib-font-serif);
	font-size: 20px;
}

.ib-site-footer__tagline {
	color: var(--ib-text-muted);
	font-size: 14px;
	margin-top: 8px;
	max-width: 280px;
}

.ib-site-footer__cta {
	font-family: var(--ib-font-serif);
	font-style: italic;
	font-size: 18px;
	color: var(--ib-text);
	margin-top: 28px;
	margin-bottom: 4px;
}

.ib-site-footer__menu {
	list-style: none;
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
	font-size: 14px;
}

.ib-site-footer__menu a {
	color: var(--ib-text-muted);
}

.ib-site-footer__meta {
	font-size: 13px;
	color: var(--ib-text-muted);
}

.ib-app-badges {
	display: flex;
	gap: 12px;
	margin-top: 24px;
	flex-wrap: wrap;
}

.ib-app-badge {
	display: block;
	border-radius: 8px;
	overflow: hidden;
	transition: transform var(--ib-dur-fast) var(--ib-ease), opacity var(--ib-dur-fast) var(--ib-ease);
}

.ib-app-badge:hover {
	transform: translateY(-2px);
	opacity: 0.85;
}

.ib-app-badge img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.ib-app-badge__fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 100%;
	border: 1px solid var(--ib-line-strong);
	border-radius: 8px;
	color: var(--ib-text);
	font-size: 13px;
	letter-spacing: 0.02em;
	transition: border-color var(--ib-dur-fast) var(--ib-ease), color var(--ib-dur-fast) var(--ib-ease);
}

.ib-app-badge:hover .ib-app-badge__fallback {
	border-color: var(--ib-accent);
	color: var(--ib-accent);
}

.ib-app-badge__fallback svg {
	flex-shrink: 0;
}

/* ---------- Visitor counter ---------- */
.ib-visitor {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin: 8px 0 0;
	font-size: 11px;
	letter-spacing: 0.03em;
	color: var(--ib-text-muted);
}

.ib-visitor__num {
	font-family: var(--ib-font-serif);
	font-size: 12px;
	color: var(--ib-accent);
	letter-spacing: 0.02em;
}

/* ---------- Mobile touch feedback & motion ---------- */
@media (hover: none), (pointer: coarse) {
	.ib-btn,
	.ib-who__item,
	.ib-why__card,
	.ib-app-badge {
		transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
	}

	.ib-btn:active {
		transform: scale(0.96);
	}

	.ib-who__item:active {
		background: var(--ib-bg-raised);
		transform: scale(0.98);
	}

	.ib-why__card:active {
		transform: scale(0.98);
	}

	.ib-app-badge:active {
		transform: scale(0.94);
	}

	.ib-hero__headline {
		animation: ib-hero-drift 9s ease-in-out infinite;
	}

	@keyframes ib-hero-drift {
		0%, 100% { transform: translateY(0); }
		50% { transform: translateY(-4px); }
	}
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
	.ib-hero__headline { animation: none; }
}

/* ---------- Generic page / archive / 404 ---------- */
.ib-page__row {
	max-width: 880px;
	padding-block: clamp(64px, 10vw, 120px);
}

.ib-page__row--narrow {
	max-width: 720px;
}

.ib-page__header {
	margin-bottom: 48px;
}

.ib-page__media {
	margin-bottom: 40px;
	border-radius: 2px;
	overflow: hidden;
}

.ib-prose {
	color: var(--ib-text-muted);
	font-size: 18px;
	line-height: 1.75;
}

.ib-prose h2,
.ib-prose h3 {
	color: var(--ib-text);
	margin-top: 2em;
	margin-bottom: 0.6em;
}

.ib-prose a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ib-archive__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 40px;
	margin-top: 48px;
}

.ib-archive__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	margin-bottom: 20px;
	background: var(--ib-bg-raised);
}

.ib-archive__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ib-archive__meta {
	display: block;
	font-size: 13px;
	color: var(--ib-text-muted);
	margin-bottom: 8px;
}

.ib-archive__title {
	font-size: 22px;
}

.ib-archive__empty {
	color: var(--ib-text-muted);
	margin-top: 32px;
}

.ib-error-404__row {
	max-width: 640px;
	padding-block: clamp(96px, 16vw, 200px);
	text-align: left;
}

.ib-error-404__body {
	color: var(--ib-text-muted);
	margin: 20px 0 36px;
}

.ib-error-404__search {
	margin-top: 40px;
}

.search-form {
	display: flex;
	gap: 12px;
	border-bottom: 1px solid var(--ib-line-strong);
	padding-bottom: 8px;
}

.search-form input[type='search'] {
	flex: 1;
	background: transparent;
	border: none;
	color: var(--ib-text);
	font-size: 16px;
}

.search-form input[type='search']:focus {
	outline: none;
}

.search-form button {
	background: transparent;
	border: none;
	color: var(--ib-accent);
	cursor: pointer;
	font-size: 14px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.ib-pagination,
.pagination {
	margin-top: 56px;
	display: flex;
	gap: 16px;
	font-size: 14px;
}

@media (max-width: 640px) {
	section {
		padding-block: 72px;
	}
}
