/* Homepage redesign — light editorial layout, serif headings with italic accents */
:root {
	--hm-bg: #f6f6f3;
	--hm-surface: #ffffff;
	--hm-ink: #15131f;
	--hm-muted: #6b6a75;
	--hm-line: #e7e6e1;
	--hm-purple: #393159;
	--hm-orange: #ff6716;
	--hm-radius: 22px;
	--hm-serif: 'Instrument Serif', 'Times New Roman', serif;
	--hm-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.hm {
	margin: 0;
	background: var(--hm-bg);
	color: var(--hm-ink);
	font-family: var(--hm-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.hm a { text-decoration: none; color: inherit; }
.hm img { max-width: 100%; display: block; }
.hm-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Typography */
.hm-h1, .hm-h2, .hm-h3 { font-family: var(--hm-serif); font-weight: 400; letter-spacing: -.01em; margin: 0; color: var(--hm-ink); }
.hm-h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.05; }
.hm-h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.hm-h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; }
.hm em { font-style: italic; }
.hm-lead { color: var(--hm-muted); font-size: 1.05rem; max-width: 560px; margin: 18px auto 0; }
.hm-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--hm-muted); margin-bottom: 14px; }
.hm-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--hm-orange); }

/* Buttons */
.hm-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font-weight: 500; font-size: .92rem; border: 1px solid transparent; transition: transform .2s, background .2s, box-shadow .2s; cursor: pointer; }
.hm-btn:hover { transform: translateY(-1px); }
.hm-btn-dark { background: var(--hm-ink); color: #fff !important; }
.hm-btn-dark:hover { background: var(--hm-purple); box-shadow: 0 8px 24px rgba(57,49,89,.25); }
.hm-btn-light { background: #fff; color: var(--hm-ink) !important; border-color: var(--hm-line); }
.hm-btn-orange { background: var(--hm-orange); color: #fff !important; }
.hm-btn-sm { height: 38px; padding: 0 20px; line-height: 1; justify-content: center; font-size: .85rem; }

/* Header */
.hm-header { position: sticky; top: 0; z-index: 50; background: rgba(246,246,243,.85); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hm-header.is-stuck { border-color: var(--hm-line); }
.hm-header .hm-wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; }
.hm-logo img { height: 44px; width: auto; }
.hm-nav { display: flex; align-items: center; }
.hm-nav ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 4px; }
.hm-nav li { display: flex; align-items: center; margin: 0; padding: 0; }
.hm-nav a { display: flex; align-items: center; height: 38px; padding: 0 16px; line-height: 1; white-space: nowrap; font-size: .88rem; color: var(--hm-muted); border-radius: 999px; transition: color .2s, background .2s; }
.hm-nav a:hover, .hm-nav a.active { color: var(--hm-ink); background: #ecebe6; }
.hm-actions { display: flex; align-items: center; gap: 10px; }
.hm-wa { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hm-line); background: #fff; color: #25d366; font-size: 1.15rem; transition: all .2s; }
.hm-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.hm-burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--hm-line); background: #fff; font-size: 1rem; cursor: pointer; }

/* Hero */
.hm-hero { text-align: center; padding: 64px 0 28px; }
.hm-hero .hm-h1 em { color: var(--hm-purple); }
.hm-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hm-hero-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 20px; margin-top: 56px; text-align: left; }
.hm-hero-panel { position: relative; min-height: 380px; border-radius: var(--hm-radius); overflow: hidden; background: linear-gradient(135deg, #cfd2e6 0%, #e9d9cf 100%); display: flex; align-items: center; justify-content: center; padding: 28px; }
.hm-hero-panel::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(57,49,89,.18) 1px, transparent 1px); background-size: 14px 14px; opacity: .7; }
.hm-jobs-card { position: relative; width: 100%; max-width: 520px; background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 24px 60px rgba(57,49,89,.18); }
.hm-jobs-head { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; margin-bottom: 12px; }
.hm-jobs-head b { font-weight: 600; }
.hm-jobs-head a { color: var(--hm-orange); font-weight: 500; }
.hm-job { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--hm-line); border-radius: 12px; margin-top: 10px; transition: border-color .2s, transform .2s; }
.hm-job:hover { border-color: var(--hm-orange); transform: translateX(3px); }
.hm-job-ic { flex: 0 0 38px; height: 38px; border-radius: 10px; background: #f1eefa; color: var(--hm-purple); display: grid; place-items: center; font-size: .9rem; }
.hm-job:nth-child(3n+2) .hm-job-ic { background: #fff1e8; color: var(--hm-orange); }
.hm-job:nth-child(3n) .hm-job-ic { background: #e8f6ee; color: #1f9d5b; }
.hm-job h4 { margin: 0; font-size: .9rem; font-weight: 600; line-height: 1.3; }
.hm-job p { margin: 2px 0 0; font-size: .75rem; color: var(--hm-muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hm-hero-photo { position: relative; border-radius: var(--hm-radius); overflow: hidden; min-height: 380px; }
.hm-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,8,20,.65), transparent 45%); }
.hm-hero-photo span { position: absolute; left: 20px; bottom: 18px; z-index: 2; color: #fff; font-size: .9rem; }

/* Clients */
.hm-clients { padding: 40px 0 72px; }
.hm-clients-row { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; opacity: .85; }
.hm-clients-row img { height: 44px; width: auto; filter: grayscale(1); transition: filter .2s; }
.hm-clients-row img:hover { filter: none; }
.hm-clients-label { text-align: center; font-size: .78rem; color: var(--hm-muted); margin-bottom: 22px; }

/* Section head */
.hm-section { padding: 88px 0; }
.hm-center { text-align: center; }
.hm-top-line { border-top: 1px solid var(--hm-line); }

/* Services tabs */
.hm-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 36px 0 24px; }
.hm-tab { border: 1px solid var(--hm-line); background: #fff; color: var(--hm-muted); font: inherit; font-size: .85rem; padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.hm-tab:hover { color: var(--hm-ink); }
.hm-tab.is-active { background: var(--hm-ink); color: #fff; border-color: var(--hm-ink); }
.hm-panel { display: none; grid-template-columns: 1fr 1fr; gap: 20px; }
.hm-panel.is-active { display: grid; animation: hmFade .35s ease; }
@keyframes hmFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hm-panel-text { background: #fff; border-radius: var(--hm-radius); padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; border: 1px solid var(--hm-line); }
.hm-panel-text p { color: var(--hm-muted); margin: 0 0 14px; }
.hm-panel-text .hm-btn { margin-top: 10px; }
.hm-panel-visual { border-radius: var(--hm-radius); min-height: 300px; display: grid; place-items: center; background: linear-gradient(135deg, #ece9f7, #fbe9dd); position: relative; overflow: hidden; }
.hm-panel-visual::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(57,49,89,.16) 1px, transparent 1px); background-size: 14px 14px; }
.hm-panel-visual i { position: relative; font-size: 4.2rem; color: var(--hm-purple); }
.hm-panel-visual.has-img { background: #fff; border: 1px solid #eee; }
.hm-panel-visual.has-img::before { display: none; }
.hm-panel-visual.has-img img { position: relative; width: 100%; max-width: 360px; height: auto; object-fit: contain; }

/* Alternating features */
.hm-feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding: 36px 0; }
.hm-feature.is-reverse .hm-feature-text { order: 2; }
.hm-feature-text p { color: var(--hm-muted); margin: 16px 0 24px; max-width: 420px; }
.hm-feature-img { border-radius: var(--hm-radius); overflow: hidden; aspect-ratio: 4 / 3; background: #ddd; }
.hm-feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hm-feature-img:hover img { transform: scale(1.04); }

/* Dark section */
.hm-dark { background: #14121c; color: #fff; padding: 96px 0; }
.hm-dark .hm-h2 { color: #fff; }
.hm-dark .hm-lead { color: rgba(255,255,255,.6); }
.hm-bento { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; margin-top: 56px; }
.hm-bento-col { display: grid; gap: 20px; }
.hm-card-dark { background: #1d1a2a; border: 1px solid rgba(255,255,255,.08); border-radius: var(--hm-radius); padding: 32px; }
.hm-card-dark .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,103,22,.15); color: var(--hm-orange); margin-bottom: 18px; font-size: 1.1rem; }
.hm-card-dark h4 { font-family: var(--hm-serif); font-weight: 400; font-size: 1.6rem; margin: 0 0 8px; }
.hm-card-dark p { color: rgba(255,255,255,.6); margin: 0; font-size: .95rem; }
.hm-form-card { background: #fff; color: var(--hm-ink); border-radius: var(--hm-radius); padding: 36px; }
.hm-form-card h4 { font-family: var(--hm-serif); font-weight: 400; font-size: 1.9rem; margin: 0 0 6px; }
.hm-form-card > p { color: var(--hm-muted); font-size: .92rem; margin: 0 0 20px; }
.hm-form-card .form-control { border-radius: 12px; border: 1px solid var(--hm-line); padding: 13px 16px; font-size: .92rem; background: #faf9f6; box-shadow: none; }
.hm-form-card .form-control:focus { border-color: var(--hm-purple); background: #fff; }
.hm-form-card .form-group { margin-bottom: 12px; }
.hm-form-card label.error { color: #c0392b; font-size: .78rem; margin-top: 4px; }
.hm-form-card input[type=submit] { width: 100%; border: 0; border-radius: 999px; background: var(--hm-ink); color: #fff; padding: 13px; font-weight: 500; cursor: pointer; transition: background .2s; }
.hm-form-card input[type=submit]:hover { background: var(--hm-purple); }
.hm-contact-lines { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-top: 18px; font-size: .82rem; }
.hm-contact-lines a { color: var(--hm-muted); }
.hm-contact-lines a:hover { color: var(--hm-orange); }

/* Final CTA */
.hm-final { text-align: center; padding: 104px 0 0; overflow: hidden; }
.hm-final .hm-lead { margin-bottom: 28px; }
.hm-wordmark { font-family: var(--hm-serif); font-size: clamp(6rem, 24vw, 19rem); line-height: .85; letter-spacing: -.03em; margin-top: 40px; color: transparent; -webkit-text-stroke: 1.5px #cfcdd6; user-select: none; -webkit-mask-image: linear-gradient(#000 40%, transparent 95%); mask-image: linear-gradient(#000 40%, transparent 95%); }

/* Footer */
.hm-footer { background: var(--hm-bg); border-top: 1px solid var(--hm-line); padding: 56px 0 28px; }
.hm-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.hm-footer p.brand { color: var(--hm-muted); font-size: .88rem; max-width: 360px; margin: 14px 0 18px; }
.hm-footer h5 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--hm-muted); font-weight: 500; margin: 0 0 14px; }
.hm-footer ul { list-style: none; padding: 0; margin: 0; }
.hm-footer li { margin-bottom: 9px; }
.hm-footer li a { color: var(--hm-ink); font-size: .9rem; }
.hm-footer li a:hover { color: var(--hm-orange); }
.hm-social { display: flex; gap: 10px; }
.hm-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hm-line); display: grid; place-items: center; font-size: .9rem; background: #fff; transition: all .2s; }
.hm-social a:hover { background: var(--hm-ink); color: #fff; }
.hm-copy { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--hm-line); font-size: .8rem; color: var(--hm-muted); }

/* Scroll reveal */
.hm-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.hm-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hm-reveal { opacity: 1; transform: none; transition: none; } .hm-panel.is-active { animation: none; } }

/* Responsive */
@media (max-width: 991px) {
	.hm-burger { display: block; }
	.hm-nav { position: absolute; top: 88px; left: 0; right: 0; background: var(--hm-bg); border-bottom: 1px solid var(--hm-line); padding: 12px 24px 20px; display: none; }
	.hm-nav.is-open { display: block; }
	.hm-nav ul { flex-direction: column; }
	.hm-actions .hm-btn { display: none; }
	.hm-hero-grid, .hm-panel, .hm-bento, .hm-feature, .hm-footer-grid { grid-template-columns: 1fr; }
	.hm-feature { gap: 28px; }
	.hm-feature.is-reverse .hm-feature-text { order: 0; }
	.hm-hero-panel, .hm-hero-photo { min-height: 300px; }
	.hm-section, .hm-dark { padding: 64px 0; }
	.hm-panel-text { padding: 28px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
	.hm-nav a { padding: 0 10px; font-size: .84rem; }
	.hm-header .hm-wrap { gap: 12px; }
}
