/* ==========================================================================
   JP Portfolio — theme styles
   Palette: deep navy, crisp white, muted gold. Type: Sora + Inter (self-hosted).
   ========================================================================== */

:root {
	--navy: #0f1e33;
	--navy-deep: #0a1524;
	--ink: #16202d;
	--muted: #566171;
	--gold: #c2a06a;
	--gold-ink: #7d5f2c;
	--paper: #ffffff;
	--bone: #f8f5ef;
	--line: #e5dfd4;
	--line-dark: rgba(255, 255, 255, 0.14);

	--card: #ffffff;
	--card-soft: #fbf9f5;
	--input-bg: #ffffff;
	--header-bg: rgba(255, 255, 255, 0.82);
	--pill-bg: rgba(255, 255, 255, 0.7);
	--btn-primary-bg: var(--navy);
	--btn-primary-fg: #ffffff;
	--btn-primary-bg-hover: var(--navy-deep);

	color-scheme: light;

	--font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

	--narrow: 760px;
	--header-h: 76px;
	--radius: 14px;
	--radius-sm: 8px;

	--shadow-sm: 0 1px 2px rgba(15, 30, 51, 0.06);
	--shadow-md: 0 18px 40px -24px rgba(15, 30, 51, 0.35);
	--shadow-lg: 0 32px 64px -28px rgba(15, 30, 51, 0.4);

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--speed: 260ms;
}

/* --------------------------------------------------------------- Base ---- */

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

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

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

html,
body {
	max-width: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.is-locked {
	overflow: hidden;
}

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

img {
	height: auto;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.025em;
	color: var(--ink);
}

p {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color var(--speed) var(--ease);
}

a:hover {
	color: var(--gold-ink);
}

button {
	font: inherit;
	color: inherit;
}

::selection {
	background: var(--navy);
	color: #fff;
}

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

/* ----------------------------------------------------------- Utilities ---- */

.container {
	width: 100%;
	max-width: 1400px;
	margin-inline: auto;
	padding-inline: clamp(20px, 4vw, 80px);
}

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

.accent {
	color: var(--gold-ink);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 1rem;
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold-ink);
}

.eyebrow--pill {
	padding: 0.5rem 0.9rem 0.5rem 0.75rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--pill-bg);
	color: var(--ink);
	letter-spacing: 0.08em;
	text-transform: none;
	font-size: 0.8rem;
}

.eyebrow__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #4d8c5c;
	box-shadow: 0 0 0 3px rgba(77, 140, 92, 0.16);
	flex: none;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 200;
	padding: 0.7rem 1rem;
	background: var(--navy);
	color: #fff;
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: top var(--speed) var(--ease);
}

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

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.9rem 1.5rem;
	border: 1px solid transparent;
	border-radius: 6px;
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.005em;
	text-decoration: none;
	cursor: pointer;
	transition: transform var(--speed) var(--ease), background-color var(--speed) var(--ease),
		border-color var(--speed) var(--ease), color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.btn__icon {
	flex: none;
	transition: transform var(--speed) var(--ease);
}

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

.btn--primary {
	background: var(--btn-primary-bg);
	color: var(--btn-primary-fg);
	box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
	background: var(--btn-primary-bg-hover);
	color: var(--btn-primary-fg);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.btn--ghost {
	background: transparent;
	border-color: var(--line);
	color: var(--ink);
}

.btn--ghost:hover {
	border-color: var(--navy);
	background: var(--paper);
	color: var(--ink);
	transform: translateY(-1px);
}

.btn--block {
	width: 100%;
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--header-bg);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
		background-color var(--speed) var(--ease);
}

.site-header.is-scrolled {
	border-bottom-color: var(--line);
	box-shadow: 0 10px 30px -24px rgba(15, 30, 51, 0.6);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	flex: none;
}

.brand:hover {
	color: inherit;
}

.brand__mark {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--gold);
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.brand__mark--logo {
	display: block;
	padding: 0;
	border: 0;
	background: transparent;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.brand__name {
	font-family: var(--font-display);
	font-size: 0.98rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.brand__role {
	font-size: 0.72rem;
	color: var(--muted);
	letter-spacing: 0.02em;
}

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

.nav__list {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}

.nav__list a {
	font-size: 0.92rem;
	font-weight: 500;
	text-decoration: none;
	color: var(--ink);
	position: relative;
	padding-block: 0.35rem;
}

.nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--speed) var(--ease);
}

.nav__list a:hover::after,
.nav__list a.is-active::after {
	transform: scaleX(1);
}

.nav__list a.is-active {
	color: var(--gold-ink);
}

.nav__cta {
	padding: 0.65rem 1.15rem;
	font-size: 0.88rem;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.6rem;
	padding: 0.55rem 0.8rem;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.85rem;
	font-weight: 600;
}

.nav-toggle__bars {
	display: inline-flex;
	flex-direction: column;
	gap: 5px;
	width: 18px;
}

.nav-toggle__bars span {
	height: 1.5px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
	transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
	transform: translateY(-3.25px) rotate(-45deg);
}

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

.hero {
	position: relative;
	padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 112px);
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(900px 480px at 88% 8%, rgba(194, 160, 106, 0.14), transparent 65%),
		radial-gradient(700px 500px at 0% 100%, rgba(15, 30, 51, 0.05), transparent 70%);
	pointer-events: none;
}

.hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.hero__title {
	font-size: clamp(2.5rem, 5.2vw, 4.15rem);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -0.035em;
	margin-bottom: 1.5rem;
	max-width: 14ch;
}

.hero__accent {
	color: var(--gold-ink);
	background-image: linear-gradient(180deg, transparent 64%, rgba(194, 160, 106, 0.3) 64%);
	background-repeat: no-repeat;
	white-space: nowrap;
}

