/*----------------------------------------------
*
* [Main Stylesheet]
*
* Theme    : Foliora
* Version  : 2.0
* Author   : Markanda Themes
*
----------------------------------------------*/
/*----------------------------------------------
[ALL CONTENTS]

 1. Imports
 2. Design tokens (light / dark)
 3. Reset & base
 4. Typography & helpers
 5. Buttons, tags, labels
 6. Preloader, page transition, cursor
 7. Header & menu overlay
 8. Home hero
 9. Marquee
10. Works (cards, grid, filter)
11. Services
12. Awards
13. Testimonials
14. Blog cards & pagination
15. Inner page hero
16. Project single
17. About page
18. Article (blog single)
19. Contact & forms
20. Footer
21. Animation states
22. Responsive
----------------------------------------------*/

/*----------------------------------------------
1. Imports  (Google Fonts are linked in each page <head>)
----------------------------------------------*/
@import url(vendor/bootstrap-icons.min.css);

/*----------------------------------------------
2. Design tokens
----------------------------------------------*/
:root {
  --font-display: "Syne", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --accent: #e8114d;
  --accent-ink: #ffffff;
  --accent-soft: rgba(232, 17, 77, 0.1);

  --bg: #f5f4f0;
  --bg-2: #ecebe6;
  --surface: #ffffff;
  --ink: #0e0e10;
  --ink-2: #3b3b42;
  --muted: #74747c;
  --line: rgba(14, 14, 16, 0.12);
  --line-strong: rgba(14, 14, 16, 0.24);
  --inverse-bg: #0e0e10;
  --inverse-ink: #f5f4f0;
  --inverse-muted: #9a9aa2;
  --inverse-line: rgba(245, 244, 240, 0.14);
  --header-glass: rgba(245, 244, 240, 0.72);
  --shadow: 0 30px 60px -30px rgba(14, 14, 16, 0.25);

  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 36px;
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 11vw, 160px);
  --header-h: 84px;

  --fs-display: clamp(2.5rem, 10.5vw, 8.5rem);
  --fs-h1: clamp(2.6rem, 6.4vw, 6rem);
  --fs-h2: clamp(2.1rem, 4.6vw, 4.2rem);
  --fs-h3: clamp(1.6rem, 3vw, 2.6rem);
  --fs-h4: clamp(1.25rem, 1.8vw, 1.6rem);
  --fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  --fs-lead: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
  --fs-small: 0.875rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.5s;

  color-scheme: light;
}

