/* ==========================================================================
   Nadzor — one-page theme
   ========================================================================== */

:root {
	--ink: #0d0e10;
	--ink-2: #141518;
	--ink-3: #1c1e22;
	--bone: #ece8e1;
	--bone-2: #e2ddd4;
	--text: #ece8e1;
	--muted: #b3afa6;
	--muted-dark: #4a4843;
	--line: rgba(236, 232, 225, .12);
	--line-dark: rgba(13, 14, 16, .14);
	--accent: #d4a15a;
	--accent-2: #e8bc7c;

	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: "Cormorant Garamond", Georgia, serif;

	--gutter: clamp(16px, 4vw, 56px);
	--max: 1360px;
	--header-h: 84px;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }


body {
	margin: 0;
	background: var(--ink);
	color: var(--text);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-feature-settings: "locl" 0;
	overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent); letter-spacing: 0; }
/* Branded, clearly visible page scrollbar */
html { scrollbar-color: var(--accent) var(--ink-2); scrollbar-width: auto; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--ink-2); }
::-webkit-scrollbar-thumb { background: var(--accent); border: 3px solid var(--ink-2); border-radius: 12px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.screen-reader-text, .form__hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 200; padding: 10px 16px; background: var(--accent); color: var(--ink); }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.section { position: relative; padding: clamp(80px, 10vw, 130px) 0; }

/* ---------- Section colour schemes (scoped variables) ---------- */
.theme-light, .theme-white {
	--text: var(--ink); --muted: #4a4843; --line: rgba(13, 14, 16, .14);
	--ink-3: #ffffff; --accent-on: #a8742f;
	color: var(--text);
}
.theme-light { background: var(--bone); }
.theme-white { background: #f9f7f3; }
.theme-light em, .theme-white em, .theme-light .eyebrow, .theme-white .eyebrow { color: var(--accent-on); }
.theme-dark { background: var(--ink-2); color: var(--text); }
.theme-dark .lead { color: var(--muted); }

/* ---------- Type ---------- */
.eyebrow {
	display: flex; align-items: center; gap: 14px;
	margin-bottom: 28px;
	font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	color: var(--accent);
}
.eyebrow__line { width: 40px; height: 1px; background: currentColor; }

.h2 {
	font-size: clamp(36px, 5.4vw, 76px);
	font-weight: 500;
	line-height: 1.04;
	letter-spacing: -.035em;
	max-width: 14ch;
}
.h2 em { font-size: 1.08em; }
.lead { max-width: 54ch; margin-top: 28px; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); line-height: 1.7; }
.lead + .lead { margin-top: 16px; }

.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .eyebrow { margin-bottom: 24px; }
.section-head .h2 + .section-head__text { margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	padding: 18px 30px;
	border: 1px solid var(--accent); border-radius: 100px;
	background: var(--accent); color: var(--ink);
	font: 600 14px/1 var(--sans); letter-spacing: .02em;
	cursor: pointer; overflow: hidden; isolation: isolate;
	transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--bone);
	transform: translateY(101%); border-radius: inherit;
	transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { border-color: var(--bone); }