.hero__lede {
	max-width: 46ch;
	font-size: clamp(1.02rem, 1.4vw, 1.14rem);
	line-height: 1.72;
	color: var(--muted);
	margin-bottom: 2rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 2.75rem;
}

.hero__proof {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	max-width: 34rem;
	border-top: 1px solid var(--line);
	padding-top: 1.5rem;
}

.hero__proof-title {
	display: block;
	font-family: var(--font-display);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin-bottom: 0.2rem;
}

.hero__proof-text {
	display: block;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--muted);
}

/* Hero visual composition (decorative) */

.hero__visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-block: 12px;
}

/* Warm halo behind the portrait */
.hero__glow {
	position: absolute;
	top: -4%;
	right: -6%;
	width: 82%;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 50%, rgba(194, 160, 106, 0.3), rgba(194, 160, 106, 0) 64%);
	pointer-events: none;
}

.hero__card {
	position: relative;
	background: #fff;
	border: 1px solid rgba(229, 223, 212, 0.9);
	border-radius: 14px;
	box-shadow: var(--shadow-lg);
}

.hero__card--photo {
	width: min(440px, 100%);
	margin: 0;
	padding: 0;
	background: var(--card);
	border-color: var(--line);
	border-radius: 18px;
	box-shadow:
		0 44px 80px -46px rgba(15, 30, 51, 0.6),
		0 2px 6px rgba(15, 30, 51, 0.06);
}

.hero__photo-media {
	position: relative;
	border-radius: 17px;
	overflow: hidden;
}

.hero__photo {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 30%;
	background: var(--bone);
	transition: transform 600ms var(--ease);
}

/* Years badge: its own solid card overlapping the portrait corner */
.hero__years {
	position: absolute;
	left: -14px;
	bottom: 20px;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 9px 16px 10px 12px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow:
		0 26px 48px -28px rgba(15, 30, 51, 0.5),
		0 2px 5px rgba(15, 30, 51, 0.07);
}

.hero__years-num {
	font-family: var(--font-display);
	font-size: 1.9rem;
	font-weight: 600;
	line-height: 0.8;
	letter-spacing: -0.06em;
	color: var(--gold-ink);
}

.hero__years-copy {
	display: block;
}

.hero__years-label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--ink);
}

.hero__years-role {
	display: block;
	margin-top: 3px;
	font-size: 0.56rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ------------------------------------------------ Hero toolkit carousel ---- */

.hero__toolkit {
	position: relative;
	margin-top: clamp(40px, 5vw, 68px);
}

.hero__toolkit-head {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
	margin-bottom: 0.85rem;
}

.toolkit__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.32rem 0.72rem;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
	font-family: var(--font-body);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.toolkit__toggle:hover,
.toolkit__toggle:focus-visible {
	color: var(--ink);
	border-color: var(--muted);
}

.toolkit__toggle-icon {
	width: 6px;
	height: 8px;
	border-left: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

.toolkit__toggle[aria-pressed="true"] .toolkit__toggle-icon {
	width: 0;
	height: 0;
	border: 0;
	border-left: 7px solid currentColor;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
}

.toolkit__viewport {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.toolkit__track {
	display: flex;
	align-items: center;
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
	animation: toolkit-slide 55s linear infinite;
	will-change: transform;
}

@keyframes toolkit-slide {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-25%);
	}
}

.toolkit__viewport:hover .toolkit__track,
.toolkit__viewport:focus-within .toolkit__track,
.toolkit__track.is-paused {
	animation-play-state: paused;
}

.tool {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 clamp(26px, 3vw, 52px) 0 0;
}

/* Brand marks are masked so every logo renders in one themed colour. */
.tool__icon {
	flex: none;
	width: 30px;
	height: 30px;
	background-color: var(--ink);
	-webkit-mask-image: var(--tool-mark);
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-image: var(--tool-mark);
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
}

.tool__name {
	font-family: var(--font-display);
	font-size: 0.94rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--ink);
	white-space: nowrap;
}

/* On wide screens the portrait sits against the right edge of the layout. */
@media (min-width: 1200px) {
	.hero__visual {
		justify-content: flex-end;
	}
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.hero__card--photo:hover .hero__photo {
		transform: scale(1.035);
	}
}

/* ------------------------------------------------------------- Sections ---- */

.section {
	padding-block: clamp(68px, 9vw, 120px);
}

.section__head {
	margin-bottom: clamp(32px, 4vw, 54px);
}

.section__head-row {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(20px, 4vw, 64px);
	align-items: end;
}

.section__title {
	font-size: clamp(1.85rem, 3.6vw, 2.9rem);
	font-weight: 600;
	letter-spacing: -0.032em;
	line-height: 1.08;
	max-width: 20ch;
	text-wrap: balance;
}

.section__intro {
	max-width: 42ch;
	font-size: 1rem;
	line-height: 1.72;
	color: var(--muted);
}

.section__head--left .section__title {
	max-width: 22ch;
}

.section__head--center {
	text-align: center;
}

.section__head--center .section__title {
	margin-inline: auto;
	max-width: 24ch;
}

.section__head--center .eyebrow {
	justify-content: center;
}

/* ---------------------------------------------------------- Work / grid ---- */

.work__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.filter {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 1rem;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--ink);
	cursor: pointer;
	transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease),
		border-color var(--speed) var(--ease);
}

.filter:hover {
	border-color: rgba(15, 30, 51, 0.35);
}

.filter.is-active {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

.filter__count {
	font-size: 0.72rem;
	opacity: 0.6;
}

.work__status {
	font-size: 0.82rem;
	color: var(--muted);
	margin: 0;
}

.work__arrow { display: none; }

.work__hint {
	margin: 0 0 0.75rem;
	font-size: 0.85rem;
	color: var(--muted);
}

.work__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 2.4vw, 32px);
}

