/* ==========================================================================
   Wasiq Khan — main stylesheet
   1. Tokens & base   2. Layout   3. Components   4. Header/Footer
   5. Home   6. Inner pages   7. Motion   8. Responsive
   ========================================================================== */

/* 1. Tokens & base ------------------------------------------------------- */
:root {
	--bg: #f4f2ed;
	--bg-2: #ebe7df;
	--surface: #ffffff;
	--ink: #101014;
	--ink-2: #18181d;
	--ink-3: #24242b;
	--text: #101014;
	--muted: #5d5a54;
	--muted-on-dark: #a8a49c;
	--line: rgba(16, 16, 20, .12);
	--line-dark: rgba(255, 255, 255, .12);
	--accent: #fd983e;
	--accent-2: #ffb877;
	--accent-ink: #a84f00;
	--green: #22c55e;

	--font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
	--font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--radius-sm: 12px;
	--radius: 20px;
	--radius-lg: 32px;
	--shadow: 0 1px 2px rgba(16, 16, 20, .04), 0 12px 40px -12px rgba(16, 16, 20, .18);
	--shadow-lg: 0 40px 80px -30px rgba(16, 16, 20, .35);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 76px;
	--gutter: clamp(16px, 4vw, 40px);
	--container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
/* Phones widen the whole viewport for anything poking past the edge (e.g. cards mid 3D reveal),
   which pushes fixed elements off-screen; clipping here stops that without breaking sticky or pins. */
.site-main, .site-footer { overflow-x: clip; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--ink); }

h1, h2, h3, h4, h5 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -.03em;
	margin: 0 0 .5em;
	text-wrap: balance;
}
p { margin: 0 0 1.1em; text-wrap: pretty; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 12px; left: 12px;
	padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px;
}

/* 2. Layout -------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .section-text, .section--dark .muted { color: var(--muted-on-dark); }
.section--alt { background: var(--bg-2); }
.site-main { min-height: 60vh; }
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* 3. Components ---------------------------------------------------------- */

/* Brand logo: crops the generous padding baked into the source artwork. */
.brand-logo { display: block; width: 168px; aspect-ratio: 1824 / 264; overflow: hidden; }
.brand-logo img { width: 109.65%; max-width: none; margin: -5.3% 0 0 -4.82%; }
.brand-logo--lg { width: min(100%, 640px); }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
	letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
	margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); }