.btn__arrow { transition: transform .5s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--text); border-color: rgba(236, 232, 225, .35); }
.btn--ghost:hover { color: var(--ink); }
.btn--small { padding: 14px 22px; font-size: 15px; }
.header-phone { display: none; }
.btn--full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 100;
	height: var(--header-h);
	transition: background .5s var(--ease), transform .6s var(--ease), height .5s var(--ease);
}
.site-header__inner {
	display: flex; align-items: center; gap: 32px;
	height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled {
	--header-h: 70px;
	background: rgba(13, 14, 16, .72);
	backdrop-filter: blur(16px) saturate(140%);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__logo { max-height: 44px; width: auto; }
.brand__mark {
	width: 34px; height: 34px; flex: none;
	border: 1.5px solid var(--accent);
	position: relative;
}
.brand__mark::before, .brand__mark::after { content: ""; position: absolute; background: var(--accent); }
.brand__mark::before { left: 6px; right: 6px; bottom: 6px; height: 1.5px; }
.brand__mark::after { left: 50%; top: 6px; bottom: 6px; width: 1.5px; transform: translateX(-50%); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.brand__tag { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.nav__list { display: flex; gap: 10px; }
.nav__link {
	position: relative; display: flex; align-items: center; gap: 6px; padding: 10px 16px;
	font-size: 18px; font-weight: 500; letter-spacing: .01em; color: rgba(236, 232, 225, .85);
	transition: color .3s;
}
.nav__link::after {
	content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
	background: var(--accent); transform: scaleX(0); transform-origin: right;
	transition: transform .5s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__item { position: relative; }
.nav__caret { margin-left: 2px; transition: transform .3s; }
.nav__item--sub:hover .nav__caret, .nav__item--sub:focus-within .nav__caret { transform: rotate(180deg); }
.nav__sub {
	position: absolute; left: 0; top: 100%; z-index: 5;
	min-width: 360px; padding: 10px 0; margin-top: 6px;
	background: rgba(20, 21, 24, .96); border: 1px solid var(--line); border-radius: 8px;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .3s;
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav__item--sub:hover .nav__sub, .nav__item--sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__sub a { display: block; padding: 12px 22px; font-size: 16px; font-weight: 500; line-height: 1.35; color: rgba(236, 232, 225, .85); }
.nav__sub a:hover { color: var(--accent); background: rgba(255, 255, 255, .04); }
.menu-toggle { display: none; }
.site-footer { font-size: 15px; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
	position: fixed; inset: 0; z-index: 90;
	display: flex; flex-direction: column; justify-content: center;
	padding: var(--header-h) var(--gutter) 40px;
	background: var(--ink);
	clip-path: inset(0 0 100% 0);
	transition: clip-path .8s var(--ease);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mobile-menu li a { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; font-size: 34px; font-weight: 500; letter-spacing: -.02em; }
.mobile-menu li a span { font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.mobile-menu__sub { padding: 0 0 14px 30px; }
.mobile-menu__sub li { border: 0; }
.mobile-menu__sub a { display: block; padding: 9px 0; font-size: 17px; font-weight: 500; color: var(--muted); }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; color: var(--muted); }

/* ---------- Progress ---------- */
.progress { position: fixed; inset: 0 0 auto; z-index: 101; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ---------- Hero ---------- */
.hero {
	position: relative; min-height: 100vh; min-height: 100svh;
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: calc(var(--header-h) + 40px) 0 0;
	overflow: hidden;
}
.hero__media { position: absolute; inset: 0; transform: scale(1.12); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video.is-off { display: none; }
.hero__media img, .hero__video { filter: grayscale(.3) contrast(1.05) brightness(.6); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.hero__shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(13, 14, 16, .7) 0%, rgba(13, 14, 16, .35) 35%, rgba(13, 14, 16, .85) 75%, var(--ink) 100%),
		linear-gradient(90deg, rgba(13, 14, 16, .75) 0%, rgba(13, 14, 16, .2) 65%);
}
.hero__content { position: relative; padding-bottom: clamp(40px, 7vh, 80px); }
.hero__title {
	text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
	font-size: clamp(44px, 8.4vw, 132px);
	font-weight: 500; line-height: .98; letter-spacing: -.045em;
	max-width: 13ch;
}
.hero__title em { font-size: 1.06em; }
.hero__bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; margin-top: clamp(32px, 5vh, 56px); }
.hero__text { max-width: 50ch; font-size: clamp(16px, 1.3vw, 19px); color: var(--bone); line-height: 1.7; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts {
	position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px;
	padding-top: 22px; padding-bottom: 22px;
	font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--bone);
}
.hero__facts::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.hero__facts li { display: flex; align-items: center; gap: 10px; }
.hero__facts-dot { width: 7px; height: 7px; border-radius: 50%; background: #6fcf8e; box-shadow: 0 0 0 4px rgba(111, 207, 142, .18); }
.hero__facts-cue { margin-left: auto; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.scroll-cue { display: flex; align-items: center; gap: 14px; }
.scroll-cue__line { position: relative; width: 56px; height: 1px; background: var(--line); overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- За нас: екип ---------- */
.team { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.team__title { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-on, var(--accent)); margin-bottom: 28px; }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.team__item { padding: 4px 28px 4px 0; }
.team__item + .team__item { padding-left: 28px; border-left: 1px solid var(--line); }
.team__role { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.team__text { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ---------- За нас: за кого работим ---------- */
.clients { margin-top: clamp(72px, 9vw, 120px); }
.clients__title { font-size: clamp(32px, 4vw, 54px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.clients__lead { margin-top: 16px; font-size: 17px; color: var(--muted); max-width: 52ch; }
.clients__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: clamp(28px, 3vw, 40px); }
.client { position: relative; display: flex; flex-direction: column; padding: 32px 32px 30px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 30px -22px rgba(13, 14, 16, .3); transition: transform .5s var(--ease), border-color .5s var(--ease); }
.client:hover { transform: translateY(-4px); border-color: rgba(212, 161, 90, .55); }
.client__num { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--accent-on, var(--accent)); }
.client__title { margin-top: 14px; font-size: clamp(22px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.client__text { margin-top: 10px; font-size: 16px; color: var(--muted); line-height: 1.6; }
.client .card__link { margin-top: auto; padding-top: 18px; }

/* ---------- Gold CTA band ---------- */
.cta-band { background: var(--accent); color: var(--ink); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-top: clamp(36px, 4vw, 52px); padding-bottom: clamp(36px, 4vw, 52px); }
.cta-band__title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.cta-band__text { margin-top: 8px; font-size: 17px; max-width: 52ch; color: rgba(13, 14, 16, .78); }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cta-band__link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(13, 14, 16, .4); }
.cta-band__link:hover { text-decoration-color: currentColor; }
.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--bone); font-size: 16px; padding: 20px 32px; }
.btn--dark::before { background: var(--bone); }
.btn--dark:hover { color: var(--ink); border-color: var(--bone); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__copy .lead { max-width: 48ch; font-size: clamp(17px, 1.3vw, 19px); }
.about__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(13, 14, 16, .4); }
.about__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }

/* ---------- Services (one readable row per service) ---------- */
.svc-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(36px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 8px); }
.svc__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; box-shadow: 0 20px 50px -30px rgba(13, 14, 16, .45); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.08); }
.svc__num { display: block; font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--accent-on, var(--accent)); }
.svc__title { margin-top: 12px; font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.svc__text { margin-top: 14px; font-size: 17px; color: var(--muted); line-height: 1.65; max-width: 60ch; }
.svc__points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.svc__points li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.45; }
.svc__points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 1px; background: var(--accent); }
.card__link { display: inline-flex; gap: 8px; margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--accent-on, var(--accent)); }
.card__link span { transition: transform .4s var(--ease); }
.card__link:hover span { transform: translateX(4px); }

/* ---------- Projects ---------- */
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--bone-2); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project:hover .project__media img { transform: scale(1.06); }
.project__title { margin-top: 16px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.project__meta { margin-top: 4px; font-size: 15px; color: var(--muted); }

/* ---------- Gold CTA band ---------- */
.cta-band { background: var(--accent); color: var(--ink); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-top: clamp(36px, 4vw, 52px); padding-bottom: clamp(36px, 4vw, 52px); }
.cta-band__title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.cta-band__text { margin-top: 8px; font-size: 17px; max-width: 52ch; color: rgba(13, 14, 16, .78); }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cta-band__link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(13, 14, 16, .4); }
.cta-band__link:hover { text-decoration-color: currentColor; }
.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--bone); font-size: 16px; padding: 20px 32px; }
.btn--dark::before { background: var(--bone); }
.btn--dark:hover { color: var(--ink); border-color: var(--bone); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__copy .lead { max-width: 48ch; font-size: clamp(17px, 1.3vw, 19px); }
.about__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(13, 14, 16, .4); }
.about__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }

/* ---------- Services ---------- */
.services { }
.section-head__text { max-width: 60ch; margin-top: 24px; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
	position: relative; display: flex; flex-direction: column;
	background: var(--ink-3); border: 1px solid var(--line); border-radius: 6px;
	overflow: hidden;
	transition: border-color .5s var(--ease), transform .6s var(--ease);
}
.card:hover { border-color: rgba(212, 161, 90, .5); transform: translateY(-6px); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) brightness(.85); transform: scale(1.04); transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.1); filter: grayscale(0) brightness(.95); }
.card__num {
	position: absolute; left: 18px; top: 14px;
	font-family: var(--serif); font-style: italic; font-size: 32px; line-height: 1; color: var(--bone);
	text-shadow: 0 2px 20px rgba(0, 0, 0, .6);
}
.card__body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 24px 24px 28px; }
.card__title { font-size: 21px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.card__text { font-size: 16px; color: var(--muted); line-height: 1.6; }
.card__points { display: grid; gap: 8px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.card__points li { position: relative; padding-left: 18px; font-size: 15px; color: rgba(236, 232, 225, .85); line-height: 1.45; }
.card__points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 1px; background: var(--accent); }
.card__link { display: inline-flex; gap: 8px; margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--accent); }
.card__link span { transition: transform .4s var(--ease); }
.card__link:hover span { transform: translateX(4px); }
.services__more { margin-top: clamp(56px, 7vw, 96px); }
.services__more-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.services__more-title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.services__more-text { font-size: 17px; color: var(--muted); }
.services__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mini {
	position: relative; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
	padding: 30px 24px 26px;
	background: var(--ink-3); border: 1px solid var(--line); border-radius: 6px;
	transition: border-color .5s var(--ease);
}
.mini::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); }
.mini:hover { border-color: rgba(212, 161, 90, .5); }
.mini__num { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1; color: var(--accent); }
.mini__title { margin-top: 6px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.mini__text { font-size: 16px; color: var(--muted); line-height: 1.6; }
.mini .card__link { margin-top: auto; padding-top: 8px; }

/* ---------- Process (light) ---------- */
.process { background: var(--bone); color: var(--ink); border-top: 1px solid var(--line-dark); }
.process .eyebrow, .process em { color: #a8742f; }
.process .section-head__text { color: var(--muted-dark); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--line-dark); }
.step { position: relative; padding: 32px 32px 40px 0; border-bottom: 1px solid var(--line-dark); }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.step:hover::before { transform: scaleX(1); }
.step__num { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: #a8742f; }
.step__title { margin: 28px 0 10px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.step__text { font-size: 16px; color: var(--muted-dark); line-height: 1.6; }
.process__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 16px 32px; margin-top: 40px; padding: 28px 32px; border: 1px solid var(--line-dark); border-radius: 6px; background: rgba(13, 14, 16, .03); }
.process__cta p { font-size: 18px; font-weight: 500; }
.process .btn--ghost { color: var(--ink); border-color: rgba(13, 14, 16, .3); }
.process .btn--ghost::before { background: var(--ink); }
.process .btn--ghost:hover { color: var(--bone); }

/* ---------- License (light) ---------- */
.license { border-top: 1px solid var(--line); }
.license__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
.cert { perspective: 1200px; }
.cert--paper { --line: rgba(13, 14, 16, .14); --muted: #5d5a54; }
.cert__inner {
	position: relative; padding: clamp(32px, 4vw, 56px);
	background: linear-gradient(145deg, #f7f4ee, #e6e1d8); color: var(--ink);
	border-radius: 6px;
	box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(212, 161, 90, .45);
	transform-style: preserve-3d;
	overflow: hidden;
}
.cert__inner::before {
	content: ""; position: absolute; inset: 12px; border: 1px solid rgba(212, 161, 90, .18); border-radius: 3px; pointer-events: none;
}
.cert__inner::after {
	content: ""; position: absolute; inset: -50%;
	background: linear-gradient(115deg, transparent 40%, rgba(232, 188, 124, .12) 50%, transparent 60%);
	transform: translateX(var(--shine, -30%)); pointer-events: none;
}
.cert__top { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(40px, 6vw, 72px); }
.cert__seal { width: 48px; height: 48px; color: #a8742f; }
.cert__issuer { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.cert__label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #a8742f; }
.cert__number { margin: 8px 0 clamp(32px, 5vw, 56px); font-size: clamp(44px, 6vw, 84px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.cert__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); }
.cert__meta dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cert__meta dd { margin-top: 4px; font-size: 16px; font-weight: 500; }
.cert__wide { grid-column: 1 / -1; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact__bg { position: absolute; inset: 0; opacity: .12; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 30%, rgba(13, 14, 16, .6)); }
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.contact__list { margin-top: 48px; border-top: 1px solid var(--line); }
.contact__list li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact__list span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact__list a, .contact__list p { font-size: 20px; font-weight: 500; }
.contact__list a { background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat; transition: background-size .5s var(--ease); justify-self: start; }
.contact__list a:hover { background-size: 100% 1px; }

.form {
	display: grid; gap: 18px;
	padding: clamp(28px, 4vw, 48px);
	background: rgba(28, 30, 34, .7); backdrop-filter: blur(10px);
	border: 1px solid var(--line); border-radius: 6px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
	font-feature-settings: "locl" 0;
	width: 100%; padding: 14px 0;
	background: transparent; color: var(--text);
	border: 0; border-bottom: 1px solid rgba(236, 232, 225, .22); border-radius: 0;
	font: 16px/1.4 var(--sans);
	transition: border-color .3s;
	-webkit-appearance: none; appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239c988f' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right center no-repeat; }
.field select option { background: var(--ink-3); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field ::placeholder { color: rgba(236, 232, 225, .3); }
.check { display: flex; gap: 12px; font-size: 14px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.form__notice { padding: 14px 16px; border-radius: var(--radius); font-size: 14px; }
.form__notice--ok { background: rgba(111, 207, 142, .12); color: #9ee0b1; }
.form__notice--err { background: rgba(232, 110, 90, .12); color: #f0a898; }

/* ---------- Floating call button ---------- */
.call-fab {
	position: fixed; right: 20px; bottom: 20px; z-index: 95;
	display: flex; align-items: center;
	border-radius: 100px;
	background: var(--accent); color: var(--ink);
	box-shadow: 0 16px 40px -10px rgba(212, 161, 90, .6);
	opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
	transition: opacity .5s var(--ease), transform .6s var(--ease), background .3s;
}
.call-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.call-fab:hover { background: var(--accent-2); }
.call-fab__icon { display: grid; place-items: center; width: 60px; height: 60px; }
.call-fab__icon svg { animation: ring 3s ease-in-out infinite; }
.call-fab__label {
	max-width: 0; overflow: hidden; white-space: nowrap;
	padding-left: 0; font-size: 15px; font-weight: 600;
	transition: max-width .5s var(--ease), padding .5s var(--ease);
}
.call-fab:hover .call-fab__label, .call-fab:focus-visible .call-fab__label { max-width: 220px; padding-left: 22px; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-12deg); } 80% { transform: rotate(12deg); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(8deg); } }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0; border-top: 1px solid var(--line); font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.site-footer__logo { max-height: 40px; width: auto; margin-bottom: 12px; }
.site-footer__name { font-weight: 700; letter-spacing: .02em; }
.site-footer__muted { color: var(--muted); font-size: 13px; }
.site-footer__links { display: flex; flex-direction: column; gap: 4px; }
.site-footer__links a:hover, .site-footer__legal a:hover { color: var(--accent); }
.site-footer__legal { text-align: right; }
.site-footer__legal ul { display: flex; justify-content: flex-end; gap: 16px; }

/* ---------- Plain pages ---------- */
.plain-page { padding: calc(var(--header-h) + 80px) 0 120px; }
.plain-page__title { font-size: clamp(36px, 5vw, 64px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 40px; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.2em; color: rgba(236, 232, 225, .8); }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose h2 { margin: 1.8em 0 .6em; font-size: 26px; font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; }

/* ---------- Animation helpers ---------- */
.js [data-reveal], .js [data-hero-fade] { opacity: 0; }
.js [data-clip] { clip-path: inset(100% 0 0 0); }
.split-line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.nav, .header-cta { display: none; }
	.header-phone { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border-radius: 50%; background: var(--accent); color: var(--ink); }
	.brand { margin-right: 0; }
	.menu-toggle {
		display: flex; flex-direction: column; justify-content: center; gap: 7px;
		width: 44px; height: 44px; padding: 0 10px;
		background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
		position: relative; z-index: 110;
	}
	.menu-toggle__bar { display: block; height: 1.5px; background: var(--text); transition: transform .5s var(--ease); }
	.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child { transform: translateY(4.25px) rotate(45deg); }
	.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child { transform: translateY(-4.25px) rotate(-45deg); }
}

@media (max-width: 900px) {
	:root { --header-h: 72px; }
	.about__grid, .process__grid, .license__grid, .contact__grid { grid-template-columns: 1fr; }
	.about__media { aspect-ratio: 16 / 10; }
	.team__grid { grid-template-columns: 1fr 1fr; gap: 24px 0; }
	.team__item:nth-child(3) { padding-left: 0; border-left: 0; }
	.steps { grid-template-columns: 1fr 1fr; }
	.step:nth-child(3) { padding-left: 0; border-left: 0; }

	.svc { grid-template-columns: 1fr; gap: 20px; }
	.svc__media { aspect-ratio: 16 / 10; }
	.projects__grid { grid-template-columns: 1fr 1fr; }

	.site-footer__grid { grid-template-columns: 1fr; }
	.site-footer__legal { text-align: left; }
	.site-footer__legal ul { justify-content: flex-start; }
}

@media (max-width: 600px) {
	.hero__actions { width: 100%; }
	.hero__actions .btn { flex: 1 1 100%; padding: 18px 20px; font-size: 15px; }
	.hero__facts { gap: 10px 24px; font-size: 12px; }
	.hero__facts-cue { display: none; }
	.steps { grid-template-columns: 1fr; }
	.step, .step + .step { padding: 24px 0 28px; border-left: 0; }
	.step__title { margin-top: 16px; }
	.svc__points { grid-template-columns: 1fr; }
	.projects__grid { grid-template-columns: 1fr; }
	.form__row { grid-template-columns: 1fr; }
	.team__grid { grid-template-columns: 1fr; gap: 20px; }
	.team__item, .team__item + .team__item { padding: 0; border-left: 0; }
	.clients__grid { grid-template-columns: 1fr; }
	.cta-band__actions, .btn--dark { width: 100%; }
	.btn--dark { justify-content: center; }
	.section { padding: 80px 0; }
	.h2 { max-width: none; }
	.call-fab { right: 14px; bottom: 14px; }
	.call-fab__icon { width: 56px; height: 56px; }
	.mobile-menu li > a { font-size: 26px; }

	.contact__list li { grid-template-columns: 1fr; gap: 4px; }
	.contact__list a, .contact__list p { font-size: 17px; overflow-wrap: anywhere; }
	.cert__meta { grid-template-columns: 1fr; }
	.brand__tag { display: none; }
}

@media (max-width: 900px) {
	.js [data-clip] { clip-path: none; }
	.hero__media { transform: none; }
	.site-header { transition: background .5s var(--ease); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js [data-reveal], .js [data-hero-fade] { opacity: 1; }
	.js [data-clip] { clip-path: none; }
}