.project {
	min-width: 0;
}

.project[hidden] {
	display: none;
}

.project__button {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	padding: 0;
	text-align: left;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	cursor: pointer;
	transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
		border-color var(--speed) var(--ease);
}

.project__button:hover {
	transform: translateY(-4px);
	border-color: rgba(15, 30, 51, 0.2);
	box-shadow: var(--shadow-md);
}

.project__button:focus-visible {
	outline-offset: 4px;
}

.thumb {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	padding: clamp(16px, 5%, 30px);
	background: var(--tint, var(--bone));
	overflow: hidden;
}

.mock {
	display: flex;
	position: relative;
	width: 100%;
	height: 100%;
	transition: transform 340ms var(--ease);
}

.project__button:hover .mock {
	transform: scale(1.035);
}

/* Mock: website */

.mock--site {
	flex-direction: column;
	background: #fff;
	border-radius: 9px;
	border: 1px solid rgba(15, 30, 51, 0.08);
	box-shadow: 0 14px 30px -18px rgba(15, 30, 51, 0.4);
	overflow: hidden;
}

.mock__chrome {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 7px 10px;
	background: #f4f1eb;
	border-bottom: 1px solid rgba(15, 30, 51, 0.07);
	flex: none;
}

.mock__chrome i {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #d5cfc3;
}

.mock__url {
	margin-left: 8px;
	font-size: 0.5rem;
	letter-spacing: 0.02em;
	color: #8d8779;
}

.mock__page {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 12px 14px 0;
	min-height: 0;
}

.mock__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: auto;
}

.mock__logo {
	font-family: var(--font-display);
	font-size: 0.55rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--accent);
}

.mock__navlinks {
	display: flex;
	gap: 4px;
}

.mock__navlinks i {
	width: 12px;
	height: 2.5px;
	border-radius: 2px;
	background: #e4dfd6;
}

.mock__hero {
	padding-block: 14px 10px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.mock__head {
	font-family: var(--font-display);
	font-size: clamp(0.95rem, 1.6vw, 1.2rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: var(--accent);
}

.mock__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 8px;
}

.mock__text i {
	display: block;
	width: 78px;
	height: 2.5px;
	border-radius: 2px;
	background: #e9e4db;
}

.mock__text i:last-child {
	width: 52px;
}

.mock__btn {
	display: block;
	width: 46px;
	height: 11px;
	margin-top: 11px;
	border-radius: 999px;
	background: var(--accent);
}

.mock__media {
	display: block;
	margin-top: 12px;
	flex: 1;
	min-height: 46px;
	border-radius: 6px 6px 0 0;
	background:
		linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 60%),
		repeating-linear-gradient(90deg, var(--tint) 0 18px, rgba(15, 30, 51, 0.06) 18px 36px);
	border: 1px solid rgba(15, 30, 51, 0.05);
	border-bottom: 0;
}

/* Mock: real website screenshot */

.mock__shot {
	display: block;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	background: #fff;
}

.mock__shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

/* Mock: poster */

.mock--poster {
	align-items: center;
	justify-content: center;
}

.mock__sheet {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 74%;
	height: 100%;
	max-height: 250px;
	padding: clamp(14px, 4%, 24px);
	background: #fdfbf7;
	border-radius: 3px;
	box-shadow: 0 16px 36px -20px rgba(15, 30, 51, 0.45);
	transform: rotate(-1.4deg);
}

.mock__poster-mark {
	font-family: var(--font-display);
	font-size: clamp(3rem, 7vw, 5rem);
	font-weight: 700;
	line-height: 0.85;
	letter-spacing: -0.05em;
	color: var(--accent);
	margin-top: auto;
}

.mock__poster-name {
	margin-top: 12px;
	font-family: var(--font-display);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
}

.mock__poster-rule {
	display: block;
	width: 100%;
	height: 1px;
	margin-top: 12px;
	background: rgba(15, 30, 51, 0.14);
}

.mock__swatches {
	display: flex;
	gap: 5px;
	margin-top: 10px;
}

.mock__swatches i {
	width: 18px;
	height: 7px;
	border-radius: 2px;
	background: var(--accent);
}

.mock__swatches i:nth-child(2) {
	background: #c98a5e;
}

.mock__swatches i:nth-child(3) {
	background: #9f8a6b;
}

.mock__swatches i:nth-child(4) {
	background: #e8ded0;
}

/* Mock: identity */

.mock--identity {
	align-items: center;
	justify-content: center;
}

.mock__card {
	position: absolute;
	width: 68%;
	height: 58%;
	border-radius: 7px;
}

.mock__card--back {
	background: var(--accent);
	transform: translate(10%, 8%) rotate(4deg);
	opacity: 0.9;
}

.mock__card--front {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 14px;
	background: #fff;
	box-shadow: 0 16px 34px -20px rgba(15, 30, 51, 0.5);
	transform: rotate(-2deg);
}

.mock__mono {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--accent);
	border-radius: 50%;
	font-family: var(--font-display);
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--accent);
}

.mock__type {
	position: absolute;
	right: 14px;
	bottom: 12px;
	font-family: var(--font-display);
	font-size: clamp(1.6rem, 3.4vw, 2.3rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--accent);
	opacity: 0.9;
}

.project__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.5rem;
	padding: clamp(18px, 2.2vw, 24px);
	border-top: 1px solid var(--line);
}

.project__meta {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.74rem;
	letter-spacing: 0.02em;
	color: var(--muted);
}

.project__title {
	font-family: var(--font-display);
	font-size: 1.16rem;
	font-weight: 600;
	letter-spacing: -0.025em;
}