.section--dark .eyebrow { color: var(--muted-on-dark); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head.center { margin-inline: auto; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head--split .section-title { max-width: 720px; }
/* The inner heading's own bottom margin would otherwise push it above the button's baseline. */
.section-head.section-head--split > .section-head { margin-bottom: 0; flex: 1 1 460px; min-width: 0; }
.section-head--split > :last-child:not(.section-head) { flex: none; }
.section-title { font-size: clamp(2.1rem, 4.4vw, 3.9rem); margin: 0; }
.section-title em, .hero-title em, .page-title em { font-style: normal; color: var(--accent); }
.section:not(.section--dark) .section-title em { color: inherit; background: linear-gradient(transparent 62%, rgba(253, 152, 62, .45) 62%); }
.section-text { margin: 20px 0 0; font-size: 1.125rem; color: var(--muted); max-width: 620px; }

/* Buttons */
.btn {
	--btn-bg: var(--accent); --btn-fg: var(--ink);
	display: inline-flex; align-items: center; gap: 12px;
	padding: 8px 8px 8px 24px; min-height: 54px;
	border-radius: 999px; border: 1px solid transparent;
	background: var(--btn-bg); color: var(--btn-fg);
	font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -.01em;
	transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .4s var(--ease);
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(253, 152, 62, .6); }
.btn__icon {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	background: var(--ink); color: #fff; transition: transform .5s var(--ease);
}
.btn__icon .icon { width: 18px; height: 18px; }
.btn:hover .btn__icon { transform: rotate(45deg); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--dark .btn__icon { background: var(--accent); color: var(--ink); }
.btn--dark:hover { box-shadow: 0 14px 30px -12px rgba(16, 16, 20, .5); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { --btn-bg: var(--surface); box-shadow: var(--shadow); }
.section--dark .btn--ghost, .site-footer .btn--ghost { --btn-fg: #fff; border-color: var(--line-dark); }
.section--dark .btn--ghost:hover, .site-footer .btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .06); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--sm { min-height: 44px; padding: 5px 5px 5px 18px; font-size: 15px; }
.btn--sm .btn__icon { width: 32px; height: 32px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-display); font-weight: 600;
	border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.link-arrow:hover .icon { transform: translate(3px, -3px); }

.pill, .chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 14px; border-radius: 999px;
	font-size: 13px; font-weight: 500; line-height: 1.4;
	border: 1px solid var(--line); background: var(--surface);
}
.chip { padding: 4px 11px; font-size: 12.5px; background: transparent; }
.section--dark .chip { border-color: var(--line-dark); color: var(--muted-on-dark); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } }

/* Stars */
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.star .icon { width: 18px; height: 18px; }
.star { position: relative; display: inline-block; }
.star--empty, .star--half { color: rgba(16, 16, 20, .15); }
.section--dark .star--empty, .section--dark .star--half { color: rgba(255, 255, 255, .18); }
.star__fill { position: absolute; inset: 0 50% 0 0; overflow: hidden; color: var(--accent); }
.star__fill .icon { max-width: none; }

/* Cards (shared) */
.card {
	position: relative; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden;
	transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .3s;
}
.card:hover { box-shadow: var(--shadow-lg); }
[data-tilt] { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; will-change: transform; }
[data-tilt].is-tilting { transition: transform .15s linear, box-shadow .6s var(--ease); }

.media { position: relative; overflow: hidden; background: var(--bg-2); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .media img { transform: scale(1.05); }
.media--placeholder { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(253, 152, 62, .35), transparent 55%), var(--ink-2); color: rgba(255, 255, 255, .7); }
.media--placeholder .icon { width: 48px; height: 48px; }

/* Project card */
.project-card .media { aspect-ratio: 16 / 9; }
.project-card .media img { object-position: top center; } /* screenshots: keep the top of the page, trim only the bottom */
.project-card__body { padding: 22px 24px 26px; }
.project-card__meta { display: flex; gap: 10px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.project-card__title { font-size: 1.5rem; margin: 0 0 10px; }
.project-card__arrow {
	position: absolute; top: 16px; right: 16px; z-index: 2;
	width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
	background: var(--accent); color: var(--ink);
	transform: scale(.6) rotate(-45deg); opacity: 0; transition: all .5s var(--ease);
}
.card:hover .project-card__arrow { transform: none; opacity: 1; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Case study card */
.case-card { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 380px; }
/* The box stretches to the text beside it, so show the screenshot as a framed 16:9 preview instead of cropping it to fill. */
.case-card .media { min-height: 100%; display: grid; place-items: center; padding: clamp(18px, 3vw, 40px); }
.case-card .media img { height: auto; aspect-ratio: 16 / 9; object-position: top center; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.case-card__body { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.case-card__title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin: 0; }
.case-card__results { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: auto; }
.metric { padding: 16px; border-radius: var(--radius-sm); background: var(--bg); }
.metric__value { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; letter-spacing: -.03em; line-height: 1.1; }
.metric__label { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Post card */
.post-card .media { aspect-ratio: 16 / 10; }
.post-card__body { padding: 22px 24px 26px; }
.post-card__meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.post-card__meta .cat { color: var(--accent-ink); font-weight: 600; }
.post-card__title { font-size: 1.35rem; margin: 0 0 10px; line-height: 1.2; }
.post-card__excerpt { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Review card */
.review-card { padding: 28px; display: flex; flex-direction: column; gap: 18px; break-inside: avoid; }
.review-card__text { font-size: 16.5px; line-height: 1.65; margin: 0; }
.review-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review-card__quote { width: 30px; height: 30px; color: var(--accent); opacity: .9; }
.review-card__author { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.avatar {
	width: 48px; height: 48px; border-radius: 50%; flex: none; overflow: hidden;
	display: grid; place-items: center; background: var(--ink); color: var(--accent);
	font-family: var(--font-display); font-weight: 700;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-card__name { font-family: var(--font-display); font-weight: 600; display: block; line-height: 1.3; }
.review-card__role { font-size: 13.5px; color: var(--muted); }
.review-card__service { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.section--dark .review-card { background: var(--ink-2); border-color: var(--line-dark); color: #fff; }
.section--dark .review-card__role, .section--dark .review-card__service { color: var(--muted-on-dark); }

/* Accordion */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
	padding: 24px 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.3rem); letter-spacing: -.01em;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion__icon {
	flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	border: 1px solid var(--line); transition: transform .5s var(--ease), background .3s, border-color .3s;
}
.accordion details[open] .accordion__icon { transform: rotate(135deg); background: var(--accent); border-color: var(--accent); }
.accordion__body { padding: 0 64px 26px 0; color: var(--muted); }
.accordion__body p:last-child { margin: 0; }
.section--dark .accordion, .section--dark .accordion details { border-color: var(--line-dark); }
.section--dark .accordion__icon { border-color: var(--line-dark); }
.section--dark .accordion details[open] .accordion__icon { color: var(--ink); }
.section--dark .accordion__body { color: var(--muted-on-dark); }

/* Forms */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label, .field legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
	width: 100%; padding: 15px 18px; border-radius: 14px;
	border: 1px solid var(--line); background: var(--surface);
	transition: border-color .2s, box-shadow .2s; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23101014' stroke-width='1.8'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(253, 152, 62, .25); }
.field--check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.field--check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { display: none; padding: 14px 18px; border-radius: 14px; font-weight: 500; }
.form__status.is-visible { display: block; }
.form__status.is-error { background: #fdecec; color: #9b1c1c; }
.form__status.is-success { background: #e8f8ee; color: #12632e; }
.form.is-loading button[type=submit] { opacity: .6; pointer-events: none; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }

/* Star picker (radio buttons, CSS only) */
.star-picker { border: 0; padding: 0; margin: 0; }
.star-picker__stars { display: inline-flex; flex-direction: row-reverse; gap: 6px; }
.star-picker input { position: absolute; opacity: 0; pointer-events: none; }
.star-picker label { margin: 0; cursor: pointer; color: rgba(16, 16, 20, .18); transition: color .15s, transform .2s var(--ease); }
.star-picker label .icon { width: 34px; height: 34px; }
.star-picker label:hover, .star-picker label:hover ~ label, .star-picker input:checked ~ label { color: var(--accent); }
.star-picker label:hover { transform: scale(1.15) rotate(-8deg); }
.star-picker input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Pagination */
.pagination { margin-top: 56px; }
.pagination ul { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.pagination a, .pagination span {
	min-width: 46px; height: 46px; padding: 0 14px; display: grid; place-items: center;
	border-radius: 999px; border: 1px solid var(--line); font-weight: 600;
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a:hover { background: var(--surface); }

/* Filter chips */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filters a { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); font-weight: 500; font-size: 15px; transition: all .3s; }
.filters a:hover { background: var(--surface); }
.filters a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Breadcrumbs */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; font-size: 14px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumbs a:hover { color: var(--text); }

/* Empty state */
.empty {
	text-align: center; padding: clamp(40px, 6vw, 80px) 24px; border: 1px dashed var(--line);
	border-radius: var(--radius-lg); background: rgba(255, 255, 255, .4);
}
.empty .icon { width: 44px; height: 44px; margin: 0 auto 16px; color: var(--accent); }
.empty h3 { font-size: 1.6rem; }
.empty p { color: var(--muted); max-width: 460px; margin: 0 auto 24px; }
.section--dark .empty { border-color: var(--line-dark); background: rgba(255, 255, 255, .02); }
.section--dark .empty p { color: var(--muted-on-dark); }
.admin-hint { font-size: 14px; margin-top: 12px; }
.admin-hint a { text-decoration: underline; }

/* 4. Header / Footer ----------------------------------------------------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); pointer-events: none; }

.site-header {
	position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
	transition: background .4s, box-shadow .4s, transform .5s var(--ease);
}
.site-header.is-scrolled { background: rgba(244, 242, 237, .82); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header .brand { flex: none; }
.primary-nav .menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: 15.5px; transition: background .3s; }
.primary-nav .menu > li > a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { background: rgba(16, 16, 20, .06); }
.primary-nav .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 2px; }
.primary-nav .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 50%; min-width: 250px; list-style: none; margin: 0; padding: 8px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translate(-50%, 10px) perspective(600px) rotateX(-12deg); transform-origin: 50% 0;
	transition: all .35s var(--ease);
}
.primary-nav .sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.primary-nav .sub-menu a { display: block; padding: 10px 14px; border-radius: 12px; font-size: 15px; }
.primary-nav .sub-menu a:hover { background: var(--bg); }
/* Services mega menu (desktop). The fixed header is its positioning box, so it spans the header. */
.primary-nav .menu > .menu-item--mega { position: static; }
.primary-nav .mega {
	position: absolute; top: calc(100% - 6px); left: 50%; width: min(1180px, calc(100vw - 2 * var(--gutter)));
	opacity: 0; visibility: hidden; transform: translate(-50%, 12px) perspective(900px) rotateX(-6deg); transform-origin: 50% 0;
	transition: opacity .3s var(--ease), transform .45s var(--ease), visibility .3s;
}
.primary-nav .mega::before { content: ""; position: absolute; inset: -22px 0 auto; height: 22px; }
.primary-nav .menu-item--mega:hover > .mega, .primary-nav .menu-item--mega:focus-within > .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.primary-nav .mega { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); }
.mega__inner { display: grid; grid-template-columns: 1fr 240px; gap: 8px; padding: 26px 26px 18px; }
.mega__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.mega__title { margin: 0 0 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mega__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega__link { display: flex; gap: 10px; align-items: center; padding: 8px 10px; margin-left: -10px; border-radius: 10px; font-size: 14.5px; font-weight: 500; line-height: 1.3; transition: background .2s, color .2s; }
.mega__link:hover, .mega__link.is-current { background: var(--bg); }
.mega__icon { flex: none; display: grid; place-items: center; color: var(--muted); transition: color .2s; }
.mega__icon .icon { width: 17px; height: 17px; }
.mega__link:hover .mega__icon { color: var(--accent-ink); }
.mega__promo {
	position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; padding: 22px;
	background: var(--ink); color: #fff; border-radius: 16px;
}
.mega__promo::before { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(253, 152, 62, .4), transparent 65%); }
.mega__promo > * { position: relative; }
.mega__promo strong { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.25; }
.mega__promo p { margin: 0 0 8px; color: var(--muted-on-dark); font-size: 13.5px; }
.mega__promo .btn { align-self: flex-start; }
.mega__foot { display: flex; gap: 24px; padding: 14px 26px; border-top: 1px solid var(--line); }
.mega__foot a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.mega__foot a .icon { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.mega__foot a:hover { color: var(--accent-ink); }
.mega__foot a:hover .icon { transform: translateX(3px); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); place-items: center; }
.menu-toggle .icon--close { display: none; }
.nav-open .menu-toggle .icon--menu { display: none; }
.nav-open .menu-toggle .icon--close { display: block; }

/* Mobile drawer */
.mobile-nav {
	position: fixed; inset: 0; z-index: 90; background: var(--ink); color: #fff;
	padding: calc(var(--header-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column;
	overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
	clip-path: circle(0 at calc(100% - 44px) 38px); transition: clip-path .8s var(--ease); visibility: hidden;
}
.nav-open .mobile-nav { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
.nav-open .site-header { background: var(--ink); box-shadow: none; backdrop-filter: none; transition: background .2s .5s; }
.nav-open .site-header .brand-logo--orange { filter: none; }
.mobile-nav .menu { list-style: none; margin: 0; padding: 0; perspective: 800px; }
.mobile-nav .menu > li { border-bottom: 1px solid var(--line-dark); opacity: 0; transform: rotateX(-50deg) translateY(20px); transform-origin: 50% 0; transition: all .6s var(--ease); }
.nav-open .mobile-nav .menu > li { opacity: 1; transform: none; }
.nav-open .mobile-nav .menu > li:nth-child(2) { transition-delay: .05s; } .nav-open .mobile-nav .menu > li:nth-child(3) { transition-delay: .1s; }
.nav-open .mobile-nav .menu > li:nth-child(4) { transition-delay: .15s; } .nav-open .mobile-nav .menu > li:nth-child(5) { transition-delay: .2s; }
.nav-open .mobile-nav .menu > li:nth-child(6) { transition-delay: .25s; } .nav-open .mobile-nav .menu > li:nth-child(7) { transition-delay: .3s; }
.mobile-nav .menu > li > a { display: block; padding: 16px 0; font-family: var(--font-display); font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 600; letter-spacing: -.02em; }
.mobile-nav .sub-menu { list-style: none; padding: 0 0 16px; margin: -6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-nav .sub-menu a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 14.5px; color: var(--muted-on-dark); }
.mobile-nav__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 16px; }
.mobile-nav__foot a.mail { font-family: var(--font-display); font-size: 1.2rem; }

.socials { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); transition: all .35s var(--ease); }
.socials a:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); transform: translateY(-3px); }
.socials .icon { width: 18px; height: 18px; }
.socials--light a { border-color: var(--line); }

.site-footer { background: var(--ink); color: #fff; padding-top: clamp(80px, 10vw, 140px); overflow: hidden; position: relative; }
.site-footer--compact { padding-top: 0; }
.site-footer--compact .footer-grid { padding-top: clamp(56px, 6vw, 80px); }
.footer-cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line-dark); }
.footer-cta h2 { font-size: clamp(2.6rem, 6.4vw, 5.8rem); margin: 0; }
.footer-cta h2 em { font-style: normal; color: var(--accent); }
.footer-cta__side { display: grid; gap: 18px; justify-items: start; }
.footer-cta__mail { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.6rem); border-bottom: 1px solid var(--line-dark); padding-bottom: 4px; transition: color .3s, border-color .3s; }
.footer-cta__mail:hover { color: var(--accent); border-color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 40px; padding-block: 64px; }
.footer-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-dark); font-size: 13.5px; color: rgba(255, 255, 255, .85); }
.footer-more { color: var(--accent) !important; }
.footer-muted { color: var(--muted-on-dark); font-size: 14px; line-height: 1.5; }
.footer-grid h3 { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: 20px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid ul.socials { display: flex; flex-wrap: wrap; }
.footer-grid ul a { color: rgba(255, 255, 255, .82); transition: color .25s; }
.footer-grid ul a:hover { color: var(--accent); }
.footer-grid .menu .sub-menu { display: none; }
.footer-about p { color: var(--muted-on-dark); max-width: 340px; margin: 20px 0 24px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--muted-on-dark); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
/* Big wordmark under the links: visible enough to read as a deliberate brand element, not empty space. */
.footer-mega { padding: 8px 0 28px; opacity: .16; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.footer-mega .brand-logo { width: 100%; }
.back-to-top { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: inherit; padding: 0; }
.back-to-top .icon { width: 16px; height: 16px; }
/* Floating back-to-top button; its ring fills as you scroll down the page. */
.scroll-ring {
	position: fixed; right: clamp(16px, 2vw, 28px); bottom: calc(clamp(16px, 2vw, 28px) + env(safe-area-inset-bottom)); z-index: 80;
	width: 52px; height: 52px; border: 0; border-radius: 50%; padding: 0; display: grid; place-items: center; cursor: pointer;
	background: var(--ink); color: #fff; box-shadow: var(--shadow);
	opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s, color .3s;
}
.scroll-ring.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.scroll-ring:hover { background: var(--accent); color: var(--ink); }
.scroll-ring__svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.scroll-ring circle { fill: none; stroke-width: 2.5; }
.scroll-ring__track { stroke: rgba(255, 255, 255, .16); }
.scroll-ring__bar { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.scroll-ring:hover .scroll-ring__bar { stroke: var(--ink); }
.scroll-ring .icon { position: relative; width: 18px; height: 18px; }
.nav-open .scroll-ring { opacity: 0; pointer-events: none; }

/* 5. Home ---------------------------------------------------------------- */
.hero { padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px)); padding-bottom: clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%); opacity: .55;
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__badge { margin-bottom: 28px; }
.hero-title { font-size: clamp(2.9rem, 6.6vw, 6.1rem); line-height: .98; letter-spacing: -.045em; margin: 0 0 28px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero__text { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 560px; margin-bottom: 36px; }
.hero__proof { display: flex; align-items: center; gap: 16px; margin-top: 40px; font-size: 14.5px; color: var(--muted); flex-wrap: wrap; }
.hero__proof strong { color: var(--text); font-family: var(--font-display); }
.hero__proof-divider { width: 1px; height: 28px; background: var(--line); }

/* Hero 3D stage */
.hero-stage { position: relative; perspective: 1600px; aspect-ratio: 4 / 5; max-width: 520px; width: 100%; justify-self: end; }
/* Laptops and desktops: size the hero by screen height too, so the headline and photo fit on one screen. */
@media (min-width: 981px) {
	.hero { padding-top: calc(var(--header-h) + clamp(20px, 4vh, 56px)); }
	.hero__badge { margin-bottom: clamp(14px, 2.4vh, 28px); }
	.hero-title { font-size: clamp(2.9rem, min(6.6vw, 8.8vh), 6.1rem); margin-bottom: clamp(16px, 2.6vh, 28px); }
	.hero__text { margin-bottom: clamp(20px, 3.4vh, 36px); }
	.hero__proof { margin-top: clamp(20px, 3.6vh, 40px); }
	.hero-stage { width: min(100%, 520px, (100vh - var(--header-h) - 130px) * .8); }
}
.hero-scene { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s var(--ease); }
.hero-card { position: absolute; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--ink); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card--main { inset: 6% 8% 4% 4%; transform: translateZ(40px); }
.hero-card--back { width: 46%; aspect-ratio: 4 / 5; right: -4%; top: -2%; transform: translateZ(-90px) rotate(6deg); opacity: .9; }
.hero-card--main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(16, 16, 20, .55)); }
.hero-card__caption { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; color: #fff; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.hero-card__caption strong { font-family: var(--font-display); font-size: 1.25rem; display: block; line-height: 1.2; }
.hero-card__caption span { font-size: 13.5px; opacity: .8; }
.float-chip {
	position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px;
	background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, .9); border-radius: 999px; box-shadow: var(--shadow);
	font-weight: 600; font-size: 14px; white-space: nowrap; animation: float 6s ease-in-out infinite;
}
.float-chip__icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--accent); }
.float-chip__icon .icon { width: 18px; height: 18px; }
.float-chip--1 { top: 14%; left: -12%; transform: translateZ(140px); }
.float-chip--2 { top: 46%; right: -10%; transform: translateZ(180px); animation-delay: -2s; }
.float-chip--3 { bottom: 18%; left: -8%; transform: translateZ(110px); animation-delay: -4s; }
@keyframes float { 50% { translate: 0 -12px; } }
.code-card {
	position: absolute; right: -6%; bottom: -4%; width: 58%; padding: 16px 18px; border-radius: 18px;
	background: rgba(16, 16, 20, .92); color: #e6e3dc; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.7;
	transform: translateZ(120px); box-shadow: var(--shadow-lg); border: 1px solid var(--line-dark);
}
.code-card__dots { display: flex; gap: 6px; margin-bottom: 10px; }
.code-card__dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a42; }
.code-card__dots i:first-child { background: var(--accent); }
.code-card .k { color: var(--accent); } .code-card .s { color: #9fe0b5; } .code-card .c { color: #6f6c66; }
.spin-badge { position: absolute; top: -6%; left: -8%; width: 128px; height: 128px; transform: translateZ(60px); color: var(--ink); }
.spin-badge svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.spin-badge__core { position: absolute; inset: 30%; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.spin-badge__core .icon { width: 24px; height: 24px; }
@keyframes spin { to { rotate: 360deg; } }

.stats-bar { position: relative; z-index: 1; margin-top: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__value { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -.04em; line-height: 1; }
.stat__label { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Marquee */
/* Two bands crossing like an X: orange on top tilting one way, dark underneath tilting the other.
   Both are centred in a fixed-height strip and are 120% wide, so every end runs past the screen
   edges (no empty wedges) and the strip is tall enough that no tilted corner is ever clipped. */
.marquee {
	position: relative; z-index: 2; height: clamp(170px, 15vw, 230px);
	/* Light above, dark below, split along the orange band's own -3° tilt so the seam hides under it
	   (a 177° gradient puts the boundary through the centre, rising to the right by 3°). */
	--seam: 177deg;
	background: linear-gradient(var(--seam), var(--bg) calc(50% - 1px), var(--ink) calc(50% + 1px));
	overflow-x: hidden; overflow-x: clip; overflow-y: visible;
}
.marquee__band {
	position: absolute; left: -10%; width: 120%; top: 50%; z-index: 2;
	background: var(--accent); color: var(--ink); padding-block: 18px;
	transform: translateY(-50%) rotate(-3deg);
	box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .45);
}
.marquee__band--dark {
	z-index: 1; background: var(--ink-3); color: #fff;
	border-block: 1px solid rgba(255, 255, 255, .1);
	transform: translateY(-50%) rotate(3deg); box-shadow: none;
}
.marquee__band--dark .sep { background: var(--accent); opacity: 1; }
.marquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee__band--dark .marquee__track { animation-direction: reverse; animation-duration: 44s; }
/* Narrower screens need a steeper tilt for the X to stay visible. */
@media (max-width: 980px) {
	.marquee { --seam: 175.5deg; }
	.marquee__band { transform: translateY(-50%) rotate(-4.5deg); }
	.marquee__band--dark { transform: translateY(-50%) rotate(4.5deg); }
}
@media (max-width: 640px) {
	.marquee { height: 190px; --seam: 173deg; }
	.marquee__band { transform: translateY(-50%) rotate(-7deg); padding-block: 14px; }
	.marquee__band--dark { transform: translateY(-50%) rotate(7deg); }
}
.marquee__group { display: flex; align-items: center; gap: 32px; padding-right: 32px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: -.02em; white-space: nowrap; }
.marquee__group .sep { width: 14px; height: 14px; background: currentColor; transform: rotate(45deg); border-radius: 2px; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Services (home + archive) */
/* "dense" backfills any hole left when a double-width featured card wraps to the next row. */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 20px; perspective: 1600px; }
.service-card {
	position: relative; display: flex; flex-direction: column; gap: 18px; min-height: 340px; padding: 32px;
	border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); color: #fff; overflow: hidden;
	transition: transform .6s var(--ease), border-color .4s, background .4s;
}
.service-card::before { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(253, 152, 62, .35), transparent 65%); opacity: 0; transition: opacity .6s; }
.service-card:hover { border-color: rgba(253, 152, 62, .5); }
.service-card:hover::before { opacity: 1; }
.service-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.service-card__icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: rgba(253, 152, 62, .12); color: var(--accent); transform: translateZ(40px); }
.service-card__icon .icon { width: 28px; height: 28px; }
.service-card__num { font-family: var(--font-mono); font-size: 13px; color: var(--muted-on-dark); }
.service-card__title { font-size: 1.6rem; margin: auto 0 0; transform: translateZ(30px); }
.service-card__text { color: var(--muted-on-dark); margin: 0; font-size: 15.5px; }
.service-card__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-family: var(--font-display); color: var(--accent); }
.service-card__more .icon { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.service-card:hover .service-card__more .icon { transform: translate(3px, -3px); }
.services-grid > div, .grid > div { display: grid; }
.services-grid > .is-featured { grid-column: span 2; }
.service-card--cta { background: transparent !important; border: 1px dashed rgba(253, 152, 62, .45) !important; justify-content: flex-end; }
.service-card--cta .service-card__title { margin-top: auto; }
.service-card--featured { background: linear-gradient(135deg, #2a1a0c, var(--ink-2) 60%); border-color: rgba(253, 152, 62, .35); }
.service-card--featured .service-card__title { font-size: clamp(1.9rem, 3vw, 2.6rem); max-width: 520px; }
.service-card--featured .service-card__text { max-width: 520px; font-size: 16.5px; }
.badge-new { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 600; }
.section:not(.section--dark) .service-card { background: var(--surface); border-color: var(--line); color: var(--text); }
.section:not(.section--dark) .service-card__text, .section:not(.section--dark) .service-card__num { color: var(--muted); }
.section:not(.section--dark) .service-card__more { color: var(--accent-ink); }
.section:not(.section--dark) .service-card--featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.section:not(.section--dark) .service-card--featured .service-card__text, .section:not(.section--dark) .service-card--featured .service-card__num { color: var(--muted-on-dark); }
.section:not(.section--dark) .service-card--featured .service-card__more { color: var(--accent); }

/* Work — horizontal 3D gallery */
.work { overflow: hidden; }
.work__viewport { perspective: 1800px; }
.work-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); transform-style: preserve-3d; }
.work-track::-webkit-scrollbar { display: none; }
.work-track > * { flex: 0 0 min(78vw, 420px); scroll-snap-align: center; transform-style: preserve-3d; }
.work .section-head { margin-bottom: clamp(28px, 3.5vw, 48px); }
.work-track .project-card { background: var(--ink-2); border-color: var(--line-dark); color: #fff; }
.work-track .project-card__meta { color: var(--muted-on-dark); }
.work-track .project-card .media { aspect-ratio: 16 / 9; }
.is-pinned-x { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; }
.is-pinned-x .work-track { overflow: visible; scroll-snap-type: none; }
.work-track__end { display: grid; place-items: center; text-align: center; border: 1px dashed var(--line-dark); border-radius: var(--radius); padding: 40px; min-height: 360px; }
.work-track__end h3 { font-size: 2rem; }

/* Process — 3D stacked cards */
.process { overflow: hidden; }
.process__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.process-stack { position: relative; display: grid; gap: 20px; perspective: 1400px; }
.process-card {
	position: relative; padding: clamp(28px, 3vw, 44px); border-radius: var(--radius-lg); min-height: 300px;
	background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
	display: flex; flex-direction: column; gap: 16px; transform-origin: 50% 100%; backface-visibility: hidden;
}
.process-card:nth-child(2) { background: var(--ink); color: #fff; border-color: var(--ink); }
.process-card:nth-child(3) { background: var(--accent); border-color: var(--accent); }
.process-card:nth-child(4) { background: var(--ink-3); color: #fff; border-color: var(--ink-3); }
.process-card__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 8vw, 6.5rem); line-height: .8; letter-spacing: -.06em; opacity: .14; position: absolute; right: 28px; top: 28px; }
.process-card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(16, 16, 20, .07); }
.process-card:nth-child(2n) .process-card__icon { background: rgba(255, 255, 255, .08); color: var(--accent); }
.process-card__icon .icon { width: 26px; height: 26px; }
.process-card h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin: auto 0 0; }
.process-card p { margin: 0; max-width: 440px; opacity: .78; }
.is-stacked .process-stack { display: block; height: 420px; }
.is-stacked .process-card { position: absolute; inset: 0; }
.process__steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 4px; }
.process__steps li { display: flex; gap: 14px; align-items: center; padding: 12px 0; color: var(--muted); font-weight: 500; transition: color .3s; border-bottom: 1px solid var(--line); }
.process__steps li span { font-family: var(--font-mono); font-size: 12px; }
.process__steps li.is-active { color: var(--text); }
.process__steps li.is-active span { color: var(--accent-ink); }

/* About teaser */
.about-teaser__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.about-visual { position: relative; perspective: 1400px; }
.about-visual__frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); transform-style: preserve-3d; }
/* Parallax photos: 25% taller than their frame and centred, so moving up to ±10% never shows an edge. */
.parallax-img { position: absolute; left: 0; top: -12.5%; width: 100%; height: 125%; max-width: none; object-fit: cover; object-position: 50% 30%; }
.about-visual__card {
	position: absolute; right: -24px; bottom: 40px; padding: 22px 26px; border-radius: 22px; background: var(--accent); color: var(--ink);
	box-shadow: var(--shadow-lg); transform: translateZ(80px);
}
.about-visual__card strong { display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; letter-spacing: -.04em; }
.about-visual__card span { font-size: 14px; font-weight: 500; }
.check-list { list-style: none; margin: 28px 0 36px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check-list .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent); color: var(--ink); margin-top: 2px; }
.section--dark .check-list .icon { color: var(--ink); }