html[data-bs-theme="dark"] {
  --accent-soft: rgba(232, 17, 77, 0.16);
  --bg: #0c0c0e;
  --bg-2: #151518;
  --surface: #17171b;
  --ink: #f2f1ec;
  --ink-2: #c9c8c3;
  --muted: #8d8d95;
  --line: rgba(242, 241, 236, 0.12);
  --line-strong: rgba(242, 241, 236, 0.26);
  --inverse-bg: #18181c;
  --inverse-ink: #f2f1ec;
  --inverse-muted: #8d8d95;
  --inverse-line: rgba(242, 241, 236, 0.12);
  --header-glass: rgba(12, 12, 14, 0.7);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/*----------------------------------------------
3. Reset & base
----------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}
body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  overflow-wrap: break-word;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); letter-spacing: -0.01em; line-height: 1.2; }
h5 { font-size: 1.15rem; line-height: 1.3; }
h6 { font-size: 1rem; line-height: 1.3; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; transition: color 0.3s ease, opacity 0.3s ease; }
a:hover { color: var(--accent); }

ul, ol { margin: 0; padding: 0; }
ul[role="list"], .list-reset { list-style: none; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

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

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}
.skip-link:focus { top: 16px; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/*----------------------------------------------
4. Typography & layout helpers
----------------------------------------------*/
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--flush-top { padding-top: 0; }
.section--alt { background: var(--bg-2); }
.section--dark {
  background: var(--inverse-bg);
  color: var(--inverse-muted);
  --ink: var(--inverse-ink);
  --ink-2: var(--inverse-muted);
  --muted: var(--inverse-muted);
  --line: var(--inverse-line);
  --line-strong: var(--inverse-line);
}
.rounded-top { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 { margin: 0; }
.section-head .lead { max-width: 460px; margin: 0; }

/* Reveal mask: extra padding so tall accents and descenders (g, j, p, y) are never clipped */
.line-mask { display: block; overflow: hidden; padding: 0.12em 0 0.16em; margin: -0.12em 0 -0.16em; }
.line-mask > span { display: inline-block; max-width: 100%; }
.line-mask:last-child { margin-bottom: 0; }

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/*----------------------------------------------
5. Buttons, tags, labels
----------------------------------------------*/
.btn {
  --btn-bg: var(--ink);
  --btn-ink: var(--bg);
  --btn-fill: var(--accent);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.3s ease;
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--btn-fill);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn:hover { color: #fff; border-color: var(--btn-fill); }
.btn:hover::before { transform: translateY(0); }
.btn .bi { font-size: 1.1em; transition: transform 0.45s var(--ease); }
.btn:hover .bi-arrow-right, .btn:hover .bi-arrow-up-right { transform: translateX(3px); }

.btn--accent { --btn-bg: var(--accent); --btn-ink: #fff; --btn-fill: var(--ink); }
.btn--accent:hover { color: var(--bg); border-color: var(--ink); }
.btn--ghost { --btn-bg: transparent; --btn-ink: var(--ink); border-color: var(--line-strong); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn--lg { min-height: 64px; padding: 0 36px; font-size: 1.05rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
}
.link-arrow .bi { transition: transform 0.4s var(--ease); }
.link-arrow:hover .bi { transform: rotate(45deg); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-2);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
a.tag:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.status-dot {
  position: relative;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22c55e;
  flex: none;
}
.status-dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3); opacity: 0; } }

/*----------------------------------------------
6. Preloader, page transition, cursor
----------------------------------------------*/
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--gutter);
  background: var(--inverse-bg);
  color: var(--inverse-ink);
}
.preloader__brand {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
}
.preloader__count {
  font-family: var(--font-display);
  font-size: clamp(4rem, 16vw, 13rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.preloader__bar {
  position: absolute;
  left: 0; top: 0;
  height: 3px; width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}
html:not(.js) .preloader, .preloader.is-done, html.is-transitioning .preloader, html.skip-loader .preloader { display: none; }
html.is-transitioning .page-transition { transform: none; visibility: visible; }

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  visibility: hidden;
  pointer-events: none;
  background: var(--accent);
  transform: translateY(100%);
}

.cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 9997;
  pointer-events: none;
  display: none;
}
.cursor__dot {
  position: absolute;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--accent);
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background 0.3s ease;
}
.cursor__label {
  position: absolute;
  transform: translate(-50%, -50%) scale(0);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  transition: transform 0.4s var(--ease);
}
.cursor.is-hover .cursor__dot { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: var(--accent-soft); }
.cursor.has-label .cursor__dot { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); }
.cursor.has-label .cursor__label { transform: translate(-50%, -50%) scale(1); }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor .cursor { display: block; }
}

/*----------------------------------------------
7. Header & menu overlay
----------------------------------------------*/
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: transform 0.6s var(--ease), background-color 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-scrolled {
  background: var(--header-glass);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
body.menu-open .site-header { transform: none; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); justify-self: start; }
.brand img { height: 40px; width: auto; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
html[data-bs-theme="dark"] .brand img.invert-dark { filter: invert(1); }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--header-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  list-style: none;
}
.nav-pill a {
  position: relative;
  display: block;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.3s ease, background-color 0.3s ease;
}
.nav-pill a:hover { color: var(--ink); background: var(--line); }
.nav-pill a.is-active { color: var(--bg); background: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.icon-btn:hover { background: var(--ink); color: var(--bg); }

.theme-toggle .bi-sun { display: none; }
html[data-bs-theme="dark"] .theme-toggle .bi-sun { display: inline-block; }
html[data-bs-theme="dark"] .theme-toggle .bi-moon-stars { display: none; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
}
.menu-toggle__icon { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 9px; width: 12px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}
.menu-toggle__icon::before { top: 12px; }
.menu-toggle__icon::after { top: 17px; }
body.menu-open .menu-toggle__icon::before { top: 14.5px; transform: rotate(45deg); }
body.menu-open .menu-toggle__icon::after { top: 14.5px; transform: rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) var(--gutter);
  overflow-y: auto;
  background: var(--inverse-bg);
  color: var(--inverse-ink);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s linear 0.8s;
}
body.menu-open .menu-overlay { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.8s var(--ease-in-out), visibility 0s; }
body.menu-open .site-header .brand,
body.menu-open .site-header .icon-btn { color: var(--inverse-ink); border-color: var(--inverse-line); }
body.menu-open .site-header .brand img.invert-dark { filter: invert(1); }
html[data-bs-theme="dark"] body.menu-open .site-header .brand img.invert-dark { filter: none; }
body.menu-open .menu-toggle { background: var(--inverse-ink); color: var(--inverse-bg); }
body.menu-open .menu-toggle__icon { background: var(--inverse-bg); }
body.menu-open .menu-toggle__icon::before, body.menu-open .menu-toggle__icon::after { background: var(--inverse-ink); }