.project__summary {
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--muted);
}

.project__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: auto;
	padding-top: 0.75rem;
}

.project__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.tag {
	padding: 0.2rem 0.5rem;
	border: 1px solid var(--line);
	border-radius: 4px;
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--muted);
	background: var(--bone);
}

.project__more {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--ink);
	white-space: nowrap;
}

.project__more svg {
	transition: transform var(--speed) var(--ease);
}

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

/* ------------------------------------------------------------- Services ---- */

.services {
	background: var(--bone);
	border-block: 1px solid var(--line);
}

.services__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(24px, 3vw, 44px);
}

.service {
	padding-top: 1.5rem;
	border-top: 1px solid rgba(15, 30, 51, 0.16);
}

.service__number {
	font-family: var(--font-display);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--gold-ink);
	margin-bottom: 1.1rem;
}

.service__title {
	font-size: 1.28rem;
	letter-spacing: -0.028em;
	margin-bottom: 0.75rem;
}

.service__text {
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--muted);
	margin-bottom: 1.25rem;
}

.service__list {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.service__list li {
	position: relative;
	padding-left: 1.15rem;
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--ink);
}

.service__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	border: 1px solid var(--gold-ink);
}

/* ---------------------------------------------------------------- About ---- */

.about__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	gap: clamp(36px, 6vw, 84px);
	align-items: center;
}

.about__media {
	position: relative;
	margin: 0;
	max-width: 440px;
}

.about__frame {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	background: var(--bone);
	aspect-ratio: 1 / 1;
}

.about__frame::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid rgba(15, 30, 51, 0.08);
	border-radius: 10px;
	pointer-events: none;
}

.about__art {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about__media::before {
	content: "";
	position: absolute;
	inset: 18px -18px -18px 18px;
	border: 1px solid var(--gold);
	border-radius: 10px;
}

.about__badge {
	position: absolute;
	right: -40px;
	bottom: 34px;
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.72rem 1.1rem 0.72rem 0.85rem;
	background: rgba(10, 21, 36, 0.94);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	border: 1px solid rgba(194, 160, 106, 0.55);
	border-radius: 10px;
	box-shadow:
		0 22px 44px -24px rgba(10, 21, 36, 0.85),
		12px 12px 0 0 rgba(194, 160, 106, 0.5);
	color: #fff;
	line-height: 1.3;
	isolation: isolate;
}

.about__badge::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 55%);
	pointer-events: none;
}

.about__badge-dot {
	position: relative;
	z-index: 1;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--gold);
	box-shadow: 0 0 0 4px rgba(194, 160, 106, 0.16);
	flex: none;
}

.about__badge-copy {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.about__badge-label {
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.68);
}

.about__badge-since {
	font-family: var(--font-display);
	font-size: 0.94rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--gold);
}

.about__lede {
	font-size: clamp(1.05rem, 1.5vw, 1.18rem);
	line-height: 1.7;
	color: var(--ink);
	margin-bottom: 1rem;
}

.about__text {
	font-size: 0.98rem;
	line-height: 1.75;
	color: var(--muted);
	margin-bottom: 1.75rem;
}

.process {
	display: flex;
	flex-direction: column;
	margin-bottom: 2rem;
}

.process__step {
	display: grid;
	grid-template-columns: 2.2rem minmax(0, 1fr);
	gap: 1rem;
	padding-block: 0.85rem;
	border-top: 1px solid var(--line);
}

.process__step:last-child {
	border-bottom: 1px solid var(--line);
}

.process__number {
	font-family: var(--font-display);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--gold-ink);
	padding-top: 0.2rem;
}

.process__body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	font-size: 0.88rem;
	line-height: 1.6;
	color: var(--muted);
}

.process__body strong {
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ink);
	letter-spacing: -0.015em;
}

.about__footer {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.about__note {
	font-size: 0.82rem;
	color: var(--muted);
}

/* --------------------------------------------------------- Testimonials ---- */

.testimonials {
	background: var(--bone);
	border-block: 1px solid var(--line);
}

.testimonials__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 2.4vw, 28px);
}

.quote {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: clamp(22px, 2.6vw, 32px);
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.quote__mark {
	position: absolute;
	top: 6px;
	right: 22px;
	font-family: var(--font-display);
	font-size: 4rem;
	line-height: 1;
	color: rgba(194, 160, 106, 0.35);
	pointer-events: none;
}

.quote__text {
	margin: 0 0 1.5rem;
	font-size: 0.98rem;
	line-height: 1.72;
	color: var(--ink);
	text-wrap: pretty;
}

.quote__author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 1.1rem;
	border-top: 1px solid var(--line);
}

.quote__avatar {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--navy);
	color: #fff;
	font-family: var(--font-display);
	font-size: 1.1rem;
	font-weight: 600;
	overflow: hidden;
	flex: none;
}

.quote__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
	flex: none;
}

.quote__meta {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
	font-size: 0.72rem;
	color: var(--muted);
}

.quote__meta strong {
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--ink);
	display: block;
}

.quote__meta span {
	display: block;
	letter-spacing: -0.01em;
}

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

.contact {
	position: relative;
	background: var(--paper);
	color: var(--ink);
	overflow: hidden;
}

.contact::before {
	content: "";
	position: absolute;
	top: -160px;
	right: -120px;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	border: 1px solid rgba(194, 160, 106, 0.22);
	pointer-events: none;
}

.contact::after {
	content: "";
	position: absolute;
	top: -80px;
	right: -40px;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	border: 1px solid rgba(194, 160, 106, 0.14);
	pointer-events: none;
}

.contact__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(36px, 6vw, 80px);
	align-items: start;
	z-index: 1;
}

.contact .eyebrow {
	color: var(--gold);
}