/* Reviews strip */
.reviews-summary { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.reviews-summary__score { font-family: var(--font-display); font-size: 3.4rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.reviews-summary__meta { display: grid; gap: 4px; font-size: 14.5px; }
.reviews-marquee { display: grid; gap: 20px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.reviews-marquee__row { display: flex; gap: 20px; width: max-content; animation: marquee 60s linear infinite; }
.reviews-marquee__row:nth-child(2) { animation-direction: reverse; animation-duration: 70s; }
.reviews-marquee:hover .reviews-marquee__row { animation-play-state: paused; }
.reviews-marquee .review-card { width: min(84vw, 400px); flex: none; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* 6. Inner pages --------------------------------------------------------- */
.page-hero { position: relative; padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(56px, 7vw, 100px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, #000 10%, transparent 70%); opacity: .6; pointer-events: none; }
.page-hero__grid { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.page-title { font-size: clamp(2.6rem, 6vw, 5.4rem); letter-spacing: -.045em; line-height: 1; margin: 0; }
.page-hero__text { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 640px; margin: 24px 0 0; }
.page-hero__actions { margin-top: 32px; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* CSS 3D cube used on inner page heroes */
.cube-wrap { width: 200px; height: 200px; perspective: 900px; margin-right: 40px; }
.cube { position: relative; width: 140px; height: 140px; margin: 30px; transform-style: preserve-3d; transform: rotateX(calc(-24deg + var(--sy, 0) * .08deg)) rotateY(calc(36deg + var(--sy, 0) * .22deg)); animation: cube-idle 14s linear infinite; }
.cube__face { position: absolute; inset: 0; border-radius: 22px; display: grid; place-items: center; border: 1px solid rgba(16, 16, 20, .12); backface-visibility: visible; }
.cube__face .icon { width: 44px; height: 44px; }
.cube__face--front { transform: translateZ(70px); background: var(--accent); color: var(--ink); }
.cube__face--back { transform: rotateY(180deg) translateZ(70px); background: var(--ink); color: var(--accent); }
.cube__face--right { transform: rotateY(90deg) translateZ(70px); background: var(--ink); color: var(--accent); }
.cube__face--left { transform: rotateY(-90deg) translateZ(70px); background: var(--surface); color: var(--ink); }
.cube__face--top { transform: rotateX(90deg) translateZ(70px); background: var(--accent-2); color: var(--ink); }
.cube__face--bottom { transform: rotateX(-90deg) translateZ(70px); background: var(--ink-3); color: #fff; }
@keyframes cube-idle { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* Pricing page: starting prices grouped by category */
.price-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.price-group { padding: clamp(22px, 2.6vw, 32px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.price-group__title { font-size: 1.3rem; margin: 0 0 12px; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li + li { border-top: 1px solid var(--line); }
.price-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; transition: background .25s; border-radius: 12px; }
.price-row:hover { background: var(--bg); }
.price-row__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); }
.price-row:hover .price-row__icon { background: var(--ink); color: var(--accent); }
.price-row__icon .icon { width: 19px; height: 19px; }
.price-row__main { flex: 1; min-width: 0; display: grid; }
.price-row__main strong { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.price-row__main small { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.price-row__main small .icon { width: 13px; height: 13px; }
.price-row__price { font-family: var(--font-display); font-weight: 700; font-size: 16px; white-space: nowrap; }
.price-row__arrow { color: var(--muted); }
.price-row__arrow .icon { width: 16px; height: 16px; }
.price-row:hover .price-row__arrow { color: var(--ink); }
.values--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pay-terms { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pay-terms li { padding: 20px 22px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); display: grid; gap: 4px; }
.pay-terms strong { font-family: var(--font-display); color: var(--accent); font-size: 1.15rem; }
.pay-terms span { color: var(--muted-on-dark); }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.pains li span { display: flex; gap: 12px; align-items: flex-start; color: #e7e4de; }
.pains .icon { flex: none; width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%; background: rgba(239, 68, 68, .16); color: #fca5a5; }
.section:not(.section--dark) .service-card--cta { border-color: rgba(16, 16, 20, .25) !important; }
.audit-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.audit-checks li { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.audit-checks strong { display: block; font-family: var(--font-display); font-weight: 600; }
.audit-checks small { display: block; color: var(--muted); font-size: 14px; }
.about-portrait .about-portrait__img--tall { aspect-ratio: 4 / 5; }

/* Pricing packages */
.pricing-grid { display: grid; gap: 20px; align-items: stretch; perspective: 1600px; }
.pricing-grid--1 { grid-template-columns: minmax(0, 480px); justify-content: center; }
.pricing-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pricing-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pricing-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pricing-grid > div { display: grid; }
.plan {
	position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 24px; padding: clamp(26px, 2.6vw, 36px);
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
	transition: border-color .3s, box-shadow .5s var(--ease);
}
.plan:hover { border-color: var(--ink); box-shadow: var(--shadow-lg); }
.plan__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.plan__num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.plan__name { font-size: clamp(1.4rem, 2vw, 1.75rem); margin: 0 0 8px; }
.plan__text { margin: 0; color: var(--muted); font-size: 15.5px; min-height: 4.8em; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.plan__price strong { font-family: var(--font-display); font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.plan__price span { color: var(--muted); font-size: 15px; }
.plan__features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; flex: 1; }
.plan__features li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.plan__features .icon { flex: none; width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%; background: var(--bg); color: var(--ink); }
.plan__features li.is-includes { font-weight: 600; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.plan__features li.is-includes .icon { background: var(--ink); color: var(--accent); }
.plan__cta .btn { width: 100%; justify-content: space-between; }
.plan--featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan--featured::before { content: ""; position: absolute; width: 380px; height: 380px; right: -150px; top: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(253, 152, 62, .4), transparent 65%); pointer-events: none; }
.plan--featured > * { position: relative; }
.plan--featured .plan__num, .plan--featured .plan__text, .plan--featured .plan__price span { color: var(--muted-on-dark); }
.plan--featured .plan__price { border-color: var(--line-dark); }
.plan--featured .plan__price strong { color: var(--accent); }
.plan--featured .plan__features .icon { background: var(--accent); color: var(--ink); }
.plan--featured .plan__features li.is-includes { border-color: var(--line-dark); }
.plan--featured .plan__features li.is-includes .icon { background: #fff; color: var(--ink); }
.plan--featured:hover { border-color: var(--accent); }
.pricing__note { text-align: center; color: var(--muted); margin: 32px 0 0; font-size: 15px; }
.pricing__note a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* Technologies grid */
.tech-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; perspective: 1400px; }
.tech-grid > li { display: grid; }
.tech-card {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 12px 18px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	transition: border-color .3s, box-shadow .5s var(--ease), transform .6s var(--ease);
}
.tech-card:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.tech-card__logo {
	position: relative; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 8px;
	background: var(--bg); transform: translateZ(30px); transition: background .3s;
}
.tech-card__logo img { width: 30px; height: 30px; filter: grayscale(1) brightness(.25); transition: filter .4s var(--ease), transform .5s var(--ease); }
.tech-card:hover .tech-card__logo img { filter: none; transform: scale(1.1); }
.tech-card__letter { display: none; font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; color: var(--ink); }
.tech-card__logo.is-letter .tech-card__letter { display: block; }
.tech-card:hover .tech-card__logo.is-letter { background: var(--accent); }
.tech-card__name { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.tech-card__type { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.section--dark .tech-card { background: var(--ink-2); border-color: var(--line-dark); color: #fff; }
.section--dark .tech-card__logo { background: #fff; }

/* Experience timeline */
.experience__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.experience__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.experience__intro .section-head { margin-bottom: 32px; }
.experience__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.experience__stats > div { padding: 20px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); }
.experience__stats strong { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.experience__stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted-on-dark); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; display: grid; gap: 20px; perspective: 1400px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--accent), rgba(253, 152, 62, .1)); border-radius: 2px; }
.timeline__item { position: relative; }
.timeline__dot { position: absolute; left: -34px; top: 34px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 2px solid var(--accent); }
.timeline__item.is-current .timeline__dot { background: var(--accent); box-shadow: 0 0 0 6px rgba(253, 152, 62, .18); }
.timeline__card { padding: clamp(22px, 2.6vw, 32px); border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); transition: border-color .3s; }
.timeline__card:hover { border-color: rgba(253, 152, 62, .5); }
.timeline__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.timeline__head > div { flex: 1; min-width: 0; }
.timeline__badge { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.timeline__head h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); margin: 0 0 4px; line-height: 1.25; }
.timeline__company { margin: 0; color: var(--muted-on-dark); font-size: 15px; }
.timeline__company span { opacity: .5; margin: 0 4px; }
.timeline__now { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; background: rgba(34, 197, 94, .12); color: #86efac; font-size: 12.5px; font-weight: 600; }
.timeline__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; font-size: 14px; color: var(--muted-on-dark); }
.timeline__meta span { display: inline-flex; align-items: center; gap: 7px; }
.timeline__meta .icon { width: 16px; height: 16px; color: var(--accent); }
.timeline__text { margin: 0 0 18px; color: #d8d5ce; font-size: 15.5px; }

/* Single service */
.service-hero__icon { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: var(--ink); color: var(--accent); margin-bottom: 28px; }
.service-hero__icon .icon { width: 36px; height: 36px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fact { display: flex; gap: 12px; align-items: center; padding: 12px 18px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.fact__icon { width: 38px; height: 38px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; }
.fact__icon .icon { width: 18px; height: 18px; }
.fact small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.2; }
.fact strong { font-family: var(--font-display); font-weight: 600; line-height: 1.3; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.split--sticky > :first-child { position: sticky; top: calc(var(--header-h) + 32px); }
.split__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; align-content: start; }
.split__aside .section-head { margin-bottom: 0; }
.faq-simple { max-width: 880px; }
.faq-simple .section-head { margin-bottom: clamp(32px, 4vw, 52px); }
.faq-simple .section-text { margin-inline: auto; }
.faq-simple__more { display: flex; justify-content: center; margin-top: 40px; }
.help-card { padding: 28px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; display: grid; gap: 18px; position: relative; overflow: hidden; }
.help-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(253, 152, 62, .35), transparent 65%); pointer-events: none; }
.help-card__head { display: flex; gap: 14px; align-items: center; }
.help-card__head img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); flex: none; }
.help-card__head strong { display: block; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.25; }
.help-card__head span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted-on-dark); }
.help-card p { margin: 0; color: var(--muted-on-dark); font-size: 15.5px; }
.help-card .btn--ghost { --btn-fg: #fff; border-color: var(--line-dark); }
.help-card .btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .06); }
.help-card__mail { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted-on-dark); transition: color .25s; }
.help-card__mail:hover { color: var(--accent); }
.help-card__mail .icon { width: 18px; height: 18px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-list { gap: 10px; }
.feature-list li { display: flex; gap: 14px; align-items: center; padding: 13px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; transition: transform .4s var(--ease), border-color .3s; }
.feature-list li:hover { transform: translateX(6px); border-color: var(--accent); }
.feature-list .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--accent); color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; perspective: 1400px; }
.step { padding: 28px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); position: relative; min-height: 240px; display: flex; flex-direction: column; }
.step__num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-bottom: auto; }
.step h3 { font-size: 1.4rem; margin: 40px 0 10px; }
.step p { color: var(--muted-on-dark); font-size: 15px; margin: 0; }
.tools-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tools-row .pill { font-size: 14.5px; padding: 10px 18px; }

/* Single project / case study */
.work-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 48px; }
.work-meta > div { padding: 22px 20px 22px 0; }
.work-meta > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.work-meta small { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.work-meta strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.work-meta a { text-decoration: underline; text-underline-offset: 3px; }
.showcase { perspective: 1800px; margin-top: clamp(40px, 6vw, 72px); }
.showcase__frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); transform-origin: 50% 0; background: var(--ink); }
.showcase__frame img { width: 100%; }
.showcase__bar { display: flex; gap: 8px; padding: 14px 18px; background: var(--ink); }
.showcase__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a42; }
.showcase__bar i:first-child { background: var(--accent); }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.result { padding: 32px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); }
.result__value { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 4.6vw, 4rem); letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.result__label { display: block; color: var(--muted-on-dark); margin-top: 10px; }
.cs-block { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.cs-block h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); display: flex; align-items: center; gap: 14px; }
.cs-block h2 .icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--accent); color: var(--ink); }
.cs-block p { color: var(--muted); }
.cs-block--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.cs-block--dark p { color: var(--muted-on-dark); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-nav a { display: block; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: all .4s var(--ease); }
.post-nav a:hover { border-color: var(--ink); transform: translateY(-4px); }
.post-nav small { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.post-nav small .icon { width: 16px; height: 16px; }
.post-nav strong { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; display: block; }
.post-nav .next { text-align: right; }
.post-nav .next small { justify-content: flex-end; }

/* Prose (editor content) */
.prose { font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 2em; }
.prose h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-top: 1.7em; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent-ink); }
.prose blockquote { margin-inline: 0; padding: 8px 0 8px 28px; border-left: 3px solid var(--accent); font-family: var(--font-display); font-size: 1.35em; line-height: 1.4; letter-spacing: -.01em; }
.prose img, .prose figure { border-radius: var(--radius); }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
.prose pre { background: var(--ink); color: #e6e3dc; padding: 22px; border-radius: 16px; overflow-x: auto; font-size: 14.5px; }
.prose :not(pre) > code { background: var(--bg-2); padding: 2px 7px; border-radius: 6px; font-size: .88em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2.4em; }
.prose .alignwide { margin-inline: calc(-1 * min(120px, 8vw)); }
.prose .wp-block-button__link { background: var(--ink); color: #fff; border-radius: 999px; padding: 14px 26px; text-decoration: none; }

/* Blog */
.blog-feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; margin-bottom: 40px; }
.blog-feature .media { aspect-ratio: auto; min-height: 420px; }
.blog-feature .post-card__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.blog-feature .post-card__title { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.blog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.blog-toolbar .filters { margin: 0; }
.search-form { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); min-width: min(100%, 320px); }
.search-form input { border: 0; background: none; flex: 1; padding: 8px 0; outline: none; min-width: 0; }
.search-form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; }
.search-form button .icon { width: 18px; height: 18px; }