.menu-overlay__links { list-style: none; }
.menu-overlay__links li { overflow: hidden; border-bottom: 1px solid var(--inverse-line); }
.menu-overlay__links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 11vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--inverse-ink);
  transform: translateY(105%);
  transition: transform 0.8s var(--ease), color 0.3s ease;
}
.menu-overlay__links a small { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; letter-spacing: 0; color: var(--inverse-muted); }
.menu-overlay__links a:hover, .menu-overlay__links a.is-active { color: var(--accent); }
body.menu-open .menu-overlay__links a { transform: translateY(0); }
body.menu-open .menu-overlay__links li:nth-child(1) a { transition-delay: 0.25s; }
body.menu-open .menu-overlay__links li:nth-child(2) a { transition-delay: 0.31s; }
body.menu-open .menu-overlay__links li:nth-child(3) a { transition-delay: 0.37s; }
body.menu-open .menu-overlay__links li:nth-child(4) a { transition-delay: 0.43s; }
body.menu-open .menu-overlay__links li:nth-child(5) a { transition-delay: 0.49s; }
body.menu-open .menu-overlay__links li:nth-child(6) a { transition-delay: 0.55s; }

.menu-overlay__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  color: var(--inverse-muted);
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.6s ease 0.1s;
}
body.menu-open .menu-overlay__meta { opacity: 1; transition-delay: 0.5s; }
.menu-overlay__meta a { color: var(--inverse-ink); }
.menu-overlay__meta .socials { display: flex; gap: 18px; }

/*----------------------------------------------
8. Home hero
----------------------------------------------*/
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 100px));
  padding-bottom: clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  z-index: -1;
  width: 60vw; height: 60vw;
  max-width: 820px; max-height: 820px;
  right: -18vw; top: -22vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 17, 77, 0.18), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.hero__location { font-size: 0.9rem; color: var(--muted); }
.hero__title { margin: 0; }
.hero__title .line-mask:nth-child(2) { padding-left: clamp(0px, 12vw, 220px); }
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__title .hero__avatar {
  display: inline-block;
  width: 0.78em; height: 0.78em;
  margin: 0 0.12em;
  vertical-align: -0.04em;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}
.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(40px, 6vw, 80px);
}
.hero__intro { max-width: 460px; margin: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__badge {
  position: relative;
  width: 132px; height: 132px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.hero__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.hero__badge text { font-size: 10.5px; font-weight: 600; letter-spacing: 3.2px; text-transform: uppercase; fill: currentColor; font-family: var(--font-body); }
.hero__badge .bi { font-size: 1.6rem; color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-showcase {
  position: relative;
  margin-top: clamp(50px, 7vw, 90px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--bg-2);
}
.hero-showcase img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-showcase__caption {
  position: absolute;
  left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 600;
  color: #0e0e10;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: clamp(24px, 3vw, 40px) clamp(12px, 2vw, 28px) 0 0; }
.stat + .stat { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.stat__num sup { font-size: 0.45em; color: var(--accent); top: -0.9em; margin-left: 2px; }
.stat__label { display: block; margin-top: 10px; font-size: 0.92rem; color: var(--muted); }

/*----------------------------------------------
9. Marquee
----------------------------------------------*/
.marquee {
  --gap: clamp(40px, 6vw, 90px);
  --speed: 38s;
  display: flex;
  overflow: hidden;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--gap);
  min-width: 100%;
  padding-right: var(--gap);
  list-style: none;
  animation: marquee var(--speed) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-100%); } }

.brands { padding-block: clamp(28px, 4vw, 48px); border-block: 1px solid var(--line); }
.brands__label { margin-bottom: 28px; text-align: center; font-size: 0.9rem; color: var(--muted); }
.brands img {
  height: clamp(30px, 3.2vw, 42px);
  width: auto;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}
.brands img:hover { opacity: 1; transform: scale(1.05); }
html[data-bs-theme="dark"] .brands img { filter: invert(1); opacity: 0.6; }
html[data-bs-theme="dark"] .brands img:hover { opacity: 1; }

.text-marquee { padding-block: clamp(30px, 4vw, 50px); }
.text-marquee .marquee__track { --gap: clamp(28px, 4vw, 56px); }
.text-marquee span {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ink);
  white-space: nowrap;
}
.text-marquee span:nth-child(4n+3) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.text-marquee .bi { font-size: clamp(1.6rem, 3.4vw, 3rem); color: var(--accent); }

/*----------------------------------------------
10. Works
----------------------------------------------*/
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 40px);
  row-gap: clamp(48px, 6vw, 90px);
}
.works-grid--staggered > :nth-child(even) { margin-top: clamp(0px, 10vw, 160px); }
.works-grid--staggered > :nth-child(even):nth-last-child(1) { margin-bottom: 0; }