.contact__title {
	color: var(--ink);
	max-width: 15ch;
	margin-bottom: 1.25rem;
}

.contact .accent {
	color: var(--gold);
}

.contact__lede {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--muted);
	max-width: 42ch;
	margin-bottom: 2.25rem;
}

.contact__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-bottom: 2rem;
}

.contact__socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--line-dark);
	border-radius: 50%;
	color: var(--ink);
	border-color: var(--line);
	transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease), border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.contact__socials a:hover,
.contact__socials a:focus-visible {
	color: var(--navy-deep);
	background: var(--gold);
	border-color: var(--gold);
	transform: translateY(-2px);
}

.contact__socials svg {
	width: 22px;
	height: 22px;
}

@media (prefers-reduced-motion: reduce) {
	.contact__socials a:hover,
	.contact__socials a:focus-visible {
		transform: none;
	}
}

.contact {
	padding-bottom: 4rem;
}

.contact__copyright {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	text-align: center;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.86);
	background: var(--navy-deep);
	padding: 0.85rem 1rem;
}

.contact__availability {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.55rem 0.9rem;
	border: 1px solid var(--line-dark);
	border-radius: 999px;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.85);
}

.contact__availability .eyebrow__dot {
	box-shadow: 0 0 0 3px rgba(77, 140, 92, 0.25);
}

.contact__card {
	background: var(--card);
	color: var(--ink);
	border-radius: var(--radius);
	padding: clamp(22px, 3vw, 36px);
	box-shadow: var(--shadow-lg);
}

/* ---------------------------------------------------------------- Form ---- */

.form {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.form__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.form__field label {
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--ink);
}

.form__field input,
.form__field select,
.form__field textarea {
	width: 100%;
	padding: 0.7rem 0.85rem;
	background: var(--input-bg);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--ink);
	transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
	appearance: none;
}

.form__field select {
	background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
		linear-gradient(135deg, var(--muted) 50%, transparent 50%);
	background-position: calc(100% - 18px) 1.15em, calc(100% - 13px) 1.15em;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 2.4rem;
}

.form__field textarea {
	resize: vertical;
	min-height: 120px;
}

.form__field input::placeholder,
.form__field textarea::placeholder {
	color: #9aa2ad;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
	outline: none;
	border-color: var(--navy);
	box-shadow: 0 0 0 3px rgba(15, 30, 51, 0.08);
}

.form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form__note {
	font-size: 0.78rem;
	line-height: 1.5;
	color: var(--muted);
	text-align: center;
}

.form__note a {
	color: var(--ink);
	text-decoration-color: var(--line);
}

.form-notice {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin-bottom: 1.25rem;
	padding: 0.85rem 1rem;
	border-radius: var(--radius-sm);
	font-size: 0.85rem;
	line-height: 1.5;
	border: 1px solid;
}

.form-notice strong {
	font-family: var(--font-display);
	font-size: 0.88rem;
	font-weight: 600;
}

.form-notice--success {
	background: #f1f7f2;
	border-color: #cfe3d4;
	color: #2c5138;
}

.form-notice--error {
	background: #fdf4f3;
	border-color: #f0d3cf;
	color: #78302a;
}

/* --------------------------------------------------------------- Modal ---- */

.modal {
	width: min(880px, calc(100vw - 32px));
	max-width: none;
	max-height: none;
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ink);
}

.modal::backdrop {
	background: rgba(10, 21, 36, 0.55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.modal__inner {
	position: relative;
	background: var(--card);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.5);
	animation: modal-in 240ms var(--ease);
	max-height: min(86vh, 900px);
	display: flex;
	flex-direction: column;
}

@keyframes modal-in {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.985);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--ink);
	cursor: pointer;
	transition: background-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.modal__close:hover {
	background: var(--card-soft);
	transform: rotate(90deg);
}

.modal__body {
	overflow-y: auto;
	overscroll-behavior: contain;
}

.case__band {
	padding: clamp(26px, 4vw, 44px);
	padding-right: 4.5rem;
	border-bottom: 1px solid var(--line);
}

.case__eyebrow {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 0.65rem;
}

.case__title {
	font-size: clamp(1.6rem, 3.4vw, 2.3rem);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1.08;
	margin-bottom: 0.85rem;
}

.case__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.case__tags .tag {
	background: rgba(255, 255, 255, 0.65);
	border-color: rgba(15, 30, 51, 0.12);
	color: var(--ink);
}

.case__content {
	padding: clamp(26px, 4vw, 44px);
}

.case__summary {
	font-size: 1.02rem;
	line-height: 1.7;
	color: var(--ink);
	margin-bottom: 2rem;
	padding-bottom: 1.75rem;
	border-bottom: 1px solid var(--line);
}

.case__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(24px, 4vw, 44px);
	margin-bottom: 2rem;
}

.case__label {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold-ink);
	margin-bottom: 0.5rem;
}

.case__text {
	font-size: 0.94rem;
	line-height: 1.75;
	color: var(--muted);
}

.case__tools {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 2rem;
}

.case__tools li {
	padding: 0.28rem 0.65rem;
	border: 1px solid var(--line);
	border-radius: 4px;
	font-size: 0.78rem;
	color: var(--ink);
	background: var(--bone);
}

.case__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}

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

.site-footer {
	background: var(--navy-deep);
	color: rgba(255, 255, 255, 0.7);
	padding-block: clamp(44px, 6vw, 72px) 1.75rem;
	font-size: 0.9rem;
}

.footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(28px, 5vw, 64px);
	padding-bottom: clamp(32px, 4vw, 48px);
}

.footer__brand p {
	max-width: 34ch;
	margin-top: 1rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.88rem;
}

.brand--footer {
	color: #fff;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.6rem;
}

.brand--footer:hover {
	color: #fff;
}