.article-hero { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)); padding-bottom: 40px; }
.article-hero .page-title { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 15px; }
.article-meta .author { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 600; }
.article-meta .author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .icon { width: 16px; height: 16px; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 8; box-shadow: var(--shadow-lg); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 80px minmax(0, 720px) 1fr; gap: 40px; justify-content: center; }
.share { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 10px; align-content: start; justify-items: center; }
.share small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 8px; }
.share a, .share button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); transition: all .3s; color: var(--text); }
.share a:hover, .share button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.share .icon { width: 17px; height: 17px; }
.share button.is-copied { background: var(--green); color: #fff; border-color: var(--green); }
.post-tags { margin-top: 48px; }
.author-box { display: flex; gap: 24px; align-items: center; padding: 32px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; margin-top: 56px; }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--accent); }
.author-box h3 { font-size: 1.4rem; margin-bottom: 6px; }
.author-box p { color: var(--muted-on-dark); margin: 0 0 14px; font-size: 15.5px; }
.author-box .link-arrow { color: var(--accent); }

/* Comments */
.comments { margin-top: 72px; }
.comments h2 { font-size: 1.8rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.comment-list .children { list-style: none; padding-left: 32px; }
.comment-body { padding: 24px 0; border-bottom: 1px solid var(--line); }
.comment-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.comment-meta img { border-radius: 50%; }
.comment-author .fn { font-weight: 600; color: var(--text); font-style: normal; }
.comment-author .says { display: none; }
.comment-content { margin-top: 12px; }
.reply a { font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.comment-form { display: grid; gap: 16px; }
.comment-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.comment-form .submit { padding: 14px 28px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 600; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }

/* About page */
.about-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-portrait { position: relative; perspective: 1400px; }
.about-portrait__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow-lg); }
.about-portrait__img img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait .float-chip--1 { left: -20px; top: 12%; }
.about-portrait .float-chip--2 { right: -20px; top: auto; bottom: 14%; }
.journey { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.journey__item { display: grid; grid-template-columns: 120px 1fr 1.2fr; gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--line-dark); align-items: start; }
.journey__item span { font-family: var(--font-mono); font-size: 13px; color: var(--accent); padding-top: 6px; }
.journey__item h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0; }
.journey__item p { color: var(--muted-on-dark); margin: 0; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1400px; }
.value { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.value .icon { width: 52px; height: 52px; padding: 13px; border-radius: 16px; background: var(--ink); color: var(--accent); margin-bottom: 40px; }
.value h3 { font-size: 1.4rem; }
.value p { color: var(--muted); margin: 0; font-size: 15.5px; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; perspective: 1600px; }
.photo-pair figure { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.photo-pair figure:nth-child(2) { margin-top: 80px; }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: all .4s var(--ease); }
a.contact-card:hover { border-color: var(--ink); transform: translateX(6px); }
.contact-card__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: var(--accent); display: grid; place-items: center; flex: none; }
.contact-card__icon .icon { width: 22px; height: 22px; }
.contact-card small { display: block; color: var(--muted); font-size: 13.5px; }
.contact-card strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; word-break: break-word; }
.contact-aside { margin-top: 28px; padding: 28px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.contact-aside p { color: var(--muted-on-dark); }

/* FAQ page */
.faq-layout { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-nav { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 6px; }
.faq-nav a { padding: 12px 16px; border-radius: 12px; font-weight: 500; color: var(--muted); transition: all .3s; }
.faq-nav a:hover, .faq-nav a.is-active { background: var(--surface); color: var(--text); }
.faq-group + .faq-group { margin-top: 64px; }
.faq-group h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 8px; }
.faq-search { margin-bottom: 40px; }
.faq-search .search-form { max-width: 520px; }
.faq-empty { display: none; }

/* Reviews page */
.rating-panel { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.rating-panel__score { text-align: center; }
.rating-panel__score strong { display: block; font-family: var(--font-display); font-size: clamp(4rem, 8vw, 6rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.rating-panel__score small { display: block; margin-top: 10px; color: var(--muted-on-dark); }
.rating-panel .star--empty { color: rgba(255, 255, 255, .2); }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 56px 1fr 40px; gap: 14px; align-items: center; font-size: 14px; color: var(--muted-on-dark); transition: color .3s; }
.bar:hover, .bar.is-active { color: #fff; }
.bar__track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar__fill { height: 100%; border-radius: inherit; background: var(--accent); width: var(--w, 0%); transition: width 1.4s var(--ease); }
.js .bar__fill { width: 0; }
.js .is-in .bar__fill, .js .bar__fill.is-in { width: var(--w, 0%); }
.reviews-masonry { columns: 3; column-gap: 20px; }
.reviews-masonry > div { break-inside: avoid; margin-bottom: 20px; }
.reviews-masonry .review-card { width: 100%; }
.reviews-marquee__row > div { flex: none; display: flex; }
.review-form-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }

/* Thank you + 404 */
.state-page { min-height: 100vh; display: grid; place-items: center; padding: calc(var(--header-h) + 40px) 0 80px; position: relative; overflow: hidden; text-align: center; }
.state-page::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(circle at 50% 45%, #000 10%, transparent 60%); -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 10%, transparent 60%); opacity: .7; }
.state-page > .container { position: relative; }
.state-page .page-title { font-size: clamp(2.4rem, 5.4vw, 4.6rem); margin-top: 24px; }
.state-page .page-hero__text { margin-inline: auto; }
.state-page .btn-row { justify-content: center; margin-top: 36px; }
.big-404 { display: flex; justify-content: center; gap: clamp(4px, 1vw, 14px); perspective: 1000px; user-select: none; }
.big-404 span {
	font-family: var(--font-display); font-weight: 700; font-size: clamp(7rem, 24vw, 18rem); line-height: .85; letter-spacing: -.06em;
	color: var(--ink); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transition: transform .3s var(--ease);
	text-shadow: 1px 1px 0 var(--accent), 2px 2px 0 var(--accent), 3px 3px 0 var(--accent), 4px 4px 0 var(--accent), 5px 5px 0 var(--accent), 6px 6px 0 var(--accent), 7px 7px 0 var(--accent), 8px 8px 0 var(--accent), 9px 9px 0 #e8832a, 10px 10px 0 #e8832a, 12px 16px 30px rgba(16, 16, 20, .25);
}
.big-404 span:nth-child(2) { color: var(--accent); text-shadow: 1px 1px 0 var(--ink), 2px 2px 0 var(--ink), 3px 3px 0 var(--ink), 4px 4px 0 var(--ink), 5px 5px 0 var(--ink), 6px 6px 0 var(--ink), 7px 7px 0 var(--ink), 8px 8px 0 var(--ink), 9px 9px 0 #000, 10px 10px 0 #000, 12px 16px 30px rgba(16, 16, 20, .25); animation: wobble 4s ease-in-out infinite; }
@keyframes wobble { 50% { translate: 0 -14px; rotate: -4deg; } }
.state-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 32px; }
.state-search { display: flex; justify-content: center; margin-top: 28px; }
.check-3d { width: 140px; height: 140px; margin: 0 auto; perspective: 800px; }
.check-3d__disc { width: 100%; height: 100%; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 30px 60px -20px rgba(253, 152, 62, .8), inset 0 -10px 0 rgba(16, 16, 20, .12); animation: flip-in 1.2s var(--ease) both; }
.check-3d__disc .icon { width: 64px; height: 64px; stroke-width: 2.5; color: var(--ink); }
.check-3d__disc path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .7s var(--ease) forwards; }
@keyframes flip-in { from { transform: rotateY(-540deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; text-align: left; }
.next-step { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.next-step span { font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); }
.next-step h3 { font-size: 1.2rem; margin: 12px 0 6px; }
.next-step p { margin: 0; color: var(--muted); font-size: 15px; }

/* CTA band */
.cta-band { position: relative; border-radius: var(--radius-lg); background: var(--accent); color: var(--ink); padding: clamp(40px, 6vw, 88px); overflow: hidden; display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.8rem); margin: 0; }
.cta-band p { margin: 16px 0 0; font-size: 1.1rem; max-width: 560px; }
.cta-band::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -280px; border-radius: 50%; border: 70px solid rgba(16, 16, 20, .07); }

/* 7. Motion -------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: perspective(1200px) translate3d(0, 48px, 0) rotateX(-14deg); transform-origin: 50% 100%; transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translate3d(-48px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(.92); }
.js .hero-title .line > span { transform: translateY(105%) rotate(4deg); transition: transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js .is-loaded .hero-title .line > span, .is-loaded.js .hero-title .line > span { transform: none; }
.js .hero-stage { opacity: 0; transform: translateY(40px) scale(.96); transition: opacity 1.2s .3s var(--ease), transform 1.4s .3s var(--ease); }
.is-loaded .hero-stage { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.js [data-reveal], .js .hero-title .line > span, .js .hero-stage { opacity: 1 !important; transform: none !important; }
	.marquee__track, .reviews-marquee__row { animation: none !important; }
}

/* 8. Responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
	.primary-nav { display: none; }
	.menu-toggle { display: grid; }
	.footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.footer-about { grid-column: 1 / -1; }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.tech-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.float-chip--1 { left: -4%; }
	.float-chip--2 { right: -2%; }
}
@media (max-width: 980px) {
	.hero__grid, .about-teaser__grid, .process__grid, .split, .contact-grid, .about-hero__grid, .review-form-wrap, .faq-layout, .footer-cta { grid-template-columns: 1fr; }
	.hero-stage { justify-self: center; max-width: 440px; margin-top: 24px; }
	.services-grid, .grid--3, .reviews-grid, .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.case-card, .blog-feature { grid-template-columns: 1fr; }
	.case-card .media { min-height: 0; }
	.blog-feature .media { min-height: 0; aspect-ratio: 16 / 10; }
	.stats-bar { grid-template-columns: repeat(2, 1fr); }
	.stat:nth-child(3) { padding-left: 0; border-left: 0; }
	.stat { padding-bottom: 20px; }
	.split--sticky > :first-child, .faq-nav, .split__aside { position: static; }
	.faq-nav { display: flex; flex-wrap: wrap; }
	.cube-wrap { display: none; }
	.tech-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.price-groups { grid-template-columns: 1fr; }
	.values--6, .steps--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pricing-grid--3, .pricing-grid--4 { grid-template-columns: minmax(0, 560px); justify-content: center; }
	.pricing-grid--2 { grid-template-columns: minmax(0, 560px); justify-content: center; }
	.experience__grid { grid-template-columns: 1fr; }
	.experience__intro { position: static; }
	.page-hero__grid { grid-template-columns: 1fr; }
	.article-layout { grid-template-columns: minmax(0, 1fr); }
	.share { position: static; display: flex; justify-content: flex-start; order: 2; }
	.share small { writing-mode: horizontal-tb; transform: none; margin: 0 8px 0 0; align-self: center; }
	.reviews-masonry { columns: 2; }
	.journey__item { grid-template-columns: 1fr; gap: 10px; }
	.about-visual { max-width: 520px; }
	.cta-band { grid-template-columns: 1fr; }
	.rating-panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	:root { --header-h: 68px; }
	.brand-logo { width: 140px; }
	.header-actions .btn { display: none; }
	.services-grid, .grid--2, .grid--3, .grid--4, .reviews-grid, .values, .next-steps, .post-nav, .photo-pair { grid-template-columns: 1fr; }
	.services-grid > .is-featured, .services-grid > .services-grid__cta { grid-column: auto !important; }
	.values--6, .steps--3 { grid-template-columns: 1fr; }
	.price-row__main small { display: none; }
	.tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.timeline { padding-left: 26px; }
	.timeline__dot { left: -26px; width: 16px; height: 16px; }
	.timeline::before { left: 7px; }
	.timeline__head { flex-wrap: wrap; }
	.form__row { grid-template-columns: 1fr; }
	.check-list { grid-template-columns: 1fr; }
	.reviews-masonry { columns: 1; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
	.hero-title { font-size: clamp(2.5rem, 11vw, 3.4rem); }
	.float-chip { font-size: 12.5px; padding: 7px 12px 7px 7px; }
	.float-chip__icon { width: 28px; height: 28px; }
	.float-chip--1 { left: -2%; }
	.float-chip--2 { right: -2%; }
	.code-card { display: none; }
	.spin-badge { width: 96px; height: 96px; left: -2%; }
	.accordion__body { padding-right: 0; }
	.photo-pair figure:nth-child(2) { margin-top: 0; }
	.author-box { flex-direction: column; align-items: flex-start; }
	.work-meta > div + div { padding-left: 0; border-left: 0; }
	.work-meta > div { border-bottom: 1px solid var(--line); }
	.post-nav .next { text-align: left; }
	.post-nav .next small { justify-content: flex-start; }
	.btn { min-height: 50px; }
}