.work-card { display: block; color: inherit; }
.work-card:hover { color: inherit; }
.work-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3.4;
  background: var(--bg-2);
  transform: translateZ(0);
}
.work-card--tall .work-card__media { aspect-ratio: 1 / 1; }
.work-card--wide .work-card__media { aspect-ratio: 16 / 10; }
.work-card__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s ease;
}
.work-card:hover .work-card__media img { transform: scale(1.06); }
.work-card__year {
  position: absolute;
  top: 18px; right: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
  color: #0e0e10;
}
.work-card__view {
  position: absolute;
  left: 50%; top: 50%;
  width: 96px; height: 96px;
  margin: -48px 0 0 -48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  transform: scale(0);
  transition: transform 0.55s var(--ease);
}
.work-card:hover .work-card__view { transform: scale(1); }
html.has-cursor .work-card__view { display: none; }

.work-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
}
.work-card__index { font-size: 0.85rem; font-weight: 600; color: var(--muted); padding-top: 6px; }
.work-card__title {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.3vw, 2.1rem);
  transition: color 0.3s ease;
}
.work-card:hover .work-card__title { color: var(--accent); }
.work-card__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: transform 0.5s var(--ease), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.work-card:hover .work-card__arrow { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 64px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.filter-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.filter-btn sup { font-size: 0.7rem; color: var(--muted); top: -0.5em; transition: color 0.3s ease; }
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter-btn.is-active sup { color: var(--accent); }
.filter-count { font-size: 0.95rem; color: var(--muted); }

.portfolio-grid { position: relative; margin-inline: calc(clamp(10px, 1.5vw, 20px) * -1); }
.portfolio-grid__item { width: 50%; padding: 0 clamp(10px, 1.5vw, 20px) clamp(40px, 5vw, 70px); }
.portfolio-grid__sizer { width: 50%; }

/*----------------------------------------------
11. Services
----------------------------------------------*/
.services__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(50px, 7vw, 100px);
}
.reveal-text { margin: 0; font-size: clamp(1.9rem, 3.8vw, 3.5rem); line-height: 1.12; }
.reveal-text .char { transition: none; }
.services__aside p { margin-bottom: 28px; }

.service-list { list-style: none; border-top: 1px solid var(--line); }
.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.1fr) 56px;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(26px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  isolation: isolate;
}
.service-row::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  z-index: -1;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}
.service-row:hover::before { transform: scaleY(1); transform-origin: top; }
.service-row__num { font-size: 0.9rem; font-weight: 600; color: var(--muted); transition: color 0.4s ease; }
.service-row__title { margin: 0; font-size: clamp(1.6rem, 3.4vw, 3rem); transition: color 0.4s ease, transform 0.6s var(--ease); }
.service-row__text { margin: 0; color: var(--muted); transition: color 0.4s ease; }
.service-row__icon {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1.15rem;
  transition: transform 0.6s var(--ease), color 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
}
.service-row:hover { color: #fff; }
.service-row:hover .service-row__num,
.service-row:hover .service-row__title,
.service-row:hover .service-row__text { color: #fff; }
.service-row:hover .service-row__title { transform: translateX(10px); }
.service-row:hover .service-row__icon { transform: rotate(45deg); color: var(--accent); background: #fff; border-color: #fff; }

/*----------------------------------------------
12. Awards
----------------------------------------------*/
.awards__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(30px, 5vw, 90px);
}
.awards__sticky { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; }
.award-list { list-style: none; border-top: 1px solid var(--line); }
.award {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease);
}
.award:hover { padding-left: 14px; }
.award__title { margin: 0 0 4px; font-size: clamp(1.25rem, 2vw, 1.75rem); }
.award__org { font-size: 0.95rem; color: var(--muted); }
.award__year { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.award__icon { color: var(--accent); font-size: 1.4rem; }

/*----------------------------------------------
13. Testimonials
----------------------------------------------*/
.testimonials__wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(30px, 5vw, 90px);
}
.t-slider { position: relative; }
.t-slides { position: relative; display: grid; }
.t-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), visibility 0s linear 0.7s;
}
.t-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.7s var(--ease) 0.15s, transform 0.9s var(--ease) 0.15s, visibility 0s; }
.t-slide__quote {
  margin: 0 0 36px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.7vw, 2.4rem);
  font-weight: 600;
  font-style: normal;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.t-slide__quote::before { content: "\201C"; display: block; height: 0.6em; font-size: 2.6em; line-height: 1; color: var(--accent); }