.brand__mark--footer {
	width: 46px;
	height: 46px;
	color: #fff;
}

.brand__name--footer {
	font-size: 1rem;
}

.footer__heading {
	margin-bottom: 1rem;
	font-family: var(--font-body);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--gold);
}

.footer__nav ul {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.footer__nav a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.footer__nav a:hover {
	color: var(--gold);
}

.footer__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.footer__socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line-dark);
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.82);
	transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease), border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.footer__socials a:hover,
.footer__socials a:focus-visible {
	color: var(--navy-deep);
	background: var(--gold);
	border-color: var(--gold);
	transform: translateY(-2px);
}

.footer__socials svg {
	width: 19px;
	height: 19px;
}

@media (prefers-reduced-motion: reduce) {
	.footer__socials a:hover,
	.footer__socials a:focus-visible {
		transform: none;
	}
}

.footer__location {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.55);
}

.footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line-dark);
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.64);
}

.footer__top-link {
	background: transparent;
	border: 0;
	padding: 0.25rem 0;
	color: rgba(255, 255, 255, 0.75);
	cursor: pointer;
	font-size: 0.8rem;
	transition: color var(--speed) var(--ease);
}

.footer__top-link:hover {
	color: var(--gold);
}

/* ------------------------------------------------------- Inner pages ---- */

.page-wrap {
	padding-block: clamp(48px, 7vw, 88px);
}

.prose {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--muted);
}

.prose > * + * {
	margin-top: 1.25rem;
}

.prose h1,
.prose h2,
.prose h3 {
	color: var(--ink);
	margin-top: 2rem;
}

.prose h2 {
	font-size: 1.5rem;
}

.prose h3 {
	font-size: 1.2rem;
}

.prose a {
	color: var(--ink);
	text-decoration-color: var(--gold);
}

.prose a:hover {
	color: var(--gold-ink);
}

.prose ul,
.prose ol {
	padding-left: 1.25rem;
	list-style: disc;
}

.prose ol {
	list-style: decimal;
}

.prose li + li {
	margin-top: 0.4rem;
}

.prose blockquote {
	margin: 1.5rem 0;
	padding-left: 1.25rem;
	border-left: 2px solid var(--gold);
	color: var(--ink);
	font-size: 1.02rem;
}

.prose img {
	border-radius: var(--radius-sm);
}

.entry__title {
	font-size: clamp(1.9rem, 4vw, 2.7rem);
	letter-spacing: -0.035em;
	line-height: 1.1;
	margin-bottom: 1.5rem;
}

.entry__media {
	margin: 0 0 2rem;
}

.entry__header {
	margin-bottom: 1.5rem;
}

.entry__back {
	margin-top: 2.5rem;
}

.pagination {
	margin-top: 3rem;
	display: flex;
	justify-content: center;
}

.pagination .nav-links {
	display: flex;
	gap: 0.5rem;
}

.pagination a,
.pagination .current {
	display: inline-grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding-inline: 0.5rem;
	border: 1px solid var(--line);
	border-radius: 6px;
	text-decoration: none;
	font-size: 0.85rem;
}

.pagination .current {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

.error-404 .entry__title {
	margin-bottom: 1rem;
}

/* ------------------------------------------------------------- Reveal ---- */

.reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 600ms var(--ease), transform 600ms var(--ease);
	will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.site-main > section .container,
	.site-main > footer.site-footer .container {
		opacity: 1;
		transform: none;
		transition: none;
	}

	html {
		scroll-behavior: auto;
	}

	.modal__inner {
		animation: none;
	}

	/* The toolkit marquee keeps autoplaying by design (it has a pause control). */
	*:not(.toolkit__track),
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

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

@media (max-width: 1080px) {
	.nav {
		gap: 1.25rem;
	}

	.nav__list {
		gap: 1.25rem;
	}

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

	.hero__visual {
		min-height: 500px;
	}

}

@media (max-width: 960px) {
	:root {
		--header-h: 68px;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0.5rem clamp(20px, 5vw, 48px) 1.5rem;
		background: var(--card);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 24px 40px -30px rgba(15, 30, 51, 0.6);
	}

	.nav.is-open {
		display: flex;
	}

	.nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav__list li {
		border-bottom: 1px solid var(--line);
	}

	.nav__list a {
		display: block;
		padding-block: 0.9rem;
		font-size: 1rem;
	}

	.nav__list a::after {
		display: none;
	}

	.nav__cta {
		margin-top: 1rem;
		padding-block: 0.85rem;
		align-self: flex-start;
	}

	.hero__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.hero__title {
		max-width: 18ch;
	}

	.hero__visual {
		min-height: 420px;
		max-width: 520px;
		width: 100%;
		margin-inline: auto;
	}

	.section__head-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}

	.section__title {
		max-width: 26ch;
	}

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

	.service:last-child {
		grid-column: 1 / -1;
	}

	.about__inner,
	.contact__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.about__media {
		max-width: 380px;
	}

	.about__media::before {
		inset: 14px -14px -14px 14px;
	}

	.testimonials__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.quote__text {
		font-size: 1.02rem;
	}

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

	.footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.hero {
		padding-top: 36px;
	}

	.hero__title {
		font-size: clamp(2.15rem, 9vw, 2.9rem);
		max-width: 100%;
	}

	.hero__accent {
		white-space: normal;
	}

	.hero__proof {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.9rem;
	}

	.hero__proof li {
		display: flex;
		align-items: baseline;
		gap: 0.5rem;
		flex-wrap: wrap;
	}

	.hero__proof-text {
		display: inline;
	}

	.hero__actions .btn {
		flex: 1 1 auto;
	}

	.hero__visual {
		min-height: 400px;
	}

	.hero__years {
		left: -10px;
		bottom: 16px;
		padding: 8px 13px 9px 11px;
		gap: 0.45rem;
	}

	.hero__years-num {
		font-size: 1.7rem;
	}

	.hero__years-label {
		font-size: 0.74rem;
	}

	.hero__toolkit {
		margin-top: 40px;
	}

	.tool {
		margin-right: 1.75rem;
		gap: 0.5rem;
	}

	.tool__icon {
		width: 26px;
		height: 26px;
	}

	.tool__name {
		font-size: 0.86rem;
	}

	.work__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.work__bar {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.75rem;
	}

	.services__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.form__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.case__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem;
	}

	.footer__top {
		grid-template-columns: minmax(0, 1fr);
	}

	.about__badge {
		right: -14px;
		bottom: 18px;
		box-shadow:
			0 18px 34px -22px rgba(10, 21, 36, 0.85),
			7px 7px 0 0 rgba(194, 160, 106, 0.5);
	}

	.section {
		padding-block: 56px;
	}
}

/* ------------------------------------------------------- Theme toggle ---- */

.header__tools {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex: none;
}

.theme-toggle {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--ink);
	cursor: pointer;
	transition: background-color var(--speed) var(--ease), border-color var(--speed) var(--ease),
		color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

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

.theme-toggle:active {
	transform: scale(0.94);
}

.theme-toggle__icon {
	grid-area: 1 / 1;
	width: 18px;
	height: 18px;
	transition: opacity 200ms var(--ease), transform 320ms var(--ease);
}

.theme-toggle__icon--sun {
	opacity: 1;
	transform: rotate(0deg) scale(1);
}

.theme-toggle__icon--moon {
	opacity: 0;
	transform: rotate(-40deg) scale(0.6);
}

html[data-theme="dark"] .theme-toggle__icon--sun {
	opacity: 0;
	transform: rotate(40deg) scale(0.6);
}

html[data-theme="dark"] .theme-toggle__icon--moon {
	opacity: 1;
	transform: rotate(0deg) scale(1);
}

/* --------------------------------------------------------- Dark theme ---- */

html[data-theme="dark"] {
	color-scheme: dark;
	--ink: #eef1f5;
	--muted: #a5b0bf;
	--paper: #0b1320;
	--bone: #121c2b;
	--line: #27313f;
	--line-dark: rgba(255, 255, 255, 0.12);
	--gold: #d8bb88;
	--gold-ink: #e0c69c;
	--card: #121d2c;
	--card-soft: #16202f;
	--input-bg: rgba(255, 255, 255, 0.045);
	--header-bg: rgba(11, 19, 32, 0.82);
	--pill-bg: rgba(255, 255, 255, 0.06);
	--btn-primary-bg: #e9edf3;
	--btn-primary-fg: #0a1524;
	--btn-primary-bg-hover: #ffffff;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
	--shadow-md: 0 18px 40px -24px rgba(0, 0, 0, 0.75);
	--shadow-lg: 0 32px 64px -28px rgba(0, 0, 0, 0.8);
}

html[data-theme="dark"] ::selection {
	background: var(--gold);
	color: #0a1524;
}

html[data-theme="dark"] .hero::before {
	background:
		radial-gradient(900px 480px at 88% 8%, rgba(216, 187, 136, 0.16), transparent 65%),
		radial-gradient(700px 500px at 0% 100%, rgba(255, 255, 255, 0.05), transparent 70%);
}

html[data-theme="dark"] .site-header.is-scrolled {
	box-shadow: 0 10px 30px -22px rgba(0, 0, 0, 0.9);
}

html[data-theme="dark"] .filter.is-active {
	background: var(--ink);
	border-color: var(--ink);
	color: #0a1524;
}

html[data-theme="dark"] .filter:hover,
html[data-theme="dark"] .project__button:hover {
	border-color: rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] .project__button:hover {
	box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.9);
}

html[data-theme="dark"] .service {
	border-top-color: var(--line);
}