.t-person { display: flex; align-items: center; gap: 16px; }
.t-person img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.t-person strong { display: block; color: var(--ink); font-size: 1.05rem; }
.t-person span { font-size: 0.92rem; color: var(--muted); }
.t-controls { display: flex; align-items: center; gap: 12px; margin-top: 44px; }
.t-progress { flex: 1; height: 2px; margin-left: 12px; background: var(--line); overflow: hidden; }
.t-progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.t-counter { font-variant-numeric: tabular-nums; font-size: 0.95rem; font-weight: 600; color: var(--ink); min-width: 52px; }

/*----------------------------------------------
14. Blog cards & pagination
----------------------------------------------*/
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(20px, 2.5vw, 32px);
}
.post-card { display: flex; flex-direction: column; }
.post-card__media {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__cat {
  position: absolute;
  left: 16px; top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0e0e10;
  font-size: 0.78rem;
  font-weight: 600;
}
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--muted);
}
.post-card__meta .bi { margin-right: 6px; }
.post-card__title { margin: 10px 0 0; font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.3; }
.post-card__title a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0 1px;
  background-position: 0 100%;
  transition: background-size 0.6s var(--ease), color 0.3s ease;
}
.post-card:hover .post-card__title a { background-size: 100% 1px; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(50px, 6vw, 80px);
  list-style: none;
}
.pagination a, .pagination span {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-weight: 600;
  color: var(--ink);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.pagination a:hover { background: var(--ink); color: var(--bg); }
.pagination .is-current { background: var(--accent); border-color: var(--accent); color: #fff; }

/*----------------------------------------------
15. Inner page hero
----------------------------------------------*/
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(50px, 8vw, 120px));
  padding-bottom: clamp(50px, 7vw, 100px);
  overflow: hidden;
}
.page-hero__title { margin: 0; font-size: var(--fs-display); font-weight: 700; line-height: 0.95; letter-spacing: -0.04em; }
.page-hero__title .indent { padding-left: clamp(0px, 14vw, 260px); }
.page-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(30px, 4vw, 56px);
}
.page-hero__row .lead { max-width: 520px; margin: 0; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  font-size: 0.92rem;
  color: var(--muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--line-strong); }
.breadcrumb a { color: var(--ink); }

/*----------------------------------------------
16. Project single
----------------------------------------------*/
.project-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-block: 32px;
  border-block: 1px solid var(--line);
}
.project-meta h6 { margin: 0 0 8px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.project-meta p { margin: 0; color: var(--ink); font-weight: 500; }

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--wide { aspect-ratio: 16 / 8; }
[data-parallax] { position: absolute; left: 0; top: -10%; width: 100%; height: 120% !important; object-fit: cover; will-change: transform; }
.media-frame--square { aspect-ratio: 1 / 1.05; }

.project-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(30px, 5vw, 90px);
}
.project-overview h3 { margin: 0; }
.project-overview strong { color: var(--ink); font-weight: 600; }
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
}

.next-project {
  display: block;
  padding-block: clamp(70px, 10vw, 140px);
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink);
}
.next-project span { display: block; margin-bottom: 16px; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.next-project strong {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  transition: color 0.4s ease, transform 0.6s var(--ease);
}
.next-project:hover strong { color: var(--accent); transform: translateX(12px); }

/*----------------------------------------------
17. About page
----------------------------------------------*/
.about-story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(30px, 6vw, 110px);
  align-items: center;
}
.about-story__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--bg-2); }
.about-story__img img { width: 100%; height: 100%; object-fit: cover; }

.stats--2 { grid-template-columns: repeat(2, 1fr); }
.about-story .stats { margin-top: 40px; }
.stats--2 .stat:nth-child(3) { border-left: 0; padding-left: 0; }
.stats--2 .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }

.timeline { list-style: none; border-top: 1px solid var(--line); }
.timeline__item {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(26px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}
.timeline__date { font-size: 0.95rem; font-weight: 600; color: var(--accent); }
.timeline__item h4 { margin: 0 0 6px; }
.timeline__role { font-size: 0.95rem; color: var(--muted); }
.timeline__item p { margin: 0; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.skill {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s ease;
}
.skill:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.skill__head { display: flex; align-items: center; justify-content: space-between; }
.skill__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--bg-2); }
.skill__icon .bi { font-size: 1.5rem; line-height: 1; color: var(--accent); }
.skill__pct { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.skill__name { margin: 0; font-weight: 600; color: var(--ink); }
.skill__bar { height: 4px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.skill__bar span { display: block; height: 100%; width: var(--value, 0%); border-radius: inherit; background: var(--accent); transform-origin: left; }

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(30px, 5vw, 90px); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "\F64D";
  font-family: bootstrap-icons;
  flex: none;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 1rem;
  transition: transform 0.5s var(--ease), background-color 0.3s ease, color 0.3s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq__body { overflow: hidden; }
.faq__body p { margin: 0; padding: 0 60px 28px 0; }
.faq__body a { color: var(--accent); font-weight: 600; }

/*----------------------------------------------
17b. Services page, process, pricing, 404
----------------------------------------------*/
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.3s ease;
}
.service-card::after {
  content: "";
  position: absolute;
  right: -40%; top: -40%;
  z-index: -1;
  width: 80%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::after { opacity: 1; }
.service-card__top { display: flex; align-items: center; justify-content: space-between; }
.service-card__icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.5rem;
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.6s var(--ease);
}
.service-card:hover .service-card__icon { background: var(--accent); color: #fff; transform: rotate(-8deg); }
.service-card__num { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.service-card h2, .service-card h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.service-card p { margin: 0; }
.check-list { display: grid; gap: 10px; list-style: none; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--ink-2); }
.check-list li::before { content: "\F272"; font-family: bootstrap-icons; color: var(--accent); line-height: 1.6; }

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  counter-reset: step;
  list-style: none;
}
.process__step { position: relative; padding-top: 34px; border-top: 1px solid var(--line-strong); }
.process__step::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 1s var(--ease);
}
.process__step:hover::before, .process__step.is-in::before { width: 100%; }
.process__num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--ink);
}
.process__step h4 { margin-bottom: 10px; }
.process__step p { margin: 0; font-size: 0.98rem; }

.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card--featured {
  background: var(--inverse-bg);
  border-color: var(--inverse-bg);
  color: var(--inverse-muted);
  --ink: var(--inverse-ink);
  --ink-2: var(--inverse-muted);
  --line: var(--inverse-line);
  --line-strong: var(--inverse-line);
  --bg: var(--inverse-bg);
}
.price-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-card__head h3 { margin: 0; font-size: 1.4rem; }
.price-card__badge { padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; }
.price-card__price { display: flex; align-items: baseline; gap: 8px; }
.price-card__price strong { font-family: var(--font-display); font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.price-card__price span { color: var(--muted); }
.price-card--featured .price-card__price span { color: var(--inverse-muted); }
.price-card p { margin: 0; }
.price-card .check-list { margin-top: 0; }
.price-card .btn { margin-top: auto; width: 100%; }
.price-card--featured .btn--ghost { --btn-ink: var(--inverse-ink); border-color: var(--inverse-line); }

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
  text-align: center;
}
.error-page__code {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(7rem, 30vw, 22rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}
.error-page__code em { font-style: normal; color: var(--accent); -webkit-text-stroke: 0; }
.error-page h1 { margin: 20px 0 14px; font-size: var(--fs-h2); }
.error-page .lead { max-width: 520px; margin: 0 auto 34px; }
.error-page .hero__cta { justify-content: center; }

/*----------------------------------------------
18. Article (blog single)
----------------------------------------------*/
.article-head { max-width: 980px; }
.article-head h1 { font-size: clamp(2.3rem, 5.4vw, 5rem); line-height: 1.02; letter-spacing: -0.035em; margin: 22px 0 0; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 44px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.article-meta h6 { margin: 0 0 4px; font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.article-meta p { margin: 0; font-weight: 500; color: var(--ink); }
.article-meta .author { display: flex; align-items: center; gap: 12px; }
.article-meta .author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(40px, 6vw, 100px); }
.article-aside { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; }
.article-aside h6 { margin-bottom: 14px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.toc { list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 0.95rem; color: var(--muted); }
.toc a:hover, .toc a.is-active { color: var(--ink); border-color: var(--accent); }
.share { display: flex; gap: 8px; margin-top: 30px; }
.share .icon-btn { width: 42px; height: 42px; font-size: 1rem; }

.prose { font-size: 1.1rem; line-height: 1.8; }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.3em; }
.prose h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); scroll-margin-top: calc(var(--header-h) + 20px); }
.prose > * + h3 { margin-top: 2.2em; }
.prose > h3 + * { margin-top: 0.7em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--accent); }
.prose > figure { margin-block: 2.4em; }
.prose figure img { width: 100%; border-radius: var(--radius); }
.prose figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--muted); text-align: center; }
.prose > blockquote {
  margin-block: 2.2em;
  margin-inline: 0;
  padding: 30px 34px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-2);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.prose pre {
  padding: 24px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  background: #121216;
  color: #e9e8e4;
  font-size: 0.92rem;
  line-height: 1.6;
}
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
.prose :not(pre) > code { padding: 2px 7px; border-radius: 6px; background: var(--bg-2); color: var(--accent); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-2); color: var(--ink); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