html[data-theme="dark"] .about__frame::after {
	border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .quote__avatar {
	background: var(--gold);
	color: #0a1524;
}

html[data-theme="dark"] .tag,
html[data-theme="dark"] .case__tools li {
	background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .contact {
	background: linear-gradient(180deg, #101d30 0%, #0a1421 100%);
	border-top: 1px solid var(--line);
}

html[data-theme="dark"] .site-footer {
	border-top: 1px solid var(--line);
}

html[data-theme="dark"] .form__field input:focus,
html[data-theme="dark"] .form__field select:focus,
html[data-theme="dark"] .form__field textarea:focus {
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(216, 187, 136, 0.16);
}

html[data-theme="dark"] .form-notice--success {
	background: rgba(90, 158, 108, 0.14);
	border-color: rgba(90, 158, 108, 0.38);
	color: #b6e0c0;
}

html[data-theme="dark"] .form-notice--error {
	background: rgba(207, 104, 91, 0.14);
	border-color: rgba(207, 104, 91, 0.38);
	color: #f2bbb3;
}

html[data-theme="dark"] .modal::backdrop {
	background: rgba(2, 7, 13, 0.7);
}

html[data-theme="dark"] .skip-link {
	background: var(--gold);
	color: #0a1524;
}

/* Keep the decorative site mockups light so they read as framed artwork. */
html[data-theme="dark"] .mock--site {
	background-color: #ffffff;
}

html[data-theme="dark"] .hero__glow {
	opacity: 0.75;
}

/* --------------------------------------------------- Theme transition ---- */

@media (prefers-reduced-motion: no-preference) {
	html.theme-swapping,
	html.theme-swapping *,
	html.theme-swapping *::before,
	html.theme-swapping *::after {
		transition: background-color 300ms var(--ease), border-color 300ms var(--ease),
			color 300ms var(--ease), fill 300ms var(--ease) !important;
	}
}

@media (max-width: 640px) {
	.site-header__inner {
		gap: 1rem;
	}
}

@media (max-width: 420px) {
	.site-header__inner {
		gap: 0.6rem;
	}

	.brand {
		gap: 0.5rem;
	}

	.brand__mark {
		width: 36px;
		height: 36px;
		font-size: 0.78rem;
	}

	.brand__name {
		font-size: 0.9rem;
	}

	.brand__role {
		font-size: 0.66rem;
	}

	.header__tools {
		gap: 0.4rem;
	}

	.theme-toggle {
		width: 34px;
		height: 34px;
	}

	.nav-toggle {
		padding: 0.45rem 0.6rem;
		gap: 0.4rem;
	}

	.nav-toggle__label {
		display: none;
	}

	.container {
		padding-inline: 16px;
	}
}
/* Proof & trust */
.proof__metrics {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin-bottom: 2.5rem;
}
.proof__metric {
	padding: 1.25rem;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--paper-2, var(--paper));
}
.proof__metric-value {
	display: block;
	font-family: var(--font-display, inherit);
	font-size: 2rem;
	font-weight: 700;
	color: var(--accent, #c6921f);
}
.proof__metric-label {
	font-size: 0.85rem;
	color: var(--muted, #666);
}
.proof__clients {
	margin-bottom: 2.5rem;
}
.proof__clients-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted, #666);
	margin-bottom: 1rem;
}
.proof__client-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.proof__client {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.85rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
}
.proof__client-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--accent, #c6921f);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
}
.proof__client-name {
	font-size: 0.85rem;
}
.proof__steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
.proof__step {
	display: flex;
	gap: 1rem;
}
.proof__step-number {
	font-family: var(--font-display, inherit);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--accent, #c6921f);
}
.proof__step-title {
	margin: 0 0 0.25rem;
	font-size: 1.05rem;
}
.proof__step-text {
	margin: 0;
	font-size: 0.9rem;
	color: var(--muted, #666);
}
@media (max-width: 768px) {
	.proof__metrics { grid-template-columns: repeat(2, 1fr); }
	.proof__steps { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
	.proof__metrics { grid-template-columns: 1fr; }
}
@media (min-width: 960px) {
	/* --------------------------------------------------------- Horizontal scroll layout ---- */
	html,
	body {
		height: 100%;
		overflow: hidden;
	}

	.site-header {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 100;
	}

	.site-main {
		display: flex;
		flex-direction: row;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		height: 100vh;
		padding-top: var(--header-h);
	}

	.site-main > section,
	.site-main > footer.site-footer {
		flex: 0 0 100vw;
		min-width: 100vw;
		height: 100%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		scroll-snap-align: start;
		scroll-snap-stop: always;
		overflow: hidden;
		position: relative;
	}

	.site-main,
	.site-main > section,
	.site-main > footer.site-footer {
		scrollbar-width: none;
		-ms-overflow-style: none;
	}
	.site-main::-webkit-scrollbar,
	.site-main > section::-webkit-scrollbar,
	.site-main > footer.site-footer::-webkit-scrollbar {
		display: none;
	}

	/* Smooth enter transition for sections */
	.site-main > section .container,
	.site-main > footer.site-footer .container {
		opacity: 0;
		transform: translate3d( 180px, 0, 0 );
		transition: opacity 0.9s ease, transform 0.9s cubic-bezier( 0.22, 1, 0.36, 1 );
	}
	.site-main > section.is-active .container,
	.site-main > footer.site-footer.is-active .container {
		opacity: 1;
		transform: none;
	}

	/* Fit every section in one viewport on desktop */
	.section,
	.hero {
		padding-block: clamp(20px, 2.5vh, 40px);
	}
	.hero {
		padding-bottom: clamp(16px, 2vh, 32px);
	}
	.hero__actions {
		margin-bottom: 1.25rem;
	}
	.hero__lede {
		margin-bottom: 1.25rem;
	}
	.hero__proof {
		padding-top: 1rem;
	}
	.section__head {
		margin-bottom: clamp(16px, 2vh, 28px);
	}
	.container {
		padding-inline: clamp(16px, 2vw, 32px);
	}

	/* Portfolio grid scrolls sideways on desktop */
	.work__grid {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-ms-overflow-style: none;
		gap: 24px;
		padding-bottom: 0.5rem;
	}
	.work__grid::-webkit-scrollbar {
		display: none;
	}
	.work__grid .project {
		flex: 0 0 calc((100% - 48px) / 3);
		min-width: calc((100% - 48px) / 3);
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	.work__scroll {
		position: relative;
	}
	.work__arrow {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		z-index: 3;
		width: 40px;
		height: 40px;
		border-radius: 999px;
		border: 1px solid var(--line);
		background: var(--paper);
		color: var(--ink);
		cursor: pointer;
		font-size: 18px;
		line-height: 1;
		box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	}
	.work__arrow--prev { left: -20px; }
	.work__arrow--next { right: -20px; }
	.work__arrow[disabled] { opacity: 0.3; cursor: default; }
	.work__scroll::before,
	.work__scroll::after {
		content: '';
		position: absolute;
		top: 0;
		bottom: 0;
		width: 48px;
		pointer-events: none;
		z-index: 2;
		opacity: 0;
		transition: opacity 0.2s ease;
	}
	.work__scroll::before {
		left: 0;
		background: linear-gradient(to right, var(--paper), transparent);
	}
	.work__scroll::after {
		right: 0;
		background: linear-gradient(to left, var(--paper), transparent);
	}
	.work__scroll.has-prev::before { opacity: 1; }
	.work__scroll.has-next::after { opacity: 1; }
}