.article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.article-footer > span { font-weight: 600; color: var(--ink); margin-right: 12px; }

/*----------------------------------------------
19. Contact & forms
----------------------------------------------*/
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  transition: border-color 0.3s ease, transform 0.5s var(--ease);
}
a.contact-card:hover { border-color: var(--accent); transform: translateX(6px); color: inherit; }
.contact-card__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.3rem;
}
.contact-card small { display: block; font-size: 0.82rem; color: var(--muted); }
.contact-card strong { display: block; font-weight: 600; color: var(--ink); line-height: 1.4; overflow-wrap: anywhere; }
.contact-socials { display: flex; gap: 10px; margin-top: 28px; }

.form-card {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.form-card h3 { margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.form-grid .full { grid-column: 1 / -1; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 26px 18px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field label {
  position: absolute;
  left: 19px; top: 18px;
  font-size: 1rem;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.3s var(--ease), color 0.3s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-10px) scale(0.78);
  color: var(--accent);
}
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e34f4f; }
.field__error { display: none; margin-top: 6px; font-size: 0.82rem; color: #e34f4f; }
.field.is-invalid .field__error { display: block; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
.form-message { font-size: 0.95rem; font-weight: 500; }
.form-message.is-success { color: #16a34a; }
.form-message.is-error { color: #e34f4f; }
.btn.is-loading { pointer-events: none; opacity: 0.7; }

.map-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 6;
  background: var(--bg-2);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
html[data-bs-theme="dark"] .map-frame iframe { filter: grayscale(1) invert(0.92) contrast(0.9); }

/*----------------------------------------------
20. Footer
----------------------------------------------*/
.site-footer {
  position: relative;
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: clamp(80px, 11vw, 150px);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--inverse-bg);
  color: var(--inverse-muted);
  overflow: hidden;
  --ink: var(--inverse-ink);
  --line: var(--inverse-line);
  --line-strong: var(--inverse-line);
  --muted: var(--inverse-muted);
  --bg: var(--inverse-bg);
}
.site-footer a { color: var(--inverse-ink); }
.site-footer a:hover { color: var(--accent); }
.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  padding-bottom: clamp(56px, 7vw, 100px);
  border-bottom: 1px solid var(--inverse-line);
}
.footer-cta__title { margin: 0; font-size: clamp(2.4rem, 8vw, 7.5rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.04em; color: var(--inverse-ink); }
.footer-cta__title em { font-style: normal; color: var(--accent); }
.footer-cta__btn {
  display: grid;
  place-items: center;
  width: clamp(140px, 15vw, 190px);
  height: clamp(140px, 15vw, 190px);
  border-radius: 50%;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  transition: transform 0.5s var(--ease), background-color 0.3s ease;
}
.footer-cta__btn .bi { display: block; font-size: 1.6rem; margin: 0 auto 4px; transition: transform 0.5s var(--ease); }
.footer-cta__btn:hover { background: #fff; color: #0e0e10 !important; }
.footer-cta__btn:hover .bi { transform: rotate(45deg); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-block: clamp(50px, 6vw, 80px);
}
.footer-grid h6 { margin-bottom: 18px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--inverse-muted); }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid ul a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.footer-grid ul a .bi { font-size: 0.8em; opacity: 0; transform: translate(-6px, 6px); transition: opacity 0.3s ease, transform 0.4s var(--ease); }
.footer-grid ul a:hover .bi { opacity: 1; transform: none; }
.footer-mail {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--accent);
  overflow-wrap: anywhere;
}
.newsletter { display: flex; max-width: 420px; margin-top: 22px; padding: 6px; border: 1px solid var(--inverse-line); border-radius: 999px; }
.newsletter input { flex: 1; min-width: 0; padding: 0 16px; border: 0; background: transparent; color: var(--inverse-ink); outline: none; }
.newsletter input::placeholder { color: var(--inverse-muted); }
.newsletter button { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; flex: none; transition: transform 0.4s var(--ease); }
.newsletter button:hover { transform: rotate(-45deg); }
.newsletter-msg { margin-top: 10px; font-size: 0.88rem; min-height: 1.2em; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 26px;
  border-top: 1px solid var(--inverse-line);
  font-size: 0.92rem;
}
.footer-bottom p { margin: 0; }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--inverse-ink);
}
.to-top .bi { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--inverse-line); border-radius: 50%; transition: transform 0.4s var(--ease), background-color 0.3s ease; }
.to-top:hover .bi { transform: translateY(-4px); background: var(--accent); border-color: var(--accent); color: #fff; }

.footer-word {
  display: block;
  margin-bottom: -0.1em;
  font-family: var(--font-display);
  font-size: clamp(5rem, 24vw, 22rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.06em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--inverse-line);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/*----------------------------------------------
21. Animation states
   Elements are only hidden when JS + GSAP are available
   (html.js-anim), so content never disappears if a script fails.
----------------------------------------------*/
html.js-anim [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(40px); }
html.js-anim [data-reveal="fade"]:not(.is-in) { transform: none; }
html.js-anim [data-reveal="scale"]:not(.is-in) { transform: scale(0.94); }
html.js-anim [data-split] .line-mask > span { transform: translateY(150%); }
html.js-anim [data-clip] { clip-path: inset(100% 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  html.js-anim [data-reveal], html.js-anim [data-split] .line-mask > span, html.js-anim [data-clip] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .marquee__track { animation: none; }
}

/*----------------------------------------------
22. Responsive
----------------------------------------------*/
@media (max-width: 1199px) {
  .header-actions .btn { display: none; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid__about { grid-column: 1 / -1; }
  .service-row { grid-template-columns: 60px minmax(0, 1fr) 52px; }
  .service-row__text { grid-column: 2 / 3; grid-row: 2; }
  .service-row__icon { grid-row: 1 / span 2; }
}

@media (max-width: 991px) {
  :root { --header-h: 74px; }
  .site-header__inner > nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header__inner { grid-template-columns: 1fr auto; }

  .hero__bottom { grid-template-columns: 1fr; align-items: start; }
  .hero__badge { display: none; }
  .hero-showcase { aspect-ratio: 16 / 11; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { margin-top: 24px; border-top: 1px solid var(--line); }

  .services__intro, .awards__grid, .testimonials__wrap, .faq-grid, .project-overview,
  .about-story, .contact-grid, .article-layout { grid-template-columns: 1fr; }
  .awards__sticky { position: static; }
  .article-aside { position: static; order: -1; display: none; }

  .timeline__item { grid-template-columns: 1fr; gap: 8px; }
  .pricing { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .project-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cta { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
  .article-head h1 { font-size: clamp(2rem, 8.5vw, 3rem); }
  .works-grid { grid-template-columns: 1fr; }
  .works-grid--staggered > :nth-child(even) { margin-top: 0; }
  .portfolio-grid__item, .portfolio-grid__sizer { width: 100%; }
  .post-grid { grid-template-columns: 1fr; }
  .service-cards, .process { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .media-frame--wide { aspect-ratio: 4 / 3; }
  .map-frame { aspect-ratio: 4 / 3; }
  .hero__top { flex-direction: column; align-items: flex-start; }
  .hero__title .line-mask:nth-child(2), .page-hero__title .indent { padding-left: 0; }
  .award { grid-template-columns: minmax(0, 1fr) auto; }
  .award__icon { display: none; }
  .faq__body p { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 575px) {
  .header-actions .theme-toggle { width: 42px; height: 42px; }
  .menu-toggle__label { display: none; }
  .menu-toggle { padding: 0 8px; }
  .service-row { grid-template-columns: 1fr 48px; gap: 10px 16px; }
  .service-row__num { grid-column: 1; }
  .service-row__title { grid-column: 1; grid-row: 2; }
  .service-row__text { grid-column: 1 / -1; grid-row: 3; }
  .service-row__icon { grid-column: 2; grid-row: 1 / span 2; width: 46px; height: 46px; }
  .project-meta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { min-height: 50px; padding: 0 22px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .t-slide__quote::before { font-size: 2em; }
}
