/* ==========================================================================
   ForX — Modern theme stylesheet (Bootstrap 5.3 + custom design system)

   1.  Design tokens
   2.  Bootstrap variable bridge
   3.  Base & typography
   4.  Utilities (legacy spacing helpers kept for the existing markup)
   5.  Buttons, badges, forms, alerts
   6.  Loader, skip link, back-to-top
   7.  Top bar, header & navigation (incl. mega menu)
   8.  Hero sliders (home pages)
   9.  Page header & breadcrumb (inner pages)
   10. Section shells (home sections, CTA bands, parallax, testimonials)
   11. Headings (heading-title, section-center-heading, col-title)
   12. Media: image overlay, carousels, gallery viewer
   13. Blog: post cards, meta, single post, comments, quotes
   14. Portfolio: filters, grid, cards, single project
   15. Sidebar & widgets
   16. Services, features, counters, progress
   17. Team, pricing, FAQ/accordion, tabs
   18. Contact, map, 404
   19. Typography & element demos (features pages)
   20. Footer
   21. Animations & motion preferences
   ========================================================================== */

/* 1. Design tokens
   ------------------------------------------------------------------------ */
:root {
  /* Brand — ForX orange. Use --brand for fills/icons/large text,
     --brand-600 for button fills with white text, --brand-700 for small text. */
  --brand: #fb5011;
  --brand-600: #d43e0a;
  --brand-700: #b8360a;
  --brand-soft: #fff1ea;
  --brand-ring: rgba(251, 80, 17, 0.28);
  --brand-gradient: linear-gradient(135deg, #ff7a45 0%, #fb5011 45%, #e0306a 100%);

  /* Neutrals (zinc) */
  --bg: #fafafa;
  --bg-alt: #f4f4f5;
  --surface: #ffffff;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #18181b;
  --text-muted: #52525b;
  --text-soft: #71717a;

  /* Ink (dark sections) */
  --ink: #0c0c10;
  --ink-2: #16161d;
  --ink-3: #1f1f28;
  --ink-border: rgba(255, 255, 255, 0.09);
  --ink-text: #e4e4e7;
  --ink-muted: #a1a1aa;

  /* Type */
  --font-heading: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.6rem, 1.6rem + 4.4vw, 5rem);
  --fs-h1: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --fs-h2: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --fs-h3: clamp(1.2rem, 1.1rem + .5vw, 1.5rem);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(24, 24, 27, .05);
  --shadow-sm: 0 1px 3px rgba(24, 24, 27, .06), 0 1px 2px rgba(24, 24, 27, .04);
  --shadow-md: 0 10px 28px -8px rgba(24, 24, 27, .14), 0 2px 6px rgba(24, 24, 27, .04);
  --shadow-lg: 0 28px 60px -18px rgba(24, 24, 27, .26);
  --shadow-brand: 0 12px 28px -10px rgba(251, 80, 17, .6);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 200ms var(--ease);
  --t-med: 300ms var(--ease);
  --t-slow: 600ms var(--ease);

  /* Layout */
  --header-h: 76px;
  --section-y: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
}

/* 2. Bootstrap variable bridge
   ------------------------------------------------------------------------ */
:root {
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--bg);
  --bs-border-color: var(--border);
  --bs-primary: var(--brand-600);
  --bs-primary-rgb: 212, 62, 10;
  --bs-link-color: var(--brand-700);
  --bs-link-color-rgb: 184, 54, 10;
  --bs-link-hover-color: var(--brand);
  --bs-link-hover-color-rgb: 251, 80, 17;
  --bs-border-radius: var(--radius-sm);
  --bs-border-radius-lg: var(--radius-md);
  --bs-emphasis-color: var(--text);
  --bs-secondary-color: var(--text-muted);
  --bs-gutter-x: 1.5rem;
}

/* 3. Base & typography
   ------------------------------------------------------------------------ */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: .95rem; }

p { color: var(--text-muted); }
.lead { font-size: 1.15rem; font-weight: 400; color: var(--text-muted); }

a { color: var(--brand-700); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand); }

img { max-width: 100%; height: auto; }

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

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

hr { border-color: var(--border); opacity: 1; margin-block: 2.5rem; }

blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.5rem 1.75rem 1.5rem 3.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}
blockquote::before {
  content: "\f10d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute; left: 1.25rem; top: 1.45rem;
  color: var(--brand);
  font-size: 1.2rem;
}
blockquote p { margin: 0; font-size: 1.05rem; color: var(--text); font-style: italic; }
blockquote cite, blockquote small { display: block; margin-top: .75rem; color: var(--text-soft); font-style: normal; font-size: .875rem; }

mark, .mark { background: var(--brand-soft); color: var(--brand-700); padding: .1em .35em; border-radius: 4px; }

.text-color { color: var(--brand) !important; }
/* Readable status text colours (Bootstrap's yellow/cyan fail contrast on white) */
.text-warning { color: #b45309 !important; }
.text-info { color: #0e7490 !important; }
.text-success { color: #15803d !important; }
.text-danger { color: #b91c1c !important; }
.text-primary { color: var(--brand-700) !important; }
.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.content-area { padding-block: var(--section-y); }
.page-header + .content-area:not(.no-top-padding) { padding-top: clamp(2.75rem, 2rem + 2.5vw, 4.5rem); }

/* Trim the bottom margin of whatever ends a section, so it doesn't stack on the section padding */
:is(.content-area, .home-section, .gray-section) > .container:last-child > .row:last-child,
:is(.content-area, .home-section, .gray-section) > .container:last-child > .row:last-child > [class*="col-"]:last-child,
:is(.content-area, .home-section, .gray-section) > .container:last-child > .row:last-child > [class*="col-"]:last-child > :last-child { margin-bottom: 0; }
/* Column grids: space rows with row-gap instead of per-column bottom margins,
   so the last row never adds extra space above the section's bottom padding */
.row:not(.js-masonry):has(> [class*="col-"].marginbtm20) { row-gap: 1.25rem; }
.row:not(.js-masonry):has(> [class*="col-"].marginbtm30) { row-gap: 1.875rem; }
.row:not(.js-masonry):has(> [class*="col-"].marginbtm40) { row-gap: 2.5rem; }
.row:not(.js-masonry):has(> [class*="col-"].marginbtm50) { row-gap: 3.125rem; }
.row:not(.js-masonry) > [class*="col-"]:not(:only-child):is(.marginbtm20, .marginbtm30, .marginbtm40, .marginbtm50) { margin-bottom: 0; }
/* ...and when the grid is split over several .row blocks, keep that same gap between them */
.row:not(.js-masonry):has(> [class*="col-"]:not(:only-child).marginbtm20) + .row { margin-top: 1.25rem; }
.row:not(.js-masonry):has(> [class*="col-"]:not(:only-child).marginbtm30) + .row { margin-top: 1.875rem; }
.row:not(.js-masonry):has(> [class*="col-"]:not(:only-child).marginbtm40) + .row { margin-top: 2.5rem; }
.row:not(.js-masonry):has(> [class*="col-"]:not(:only-child).marginbtm50) + .row { margin-top: 3.125rem; }
.row:not(.js-masonry):has(> .work-item) { row-gap: 1.5rem; }
body[class*="nospace"] .row:has(> .work-item), .portfolio-nospace .row:has(> .work-item), .row.portfolio-nospace:has(> .work-item) { row-gap: 0; }
/* Last element inside a block shouldn't push extra space onto the section padding */
:is(.content-area, .home-section) :is(p, .tabs, .accordion, .progress-wrap, blockquote, .lead):last-child { margin-bottom: 0; }
:is(.content-area, .home-section) .padding30:last-child { padding-bottom: 0; }
/* Spacer divs at the very end of a section add nothing but extra space */
:is(section, .content-area, .home-section) > :is(.divide20, .divide30):last-child { display: none; }

.content-area.no-top-padding { padding-top: 0; }

main > .content-area > .container > .row + .row { margin-top: .5rem; }
main > .content-area > .container > .row:has(.filter-portfolio) + .row { margin-top: 0; }

/* 4. Utilities — legacy helpers kept so existing markup keeps its rhythm
   ------------------------------------------------------------------------ */
.marginbtm20 { margin-bottom: 1.25rem; }
.marginbtm30 { margin-bottom: 1.875rem; }
.marginbtm40 { margin-bottom: 2.5rem; }
.marginbtm50 { margin-bottom: 3.125rem; }
.margin-bottom-40 { margin-bottom: 2.5rem; }
.padding30 { padding-block: 1.875rem; }
.divide20 { height: 1.25rem; }
.divide30 { height: 1.875rem; }
.no-top-padding { padding-top: 0 !important; }
.clearfix::after { content: ""; display: table; clear: both; }

/* Stacked columns on phones: give a heading that starts a new column room to breathe */
@media (max-width: 767.98px) {
  .row > [class*="col-"] + [class*="col-"] > :is(.heading-title, h2, h3):first-child { margin-top: 2.25rem; }
  .row > [class*="col-"] + [class*="col-"] > .services-box2:first-child { margin-top: 0; }
}

/* 5. Buttons, badges, forms, alerts
   ------------------------------------------------------------------------ */
.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.35rem;
  --bs-btn-padding-y: .7rem;
  --bs-btn-font-size: .9375rem;
  --bs-btn-border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  letter-spacing: .005em;
  transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast),
              box-shadow var(--t-fast), transform var(--t-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { --bs-btn-padding-x: 1rem; --bs-btn-padding-y: .45rem; --bs-btn-font-size: .8125rem; }
.btn-lg { --bs-btn-padding-x: 1.75rem; --bs-btn-padding-y: .9rem; --bs-btn-font-size: 1rem; }
.btn i { transition: transform var(--t-fast); }
.btn:hover .fa-arrow-right { transform: translateX(3px); }

.btn-brand, .btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand-600);
  --bs-btn-border-color: var(--brand-600);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand-700);
  --bs-btn-hover-border-color: var(--brand-700);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--brand-700);
  --bs-btn-active-border-color: var(--brand-700);
  --bs-btn-focus-shadow-rgb: 251, 80, 17;
  box-shadow: var(--shadow-brand);
}
.btn-outline-secondary {
  --bs-btn-color: var(--text);
  --bs-btn-border-color: var(--border-strong);
  --bs-btn-bg: var(--surface);
  --bs-btn-hover-color: var(--text);
  --bs-btn-hover-bg: var(--surface);
  --bs-btn-hover-border-color: var(--text);
  --bs-btn-active-bg: var(--bg-alt);
  --bs-btn-active-color: var(--text);
}
.btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, .45);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
}
.btn-glass {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-bg: rgba(255, 255, 255, .08);
  --bs-btn-hover-bg: rgba(255, 255, 255, .16);
  --bs-btn-border-color: rgba(255, 255, 255, .2);
  --bs-btn-hover-border-color: rgba(255, 255, 255, .4);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-link { --bs-btn-color: var(--brand-700); --bs-btn-hover-color: var(--brand); }
/* Plain .btn with no variant (e.g. popover demos) */
.btn:not([class*="btn-"]) {
  --bs-btn-color: var(--text);
  --bs-btn-bg: var(--surface);
  --bs-btn-border-color: var(--border-strong);
  --bs-btn-hover-color: var(--text);
  --bs-btn-hover-border-color: var(--text);
  --bs-btn-active-bg: var(--bg-alt);
}

.badge { font-weight: 600; letter-spacing: .02em; padding: .45em .75em; border-radius: var(--radius-pill); }

/* Form controls */
.form-control, .form-select {
  min-height: 48px;
  padding: .7rem 1rem;
  font-size: .9375rem;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
textarea.form-control { min-height: 150px; resize: vertical; }
.form-control::placeholder { color: var(--text-soft); }
.form-control:hover, .form-select:hover { border-color: var(--border-strong); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
label { font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.form-check-input:checked { background-color: var(--brand-600); border-color: var(--brand-600); }
.form-check-input:focus { box-shadow: 0 0 0 4px var(--brand-ring); border-color: var(--brand); }
.form-check-label { font-weight: 500; }
.input-group > .form-control { box-shadow: none; }
.input-group { box-shadow: var(--shadow-xs); border-radius: var(--radius-sm); }
.input-group > .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; box-shadow: none; transform: none; }
.input-group > .btn:hover { transform: none; }
.input-group-text { background: var(--bg-alt); border-color: var(--border); color: var(--text-muted); }

/* Search form (sidebar, 404) — pill with inline button */
.search-form .input-group {
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search-form .input-group:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.search-form .form-control { border: 0; min-height: 40px; background: transparent; box-shadow: none !important; padding-left: 1rem; }
.search-form .btn { border-radius: var(--radius-pill) !important; min-height: 40px; float: none; }

/* Alerts */
.alert {
  --bs-alert-border-radius: var(--radius-md);
  border-width: 1px;
  border-left-width: 4px;
  box-shadow: var(--shadow-xs);
  font-size: .9375rem;
}
.alert p { color: inherit; margin: 0; }
.alert .btn-close { box-shadow: none; }

/* 6. Loader, skip link, back-to-top
   ------------------------------------------------------------------------ */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 3000;
  padding: .6rem 1rem;
  background: var(--brand-600); color: #fff;
  border-radius: var(--radius-sm);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; color: #fff; }

html.is-loading { overflow: hidden; }
.loader {
  position: fixed; inset: 0; z-index: 2500;
  display: grid; place-items: center;
  background: radial-gradient(60% 60% at 50% 40%, rgba(251, 80, 17, .22), transparent 70%), var(--ink);
  transition: opacity .5s ease .1s, visibility 0s linear .6s;
  animation: loader-failsafe 0s linear 6s forwards;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-inner { display: grid; justify-items: center; gap: 1.5rem; animation: fade-up .6s var(--ease) both; }
.loader-mark {
  font-family: var(--font-heading); font-weight: 800; font-size: 3rem; letter-spacing: -.04em;
  color: #fff; line-height: 1;
}
.loader-mark span { color: var(--brand); }
.loader-bar { width: 140px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.loader-bar span { display: block; width: 40%; height: 100%; background: var(--brand-gradient); border-radius: inherit; animation: loader-bar 1.1s ease-in-out infinite; }
@keyframes loader-bar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }

.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1030;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  color: #fff; background: var(--brand-600);
  border: 0; border-radius: 50%;
  box-shadow: var(--shadow-brand);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity var(--t-med), transform var(--t-med), visibility 0s linear .3s, background-color var(--t-fast);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--brand-700); transform: translateY(-3px); }

/* 7. Top bar, header & navigation
   ------------------------------------------------------------------------ */
.topbar {
  position: relative; z-index: 1031;
  font-size: .8125rem;
  background: var(--ink);
  color: var(--ink-muted);
}
.topbar .container { min-height: 40px; }
.topbar-link { color: var(--ink-muted); display: inline-flex; align-items: center; gap: .45rem; }
.topbar-link:hover, .topbar-link:focus { color: #fff; }
.topbar-menu { display: flex; align-items: center; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.topbar .dropdown-toggle::after { border-top-width: .28em; border-right-width: .28em; border-left-width: .28em; margin-left: .2em; }
.topbar .dropdown-menu { font-size: .8125rem; min-width: 150px; }
.topbar .dropdown-item { display: flex; align-items: center; gap: .5rem; }

.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(250, 250, 250, .78);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med), box-shadow var(--t-med), background-color var(--t-med);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .88); border-color: var(--border); box-shadow: 0 6px 24px -12px rgba(24, 24, 27, .16); }
.site-header .navbar { min-height: var(--header-h); padding-block: .5rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem;
  color: #fff;
  background: var(--brand-gradient);
  border-radius: 11px;
  box-shadow: var(--shadow-brand);
  transition: transform var(--t-med);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-text { font-family: var(--font-heading); font-weight: 800; font-size: 1.45rem; letter-spacing: -.04em; line-height: 1; }
.brand-text span { color: var(--brand); }
.brand-light, .brand-light:hover { color: #fff; }

/* Hamburger */
.navbar-toggler {
  display: grid; gap: 5px; place-content: center;
  width: 46px; height: 46px; padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast);
}
.navbar-toggler:focus { box-shadow: 0 0 0 4px var(--brand-ring); }
.navbar-toggler:hover { border-color: var(--text); }
.toggler-bar { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform var(--t-med), opacity var(--t-fast); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navbar .nav-link {
  position: relative;
  font-weight: 500;
  font-size: .9375rem;
  color: var(--text-muted);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.navbar .nav-link:hover, .navbar .nav-link:focus, .navbar .nav-link.show { color: var(--text); }
.navbar .nav-link.active { color: var(--brand-700); }
.navbar .nav-link:focus { box-shadow: none; }
.navbar .nav-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; box-shadow: none; }
.navbar .dropdown-toggle::after {
  border: 0;
  content: "\f107";
  font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .7rem;
  vertical-align: 1px; margin-left: .35rem;
  transition: transform var(--t-fast);
}
.navbar .dropdown-toggle.show::after { transform: rotate(180deg); }

.dropdown-menu {
  --bs-dropdown-border-color: var(--border);
  --bs-dropdown-border-radius: var(--radius-md);
  --bs-dropdown-link-active-bg: var(--brand-soft);
  --bs-dropdown-link-active-color: var(--brand-700);
  --bs-dropdown-link-hover-bg: var(--bg-alt);
  --bs-dropdown-padding-y: .5rem;
  box-shadow: var(--shadow-lg);
  padding-inline: .5rem;
}
.dropdown-item {
  border-radius: var(--radius-xs);
  font-size: .9rem;
  padding: .5rem .75rem;
  color: var(--text-muted);
  transition: background-color var(--t-fast), color var(--t-fast), padding var(--t-fast);
}
.dropdown-item:hover { color: var(--text); padding-left: 1rem; }

.mega-title {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-soft);
  margin: .5rem .75rem .35rem;
}
.mega-desc { font-size: .8rem; color: var(--text-soft); margin: 0 .75rem .5rem; line-height: 1.5; }
.mega-col ul { list-style: none; margin: 0 0 .5rem; padding: 0; }

.nav-extra { display: grid; gap: .75rem; padding: 1.25rem 0 .5rem; margin-top: .75rem; border-top: 1px solid var(--border); font-size: .9rem; }
.nav-extra a { color: var(--text-muted); display: inline-flex; gap: .5rem; align-items: center; }

/* Mobile menu */
@media (max-width: 991.98px) {
  .navbar-collapse {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding-bottom: 1rem;
  }
  .navbar-nav { padding-top: .75rem; }
  .navbar-nav > .nav-item { border-bottom: 1px solid var(--border); }
  .navbar .nav-link { padding: .9rem 0; font-size: 1.05rem; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
  .navbar .dropdown-menu { box-shadow: none; border: 0; background: transparent; padding: 0 0 .75rem; }
  .mega-col + .mega-col { margin-top: .5rem; }
  .mega-title { margin-left: 0; }
  .mega-desc { margin-left: 0; }
  .dropdown-item { padding-left: 0; }
  .dropdown-item:hover { padding-left: .5rem; background: transparent; }
}

/* Desktop menu */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav { gap: .15rem; }
  .navbar-expand-lg .navbar-nav .nav-link { padding: .55rem .9rem; border-radius: var(--radius-pill); }
  .navbar-expand-lg .navbar-nav .nav-link:hover,
  .navbar-expand-lg .navbar-nav .nav-link.show { background: var(--bg-alt); }
  .navbar-expand-lg .navbar-nav .nav-link.active::before {
    content: ""; position: absolute; left: 50%; bottom: 2px;
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--brand);
    transform: translateX(-50%);
  }
  .navbar .dropdown-menu {
    margin-top: .75rem !important;
    min-width: 220px;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
  }
  .navbar .dropdown-menu.show { animation: drop-in .22s var(--ease) both; }
  /* Open on hover for pointer devices (click still works for touch/keyboard) */
  .navbar .dropdown:hover > .dropdown-menu { display: block; animation: drop-in .22s var(--ease) both; }
  .navbar .dropdown:hover > .dropdown-toggle { color: var(--text); background: var(--bg-alt); }
  .navbar .dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .9rem; }

  .dropdown-mega { position: static; }
  .mega-menu {
    left: 50% !important; right: auto;
    transform: translateX(-50%);
    padding: 1.25rem;
    gap: 1rem;
  }
  .navbar .mega-menu.show,
  .navbar .dropdown-mega:hover > .mega-menu { display: grid; }
  .mega-menu.mega-4 { grid-template-columns: repeat(4, minmax(180px, 1fr)); width: min(880px, 94vw); }
  .mega-menu.mega-5 { grid-template-columns: repeat(5, minmax(150px, 1fr)); width: min(1000px, 94vw); }
  .mega-col { padding: .25rem; border-radius: var(--radius-sm); }
  .mega-col + .mega-col { border-left: 1px solid var(--border); padding-left: 1rem; }
}
@keyframes drop-in { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }

/* 8. Hero sliders (home pages)
   ------------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.hero-blob-1 { width: 560px; height: 560px; top: -200px; right: -120px; background: radial-gradient(circle, #fb5011, transparent 65%); animation: blob 18s ease-in-out infinite alternate; }
.hero-blob-2 { width: 480px; height: 480px; bottom: -240px; left: -160px; background: radial-gradient(circle, #e0306a, transparent 65%); animation: blob 22s ease-in-out infinite alternate-reverse; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
@keyframes blob { to { transform: translate(-60px, 40px) scale(1.12); } }

.hero-slide {
  display: flex; align-items: center;
  min-height: clamp(620px, 88vh, 860px);
  padding-block: 5rem 7rem;
}
.hero-copy { max-width: 620px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .02em;
  color: #ffd9c9;
  background: rgba(251, 80, 17, .12);
  border: 1px solid rgba(251, 80, 17, .35);
  border-radius: var(--radius-pill);
}
.hero-eyebrow i { color: var(--brand); }
.hero-title {
  margin: 1.4rem 0 1.25rem;
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.02;
  color: #fff;
}
.hero-title em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--ink-muted); }
.hero-title-md { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1.1; }
.hero-lead { max-width: 52ch; font-size: 1.125rem; color: var(--ink-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem 1rem;
  font-size: .9rem; font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.hero-chips li:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.hero-chips li i { color: var(--brand); }

.glass {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
}

/* Split slide visual */
.hero-visual { position: relative; max-width: 480px; margin-inline: auto; aspect-ratio: 1 / 1.05; display: grid; place-items: end center; }
.hero-orb {
  position: absolute; inset: 8% 6% 0;
  border-radius: 50% 50% var(--radius-xl) var(--radius-xl);
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .18), transparent 60%), var(--brand-gradient);
  box-shadow: 0 40px 80px -30px rgba(251, 80, 17, .7);
}
.hero-person { position: relative; width: 78%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.hero-float {
  position: absolute;
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem;
  max-width: 220px;
  font-size: .8125rem; line-height: 1.3;
  color: var(--ink-text);
  border-radius: var(--radius-md);
  animation: float 6s ease-in-out infinite;
}
.hero-float strong { display: block; font-family: var(--font-heading); font-size: 1.05rem; color: #fff; }
.hero-float-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-gradient); color: #fff; }
.hero-float-1 { top: 12%; left: -6%; }
.hero-float-2 { top: 44%; right: -8%; animation-delay: -2s; }
.hero-float-3 { bottom: 6%; left: 0; animation-delay: -4s; flex-direction: column; align-items: flex-start; gap: .35rem; }
.stars { color: #fbbf24; font-size: .75rem; letter-spacing: 2px; }

/* Devices slide */
.hero-devices { position: relative; min-height: 380px; }
.device { position: absolute; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .5)); }
.device-imac { right: 0; top: 0; width: 72%; }
.device-macbook { left: 0; bottom: 0; width: 66%; }

/* Illustrated scene slides */
.hero-scene {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--ink-border);
  overflow: hidden;
}
.hero-scene img { position: absolute; }
.scene-cloud-1 { top: 10%; left: 6%; width: 42%; opacity: .7; animation: drift 14s ease-in-out infinite alternate; }
.scene-cloud-2 { top: 22%; right: 4%; width: 34%; opacity: .5; animation: drift 18s ease-in-out infinite alternate-reverse; }
.scene-guy-1 { bottom: 10%; left: 22%; height: 62%; }
.scene-guy-2 { bottom: 10%; left: 50%; height: 68%; }
.scene-icon { top: 12%; right: 12%; width: 72px; animation: float 5s ease-in-out infinite; }
.scene-tree { bottom: 10%; left: 4%; height: 70%; }
.scene-hill { bottom: 0; left: 0; width: 100%; height: 12%; object-fit: cover; }
@keyframes drift { to { transform: translateX(30px); } }

/* Video slide */
.hero-slide-video .container { max-width: 960px; }
.hero-video-frame { padding: .6rem; border-radius: var(--radius-xl); background: rgba(255, 255, 255, .06); border: 1px solid var(--ink-border); box-shadow: var(--shadow-lg); width: 100%; }
.hero-video-frame .ratio { border-radius: calc(var(--radius-xl) - .5rem); overflow: hidden; background: #000; }

/* Photo slides (home-3 Ken Burns, home-blog) */
.hero-slide-photo { position: relative; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 12, 16, .55), rgba(12, 12, 16, .7) 60%, rgba(12, 12, 16, .92)); }
.hero-slide-photo .container { position: relative; }
.text-center .hero-lead { margin-inline: auto; }
.hero-slide-photo .hero-chips li { font-size: .78rem; padding: .4rem .8rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.is-kenburns.swiper-slide-active .hero-photo { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.18) translate(2%, 1%); } to { transform: scale(1.02) translate(0, 0); } }

/* Slide-in choreography — only the active slide animates */
.hero [data-anim] { opacity: 0; transform: translateY(26px); }
.hero.is-ready .swiper-slide-active [data-anim] {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms + 150ms);
}
.hero-slide-split .hero-visual[data-anim] { transform: translateY(26px) scale(.97); }

/* Controls */
.hero-controls {
  position: absolute; z-index: 5; left: 50%; bottom: 2rem;
  display: flex; align-items: center; gap: 1rem;
  transform: translateX(-50%);
}
.hero-arrow {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.hero-arrow:hover { background: var(--brand-600); border-color: var(--brand-600); transform: scale(1.06); }
.hero-pagination { display: flex; gap: .5rem; position: static !important; width: auto !important; }
.hero-pagination .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 !important; background: rgba(255, 255, 255, .45); opacity: 1; border-radius: 99px; transition: width var(--t-med), background-color var(--t-med); }
.hero-pagination .swiper-pagination-bullet-active { width: 28px; background: var(--brand); }
.hero-progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; height: 3px; background: rgba(255, 255, 255, .08); }
.hero-progress span { display: block; height: 100%; width: 100%; background: var(--brand-gradient); transform-origin: left; transform: scaleX(var(--hero-progress, 0)); }

@media (max-width: 991.98px) {
  .hero-slide { min-height: auto; padding-block: 4rem 7rem; }
  .hero-copy { text-align: center; margin-inline: auto; }
  .hero-actions, .hero-copy .hero-chips { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-visual { max-width: 360px; }
  .hero-float-1 { left: 0; }
  .hero-float-2 { right: 0; }
  .hero-devices, .hero-scene { min-height: 280px; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 991.98px) {
  .hero-slide-photo { min-height: min(76vh, 600px); padding-block: 5rem 7rem; }
}
@media (max-width: 575.98px) {
  .hero-float { max-width: 170px; padding: .55rem .7rem; font-size: .75rem; }
  .hero-float strong { font-size: .9rem; }
  .hero-float-icon { width: 30px; height: 30px; }
  .hero-devices, .hero-scene { min-height: 230px; }
  .hero-arrow { width: 40px; height: 40px; }
}

/* 9. Page header & breadcrumb
   ------------------------------------------------------------------------ */
.page-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem);
  background: var(--ink);
  color: #fff;
}
.page-header-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(520px 260px at 85% 0%, rgba(251, 80, 17, .45), transparent 70%),
    radial-gradient(420px 240px at 0% 100%, rgba(224, 48, 106, .3), transparent 70%);
}
.page-header-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.page-title {
  margin: .9rem 0 0;
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -.035em;
  color: #fff;
  max-width: 24ch;
  animation: fade-up .7s var(--ease) .1s both;
}
.page-title strong { color: var(--brand); font-weight: 800; }
:is(.page-header, .ar-head, .ar-cover-hero) .breadcrumb {
  --bs-breadcrumb-divider-color: var(--ink-muted);
  --bs-breadcrumb-item-active-color: #fff;
  display: inline-flex;
  margin: 0;
  padding: .4rem .9rem;
  font-size: .8125rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-pill);
  animation: fade-up .6s var(--ease) both;
}
:is(.page-header, .ar-head, .ar-cover-hero) .breadcrumb-item + .breadcrumb-item::before { content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .65rem; padding-top: .2rem; }
:is(.page-header, .ar-head, .ar-cover-hero) .breadcrumb a { color: var(--ink-muted); }
:is(.page-header, .ar-head, .ar-cover-hero) .breadcrumb a:hover { color: #fff; }

/* 10. Section shells
   ------------------------------------------------------------------------ */
.home-section { padding-block: var(--section-y); }
/* Two plain (same-background) sections in a row share one gap instead of two */
.home-section:not(.gray-section, .tcolor-cta-section, .dark-section)
  + .home-section:not(.gray-section, .tcolor-cta-section, .dark-section) { padding-top: 0; }
.home-section.gray-section, .gray-section { background: var(--bg-alt); padding-block: var(--section-y); }
.gray-section.padding30 { padding-block: var(--section-y); }

/* Centered intro: a heading followed by an h3 used as a lead paragraph (index showcase) */
.text-center > h2 + h3 {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
  color: var(--text-muted);
}
.text-center > h2 + h3 + img { margin-inline: auto; border-radius: var(--radius-xl); }
.text-center > h2 > a.text-color { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent !important; }

/* Call-to-action bands */
.tcolor-cta-section {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 2.4rem + 2.5vw, 4.5rem);
  color: #fff;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(251, 80, 17, .55), transparent 70%),
    radial-gradient(500px 260px at 0% 100%, rgba(224, 48, 106, .38), transparent 70%),
    var(--ink);
  overflow: hidden;
}
.tcolor-cta-section::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
  mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.tcolor-cta-section .row { align-items: center; row-gap: 1.25rem; }
.tcolor-cta-section h2 { margin: 0; color: #fff; font-size: clamp(1.4rem, 1.15rem + 1.1vw, 2.1rem); letter-spacing: -.025em; }
.tcolor-cta-section p { color: var(--ink-muted); margin: .75rem 0 0; }
.tcolor-cta-section .btn-outline-light {
  --bs-btn-bg: #fff; --bs-btn-color: var(--ink); --bs-btn-border-color: #fff;
  --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--brand-600);
  --bs-btn-padding-x: 1.6rem; --bs-btn-padding-y: .85rem;
}
@media (min-width: 768px) {
  .tcolor-cta-section .col-md-3 { text-align: right !important; }
}

.dark-section, .dark-section h1, .dark-section h2, .dark-section h3 { color: #fff; }

.counter { font-variant-numeric: tabular-nums; }

/* 11. Headings
   ------------------------------------------------------------------------ */
.heading-title { position: relative; margin-bottom: 1.5rem; }
.heading-title h2, .heading-title h3 {
  display: inline-flex; align-items: center; gap: .75rem;
  margin: 0;
}
.heading-title h2::before, .heading-title h3::before {
  content: "";
  width: 4px; height: 1.05em;
  border-radius: 4px;
  background: var(--brand-gradient);
}
.heading-title::after { content: ""; display: table; clear: both; }
.heading-title .float-start { float: none !important; }

.section-center-heading { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.section-center-heading h1, .section-center-heading h2 { margin-bottom: 1rem; }
.section-center-heading .lead, .section-center-heading p { color: var(--text-muted); margin-bottom: 0; }
.dark-section .lead, .dark-section p { color: var(--ink-muted); }
.heading-line {
  display: block;
  width: 56px; height: 4px;
  margin: 0 auto 1.25rem;
  border-radius: 4px;
  background: var(--brand-gradient);
}
.section-center-heading.marginbtm20 { margin-bottom: 2rem; }

.col-title { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.col-title h3 { margin: 0; font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; }
.col-line { flex: 1; height: 1px; background: var(--border); position: relative; }
.col-line::before { content: ""; position: absolute; left: 0; top: -1px; width: 28px; height: 3px; border-radius: 3px; background: var(--brand); }

/* 12. Media: image overlay, carousels, gallery viewer
   ------------------------------------------------------------------------ */
.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  isolation: isolate;
}
.image-wrapper > img { width: 100%; display: block; transition: transform var(--t-slow), filter var(--t-slow); }
.image-wrapper:hover > img { transform: scale(1.06); }
.image-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(12, 12, 16, .05), rgba(12, 12, 16, .7));
  opacity: 0;
  transition: opacity var(--t-med);
}
.image-wrapper:hover .image-overlay, .image-wrapper:focus-within .image-overlay { opacity: 1; }
.control-icon { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; padding: 1rem; text-align: center; }
.control-icon :is(h3, h4, h5) { flex-basis: 100%; font-family: var(--font-heading); font-weight: 700; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); margin: 0 0 .5rem; font-size: 1.1rem; color: #fff; transform: translateY(10px); transition: transform var(--t-med); }
.overlay-btn {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  color: var(--text);
  background: rgba(255, 255, 255, .92);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transform: translateY(12px) scale(.9);
  transition: transform var(--t-med), background-color var(--t-fast), color var(--t-fast);
}
.overlay-btn + .overlay-btn { transition-delay: 40ms; }
.image-wrapper:hover .overlay-btn, .image-wrapper:focus-within .overlay-btn,
.image-wrapper:hover .control-icon :is(h3, h4, h5), .image-wrapper:focus-within .control-icon :is(h3, h4, h5) { transform: none; }
.overlay-btn:hover { background: var(--brand-600); color: #fff; }

/* Content carousels */
.js-swiper .swiper-pagination-bullet { width: 8px; height: 8px; opacity: 1; background: rgba(255, 255, 255, .65); transition: width var(--t-med), background-color var(--t-med); border-radius: 99px; }
.js-swiper .swiper-pagination-bullet-active { width: 24px; background: var(--brand); }
.js-swiper[data-swiper="cards"] .swiper-pagination,
.js-swiper[data-swiper="clients"] .swiper-pagination { position: relative; margin-top: 1.25rem; bottom: auto; }
.js-swiper[data-swiper="cards"] .swiper-pagination-bullet,
.js-swiper[data-swiper="clients"] .swiper-pagination-bullet { background: var(--border-strong); }

/* Carousel heading + nav buttons */
.related-post, .related-portfolio { position: relative; }
.related-post .heading-title, .related-portfolio .heading-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.owl-navigation { margin-left: auto; }
.customNavigation { display: flex; gap: .5rem; }
.carousel-btn {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-xs);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.carousel-btn:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; transform: translateY(-2px); }
.carousel-btn.swiper-button-disabled { opacity: .4; pointer-events: none; }

/* Clients */
.client {
  display: grid; place-items: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.client img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(1); opacity: .75; transition: filter var(--t-med), opacity var(--t-med), transform var(--t-med); }
.client:hover img { filter: none; opacity: 1; transform: scale(1.04); }
.page-index .home-section .row > [class*="col-"]:has(> .client) { margin-bottom: 1.5rem; }

/* Gallery viewer (lightGallery-style; js-gallery links) */
html.lg-open { overflow: hidden; }
.lg {
  position: fixed; inset: 0; z-index: 3000;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  color: #fff;
  opacity: 0;
  transition: opacity .25s ease;
}
.lg.is-open { opacity: 1; }
.lg-backdrop { position: absolute; inset: 0; z-index: -1; background: rgba(9, 9, 11, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lg-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; }
.lg-counter { font-size: .875rem; font-weight: 600; letter-spacing: .04em; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.lg-actions { display: flex; gap: .35rem; }
.lg-btn {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.lg-btn:hover, .lg-btn:focus-visible { color: #fff; background: var(--brand-600); border-color: var(--brand-600); transform: translateY(-2px); }
.lg-btn[aria-pressed="false"] { opacity: .55; }
.lg-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 4.5rem; }
.lg-frame {
  position: relative;
  display: grid; place-items: center;
  width: 100%; height: 100%;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
}
.lg.is-zoomed .lg-frame { cursor: grab; }
.lg.is-zoomed .lg-frame:active { cursor: grabbing; }
.lg-img {
  max-width: 100%;
  max-height: calc(100vh - 230px);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  user-select: none; -webkit-user-drag: none;
  transition: transform .35s var(--ease), opacity .3s ease;
}
.lg.thumbs-hidden .lg-img { max-height: calc(100vh - 140px); }
.lg.is-loading .lg-img { opacity: 0; }
.lg-frame.from-right .lg-img { animation: lg-in-right .4s var(--ease); }
.lg-frame.from-left .lg-img { animation: lg-in-left .4s var(--ease); }
@keyframes lg-in-right { from { opacity: 0; transform: translateX(60px) scale(.98); } }
@keyframes lg-in-left { from { opacity: 0; transform: translateX(-60px) scale(.98); } }
.lg.is-open .lg-frame:not(.from-left):not(.from-right) .lg-img { animation: lg-zoom-in .35s var(--ease); }
@keyframes lg-zoom-in { from { opacity: 0; transform: scale(.92); } }
.lg-spinner {
  position: absolute; width: 38px; height: 38px;
  border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--brand);
  border-radius: 50%;
  opacity: 0;
  animation: lg-spin .8s linear infinite;
  transition: opacity .2s ease;
}
.lg.is-loading .lg-spinner { opacity: 1; }
@keyframes lg-spin { to { transform: rotate(360deg); } }
.lg-nav {
  position: absolute; top: 50%; z-index: 2;
  display: grid; place-items: center;
  width: 50px; height: 50px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background-color var(--t-fast), transform var(--t-fast);
}
.lg-nav:hover, .lg-nav:focus-visible { background: var(--brand-600); border-color: var(--brand-600); }
.lg-prev { left: 1rem; }
.lg-next { right: 1rem; }
.lg-prev:hover { transform: translate(-3px, -50%); }
.lg-next:hover { transform: translate(3px, -50%); }
.lg.is-zoomed .lg-nav { opacity: 0; pointer-events: none; }
.lg-caption { padding: .9rem 1rem .4rem; text-align: center; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; }
.lg-thumbs { padding: .5rem 1rem 1rem; overflow: hidden; transition: max-height .3s var(--ease), opacity .3s ease, padding .3s ease; max-height: 110px; }
.lg.thumbs-hidden .lg-thumbs { max-height: 0; opacity: 0; padding-block: 0; }
.lg-thumbs-track { display: flex; gap: .5rem; justify-content: safe center; overflow-x: auto; scrollbar-width: none; padding: 4px; }
.lg-thumbs-track::-webkit-scrollbar { display: none; }
.lg-thumb {
  flex: none;
  width: 84px; height: 60px; padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  opacity: .45;
  transition: opacity var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.lg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lg-thumb:hover { opacity: .85; transform: translateY(-2px); }
.lg-thumb.is-active { opacity: 1; border-color: var(--brand); }
@media (max-width: 575.98px) {
  .lg-stage { padding: 0 .75rem; }
  .lg-nav { width: 40px; height: 40px; background: rgba(0, 0, 0, .45); }
  .lg-prev { left: .4rem; }
  .lg-next { right: .4rem; }
  .lg-btn { width: 38px; height: 38px; }
  .lg-thumbs-toggle, .lg-full { display: none !important; }
  .lg-thumb { width: 64px; height: 46px; }
}

/* Videos */
.ratio { border-radius: var(--radius-lg); overflow: hidden; background: #000; }

/* 13. Blog
   ------------------------------------------------------------------------ */
.post-card {
  display: flex; flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(251, 80, 17, .25); }
.post-card > .image-wrapper, .post-card > .ratio { border-radius: 0; }
/* Linked post image: soft zoom, gentle bottom shade and a frosted "Read article" pill */
.post-thumb { display: block; overflow: hidden; }
.post-thumb > img { transition: transform .9s cubic-bezier(.16, 1, .3, 1), filter .5s ease; }
.post-thumb::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(12, 12, 16, .55));
  opacity: 0;
  transition: opacity .45s ease;
}
.thumb-cta {
  position: absolute; z-index: 2; left: 1rem; bottom: 1rem;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .9rem;
  font-size: .78rem; font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease .05s, transform .45s var(--ease) .05s;
}
.thumb-cta i { color: var(--brand-600); transition: transform var(--t-fast); }
:is(.post-card, .post-row, .post-thumb):hover .post-thumb > img,
.post-thumb:hover > img { transform: scale(1.05); filter: saturate(1.08); }
:is(.post-card, .post-row):hover .post-thumb::before, .post-thumb:hover::before { opacity: 1; }
:is(.post-card, .post-row):hover .thumb-cta, .post-thumb:hover .thumb-cta,
.post-thumb:focus-visible .thumb-cta { opacity: 1; transform: none; }
.post-thumb:hover .thumb-cta i { transform: translateX(3px); }
/* Blog Full Width: static cards, no hover effects */
.page-blog-classic-full .post-card:hover { transform: none; box-shadow: var(--shadow-xs); border-color: var(--border); }
.page-blog-classic-full .post-card:hover .post-thumb > img { transform: none; }
.page-blog-classic-full .post-thumb::before, .page-blog-classic-full .post-thumb::after { display: none; }
.page-blog-classic-full .blog-details h3 a:hover { background-size: 0 2px; }
.post-card > .blog-quote-inner { border-radius: 0; margin: 0; }
.post-card .blog-details { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.post-card .blog-details > .btn { align-self: flex-start; float: none !important; margin-top: auto; }
.post-card .blog-desc { margin-bottom: 1.25rem; }
.post-card .blog-desc p:last-child, .post-card .blog-details > p:last-of-type { margin-bottom: 0; }
.post-card .blog-details > p { margin-bottom: 1.25rem; }

.blog-details h2, .blog-details h3 { margin-bottom: .6rem; line-height: 1.3; }
.blog-details h3 { font-size: 1.2rem; }
.blog-details h3 a, .blog-details h2 a { color: var(--text); background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 2px no-repeat; transition: background-size var(--t-med), color var(--t-fast); }
.blog-details h3 a:hover, .blog-details h2 a:hover { color: var(--text); background-size: 100% 2px; }

.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin-bottom: 1rem; font-size: .8125rem; color: var(--text-soft); }
.blog-meta > span { display: inline; }
.blog-meta i { color: var(--brand); font-size: .8rem; margin-right: .35rem; }
.blog-meta a { color: var(--text-muted); font-weight: 500; }
.blog-meta a:hover { color: var(--brand-700); }
.meta-separator { display: none !important; }

/* Medium layout: image + text side by side */
.post-row {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.post-row:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-row .image-wrapper { border-radius: 0; height: 100%; }
.post-row .image-wrapper > img { height: 100%; object-fit: cover; }
.post-row .post-card { border: 0; box-shadow: none; border-radius: 0; }
.post-row .post-card:hover { transform: none; box-shadow: none; }

/* Large layout */
.blog-large-item .post-card .blog-details { padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.blog-large-item .blog-details h3 { font-size: var(--fs-h3); }

/* Quote posts */
.blog-quote-inner {
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  color: #fff;
  background: radial-gradient(400px 200px at 100% 0%, rgba(251, 80, 17, .55), transparent 70%), var(--ink);
  border-radius: var(--radius-lg);
}
.blog-quote-inner > i { color: var(--brand); font-size: 1.4rem; }
.blog-quote-inner .fa-quote-right { display: none; }
.blog-quote-inner a { color: #fff; }
.blog-quote-text { margin: .75rem 0 1rem; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; line-height: 1.45; color: #fff; clear: both; }
.blog-quote-inner .author { display: block; clear: both; color: var(--ink-muted); font-size: .875rem; }
.blog-quote-inner .author::before { content: "— "; }

/* Masonry */
.js-masonry { align-items: flex-start; }

/* Single post */
.blog-single > [class*="col-"] > img, .portfolio-single > img, .portfolio-single > .col-md-12 > img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}
.blog-single .blog-details h2 { font-size: var(--fs-h2); letter-spacing: -.03em; }
.blog-single .blog-meta { padding-bottom: 1.25rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.post-content p, .portfolio-content p { font-size: 1.0625rem; line-height: 1.8; }
.post-content .lead, .portfolio-content .lead { margin-block: 1.5rem; padding-left: 1rem; border-left: 3px solid var(--brand); color: var(--text); }

.pager { display: flex; justify-content: space-between; gap: 1rem; margin: 2.5rem 0 0; padding: 1.5rem 0 0; list-style: none; border-top: 1px solid var(--border); }
.pager a {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.25rem;
  font-weight: 600; font-size: .9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.pager a:hover { border-color: var(--brand); color: var(--brand-700); }
.pager .previous a:hover { transform: translateX(-3px); }
.pager .next a:hover { transform: translateX(3px); }

/* Pagination */
.pagination { --bs-pagination-border-radius: var(--radius-pill); gap: .4rem; margin-top: 1rem; margin-bottom: 0; flex-wrap: wrap; justify-content: center; }
.content-area .col-md-12.text-center .pagination, .text-center > nav > .pagination { justify-content: center; }
.page-link {
  display: grid; place-items: center;
  min-width: 42px; height: 42px;
  padding: 0 .75rem;
  font-weight: 600; font-size: .9rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-pill) !important;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.page-link:hover { color: var(--brand-700); border-color: var(--brand) !important; background: var(--brand-soft); transform: translateY(-2px); }
.page-link:focus { box-shadow: 0 0 0 4px var(--brand-ring); }
.page-item.active .page-link { color: #fff; background: var(--brand-600); border-color: var(--brand-600) !important; box-shadow: var(--shadow-brand); }

/* Comments */
.comment-wrap { margin-top: 1rem; }
.comment-wrap > .row > [class*="col-"] > h3, .comment-wrap h3:first-child { margin-bottom: 1.5rem; }
.comment-list {
  display: flex; gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.comment-list:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.comment-list .avatar { flex: none; }
.comment-list .avatar img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; }
.comment-body { flex: 1; min-width: 0; }
.comment-body .author { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin-bottom: .35rem; }
.comment-body .author h3 { margin: 0; font-size: 1rem; }
.comment-body .author h3 a { color: var(--text); }
.comment-date { font-size: .8rem; color: var(--text-soft); }
.comment-body p { margin-bottom: .5rem; font-size: .9375rem; }
.comment-body .meta { margin: 0; font-size: .8125rem; }
.comment-body .meta a { color: var(--text-soft); display: inline-flex; gap: .35rem; align-items: center; }
.comment-body .meta a:hover { color: var(--brand-700); }
.comment-separate-bar { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.comment-form { padding: clamp(1.25rem, 1rem + 1vw, 2rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }

/* 14. Portfolio
   ------------------------------------------------------------------------ */
.filter-portfolio { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 2.5rem; padding: 0; }
.filter-portfolio .list-inline-item { margin: 0; }
.filter-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1.15rem;
  font-size: .875rem; font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.filter-btn:hover { color: var(--text); border-color: var(--text); transform: translateY(-2px); }
.filter-btn.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.filter-btn i { color: var(--brand); }

.work-item { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.work-item.is-hiding { opacity: 0; transform: scale(.94); }
.work-item.is-hidden { display: none; }

.work-card {
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.work-card .image-wrapper { border-radius: 0; }
/* Portfolio text cards: whole image links to the project, with a slow "Ken Burns" style zoom */
.work-thumb { display: block; aspect-ratio: 3 / 2; }
.work-thumb > img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: 60% 40%;
  transition: transform 1.1s cubic-bezier(.16, 1, .3, 1), filter .6s ease;
}
/* soft vignette + brand glow that fade in with the zoom */
.work-thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(12, 12, 16, .45)),
    linear-gradient(200deg, rgba(251, 80, 17, .28), transparent 55%);
  opacity: 0;
  transition: opacity .6s ease;
}
.work-card:hover .work-thumb > img { transform: scale(1.14) rotate(1.2deg); filter: saturate(1.15) contrast(1.05); }
.work-card:hover .work-thumb::after { opacity: 1; }
.work-card:has(.work-thumb):hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
/* Whole card is the link (portfolio-text pages) */
.work-card-link { display: block; color: inherit; text-decoration: none; }
.work-card-link:hover { color: inherit; }
.work-card-link .port-desc h4 { color: var(--text); transition: color var(--t-fast); }
.work-card-link:hover .port-desc h4 { color: var(--brand-700); }
.work-card-link .port-desc p { color: var(--text-muted); }
.work-card-link:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: var(--radius-lg); }

.port-desc { padding: 1.25rem 1.4rem 1.5rem; }
.port-desc h4 { margin: 0 0 .25rem; font-size: 1.1rem; }
.port-desc h4 a { color: var(--text); }
.port-desc h4 a:hover { color: var(--brand-700); }
.port-cat { display: inline-block; margin-bottom: .6rem; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-700); }
.port-desc p { margin: 0; font-size: .9375rem; }

/* No-space grids */
.row.portfolio-nospace, .portfolio-nospace > .row { --bs-gutter-x: 0; --bs-gutter-y: 0; }
.portfolio-nospace .work-item, .portfolio-nospace > [class*="col-"] { margin-bottom: 0; padding: 0; }
.portfolio-nospace .image-wrapper { border-radius: 0; }
.page-portfolio-classic-nospace2 .work-item, .page-portfolio-classic-nospace3 .work-item,
.page-portfolio-classic-nospace4 .work-item, .page-portfolio-classic-full-nospace4 .work-item { padding: 0; margin: 0; }
.page-portfolio-classic-nospace2 .work-item .image-wrapper, .page-portfolio-classic-nospace3 .work-item .image-wrapper,
.page-portfolio-classic-nospace4 .work-item .image-wrapper, .page-portfolio-classic-full-nospace4 .work-item .image-wrapper { border-radius: 0; }

/* Single project */
.portfolio-single { margin-bottom: 1rem; }
.project-info, .portfolio-single .col-md-4:has(> .lead > b) {
  align-self: flex-start;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.project-info .lead, .portfolio-single .col-md-4 .lead { font-size: .95rem; color: var(--text-muted); margin-bottom: .75rem; }
.project-info .lead b, .portfolio-single .lead b { display: block; color: var(--text); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .15rem; }
.project-info .fa-star, .project-info .fa-star-half-stroke, .portfolio-single .fa-star, .portfolio-single .fa-star-half-stroke { color: #f59e0b; }
/* Project video (single-portfolio-3): same framing and spacing as project images */
.portfolio-single > .ratio { margin-bottom: 2.5rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.portfolio-single > img { margin-bottom: 2.5rem; }
/* Work Info card: label/value rows separated by dividers, full-width action */
.project-info .heading-title { margin-bottom: 1rem; }
.project-info .lead, .portfolio-single .col-md-4 .lead { margin: 0; padding: .7rem 0; border-bottom: 1px dashed var(--border); }
.project-info .lead:last-of-type, .portfolio-single .col-md-4 .lead:last-of-type { border-bottom: 0; }
.project-info .btn, .portfolio-single .col-md-4 .btn { width: 100%; margin-top: 1rem; }
.project-info p:last-child, .portfolio-single .col-md-4 p:last-child { margin-bottom: 0; }
@media (max-width: 767.98px) {
  .project-info, .portfolio-single .col-md-4:has(> .lead > b) { margin-top: 2.5rem; }
}
.related-portfolio:not(:first-child), .related-post:not(:first-child) { margin-top: 2.5rem; }
section.related-post { margin-top: 0; }

/* 15. Sidebar & widgets
   ------------------------------------------------------------------------ */
.sidebar { display: grid; gap: 1.25rem; }
@media (max-width: 991.98px) { .sidebar { margin-top: 2.5rem; } }
.sidebar-box {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.sidebar-box > .list-unstyled { margin: 0; }
.sidebar-box > .list-unstyled:not(.contact-form-list) > li { border-bottom: 1px dashed var(--border); }
.sidebar-box > .list-unstyled:not(.contact-form-list) > li:last-child { border-bottom: 0; }
.sidebar-box > .list-unstyled:not(.contact-form-list) > li > a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .6rem 0;
  font-size: .9375rem;
  color: var(--text-muted);
  transition: color var(--t-fast), padding var(--t-fast);
}
.sidebar-box > .list-unstyled:not(.contact-form-list) > li > a::after { content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .7rem; color: var(--text-soft); transition: transform var(--t-fast), color var(--t-fast); }
.sidebar-box > .list-unstyled:not(.contact-form-list) > li > a:hover { color: var(--brand-700); padding-left: .3rem; }
.sidebar-box > .list-unstyled:not(.contact-form-list) > li > a:hover::after { color: var(--brand); transform: translateX(3px); }
.sidebar-box h4 { font-size: 1.05rem; margin-bottom: 1rem; }

/* Sidebar tabs */
.sidebar .nav-tabs { margin-bottom: 1rem; }
.post-widgets { margin: 0; display: grid; gap: .9rem; }
.post-widgets li { display: flex; gap: .85rem; align-items: center; }
.post-image { flex: none; width: 60px; }
.post-image img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); transition: transform var(--t-med); }
.post-widgets li:hover .post-image img { transform: scale(1.06) rotate(-2deg); }
.post-desc h5 { margin: 0 0 .15rem; font-size: .9rem; line-height: 1.35; }
.post-desc h5 a { color: var(--text); }
.post-desc h5 a:hover { color: var(--brand-700); }
.post-desc h6 { margin: 0; font-family: var(--font-body); font-size: .78rem; font-weight: 500; color: var(--text-soft); display: flex; gap: .35rem; align-items: center; }
.post-desc h6 a { color: var(--text-muted); }

/* Tag cloud */
.tagcloud { display: flex; flex-wrap: wrap; gap: .45rem; }
.tagcloud a {
  padding: .35rem .8rem;
  font-size: .8125rem; font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.tagcloud a:hover { color: var(--brand-700); background: var(--brand-soft); border-color: rgba(251, 80, 17, .25); transform: translateY(-2px); }

/* Social icons */
.social-list, .list-inline:has(.social-icon) { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.social-list .list-inline-item, .list-inline:has(.social-icon) .list-inline-item { margin: 0; }
.social-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  font-size: .9rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-radius: 50%;
  transition: color var(--t-fast), background-color var(--t-fast), transform var(--t-fast);
}
.social-icon:hover { color: #fff; transform: translateY(-3px); }
/* Markup carries the icon twice: the copy slides in from below on hover */
.social-icon { position: relative; overflow: hidden; }
.social-icon i { transition: transform var(--t-med); }
.social-icon i + i { position: absolute; inset: 0; display: grid; place-items: center; transform: translateY(110%); }
.social-icon:hover i:first-child, .social-icon:focus-visible i:first-child { transform: translateY(-160%); }
.social-icon:hover i + i, .social-icon:focus-visible i + i { transform: none; }
.si-facebook:hover { background: #1877f2; }
.si-twitter:hover { background: #1d9bf0; }
.si-google-plus:hover { background: #db4437; }
.si-linkedin:hover { background: #0a66c2; }
.si-pinterest:hover { background: #e60023; }
.si-instagram:hover { background: #d62976; }

/* Sidebar "Social Share": labelled brand buttons instead of a row of bare icons */
.sidebar-box .social-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}
@media (min-width: 576px) and (max-width: 991.98px) { .sidebar-box .social-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sidebar-box .social-list .social-icon {
  --sc: var(--text-muted);
  display: flex; align-items: center; justify-content: flex-start; gap: .6rem;
  width: 100%; height: auto;
  padding: .4rem .7rem .4rem .4rem;
  font-size: .8125rem; font-weight: 600;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  overflow: visible;
  transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.sidebar-box .social-list .social-icon::after { content: attr(aria-label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-box .social-list .social-icon i:first-child {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px;
  font-size: .8rem;
  color: #fff;
  background: var(--sc);
  border-radius: 50%;
  transform: none !important;
  transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-med);
}
.sidebar-box .social-list .social-icon i + i { display: none; }
.sidebar-box .social-list .social-icon:hover,
.sidebar-box .social-list .social-icon:focus-visible {
  color: #fff;
  background: var(--sc);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px var(--sc);
}
.sidebar-box .social-list .social-icon:hover i:first-child { background: rgba(255, 255, 255, .2); transform: rotate(-10deg) !important; }
.sidebar-box .social-list .si-facebook { --sc: #1877f2; }
.sidebar-box .social-list .si-twitter { --sc: #1d9bf0; }
.sidebar-box .social-list .si-google-plus { --sc: #db4437; }
.sidebar-box .social-list .si-google-plus::after { content: "Google+"; }
.sidebar-box .social-list .si-linkedin { --sc: #0a66c2; }
.sidebar-box .social-list .si-pinterest { --sc: #e60023; }
.sidebar-box .social-list .si-instagram { --sc: #d62976; }

.touch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: .45rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.touch-list a {
  display: grid; place-items: center;
  aspect-ratio: 1;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background-color var(--t-fast), transform var(--t-fast);
}
.touch-list a:hover { color: #fff; background: var(--brand-600); transform: translateY(-3px); }

/* 16. Services, features, counters, progress
   ------------------------------------------------------------------------ */
/* Flip cards (front / back) */
.services-box {
  display: grid;
  height: calc(100% - 1.25rem);
  perspective: 1200px;
}
.service-box-front, .service-box-back {
  grid-area: 1 / 1;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transition: transform .7s var(--ease);
}
.service-box-front {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.service-box-back {
  color: #fff;
  background: radial-gradient(300px 180px at 100% 0%, rgba(255, 255, 255, .25), transparent 70%), var(--brand-gradient);
  transform: rotateY(180deg);
  box-shadow: var(--shadow-brand);
}
.service-box-back h4, .service-box-back p { color: #fff; }
.services-box:hover .service-box-front, .services-box:focus-within .service-box-front { transform: rotateY(-180deg); }
.services-box:hover .service-box-back, .services-box:focus-within .service-box-back { transform: rotateY(0); }
.service-box-front > i, .service-box-back > i {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
  color: var(--brand-600);
  background: var(--brand-soft);
  border-radius: var(--radius-md);
}
.service-box-back > i { color: #fff; background: rgba(255, 255, 255, .18); }
.services-box h4 { font-size: 1.15rem; margin-bottom: .6rem; }
.services-box p { margin: 0; font-size: .9375rem; }
@media (hover: none) {
  .services-box { perspective: none; }
  .service-box-back { display: none; }
  .services-box:hover .service-box-front { transform: none; }
}

/* Icon + text feature rows */
.services-box2 {
  height: 100%;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.services-box2:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(251, 80, 17, .25); }
.services-box2 h4 { margin-bottom: .75rem; }
.services-box2 h4 a { display: flex; align-items: center; gap: .9rem; color: var(--text); }
.services-box2 h4 i {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px;
  font-size: 1.1rem;
  color: var(--brand-600);
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  transition: background-color var(--t-med), color var(--t-med), transform var(--t-med);
}
.services-box2:hover h4 i { background: var(--brand-600); color: #fff; transform: rotate(-8deg); }
.services-box2 p { margin: 0; font-size: .9375rem; }

/* Progress bars */
.progress-wrap { display: grid; gap: 1rem; margin-top: 1rem; }
.progress {
  --bs-progress-height: 2.1rem;
  --bs-progress-bg: var(--bg-alt);
  --bs-progress-border-radius: var(--radius-pill);
  --bs-progress-bar-bg: var(--brand-600);
  --bs-progress-font-size: .8125rem;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .05);
}
.progress-bar {
  justify-content: center;
  align-items: flex-start;
  padding-inline: 1rem;
  font-weight: 600;
  text-align: left;
  background: var(--brand-gradient);
  border-radius: var(--radius-pill);
  transform-origin: left;
  white-space: nowrap;
}
.js .progress-bar { transform: scaleX(0); transition: transform 1.2s var(--ease); }
.js .progress.is-in .progress-bar { transform: scaleX(1); }
.progress-bar-striped { background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent), var(--brand-gradient); background-size: 1.2rem 1.2rem, 100% 100%; }

/* 17. Team, pricing, accordion, tabs
   ------------------------------------------------------------------------ */
.team-layout1, .team-layout2 {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.team-layout1:hover, .team-layout2:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.team-layout1 > img, .tm-media > img, .team-layout2 > img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; transition: transform var(--t-slow); }
.team-layout1:hover > img, .team-layout1:hover .tm-media > img, .team-layout2:hover > img { transform: scale(1.05); }
.person-desc { padding: 1.4rem 1.5rem 1.5rem; }

/* Team page grid (team.html) */
.team-card { display: flex; flex-direction: column; }
.team-card .tm-media > img { aspect-ratio: 4 / 5; }
.team-card .person-desc { flex: 1; display: flex; flex-direction: column; padding: 1.25rem 1.4rem 1.5rem; }
.team-card .tm-role {
  align-self: flex-start;
  margin: 0 0 .6rem;
  padding: .25rem .65rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-soft);
  border-radius: var(--radius-pill);
}
.team-card .tm-name { margin: 0 0 .5rem; font-size: 1.25rem; }
.team-card .tm-details p {
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Team photo with a glass social bar that slides up on hover */
.tm-media { position: relative; overflow: hidden; }
.tm-media::after {
  content: ""; position: absolute; inset: 40% 0 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(12, 12, 16, .65));
  opacity: 0;
  transition: opacity var(--t-med);
}
.tm-social {
  position: absolute; left: 50%; bottom: 1rem; z-index: 1;
  display: flex; gap: .4rem;
  margin: 0; padding: .4rem;
  list-style: none;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .55);
  transform: translate(-50%, calc(100% + 1.25rem));
  transition: transform .45s var(--ease);
}
.tm-social .social-icon { width: 36px; height: 36px; color: var(--text); background: #fff; }
.tm-social .social-icon:hover, .tm-social .social-icon:focus-visible { color: #fff; }
.tm-social li { opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .35s var(--ease); }
.tm-social li:nth-child(2) { transition-delay: 50ms; }
.tm-social li:nth-child(3) { transition-delay: 100ms; }
.tm-social li:nth-child(4) { transition-delay: 150ms; }
.team-layout1:is(:hover, :focus-within) .tm-media::after { opacity: 1; }
.team-layout1:is(:hover, :focus-within) .tm-social { transform: translate(-50%, 0); }
.team-layout1:is(:hover, :focus-within) .tm-social li { opacity: 1; transform: none; }
/* Touch screens have no hover: keep the bar visible */
@media (hover: none) {
  .tm-media::after { opacity: 1; }
  .tm-social { transform: translate(-50%, 0); }
  .tm-social li { opacity: 1; transform: none; }
}
.tm-name { margin: 0 0 .15rem; font-size: 1.15rem; }
.person-desc > span { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); margin-bottom: .75rem; }
.person-desc > span strong { font-weight: 600; }
.team-layout2 .person-desc > span { margin-bottom: .2rem; }
.tm-details p { font-size: .9rem; margin-bottom: 1rem; }
.person-desc .list-inline { margin: 0; }
.row:has(> [class*="col-"] > .team-layout1), .row:has(> [class*="col-"] > .team-layout2) { row-gap: 1.5rem; }

/* Pricing */
.plan {
  position: relative;
  height: 100%;
  padding: 2.25rem 2rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan h3 { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin-bottom: 1.5rem; font-size: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.plan h3 span { font-size: clamp(2.4rem, 2rem + 1.4vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; text-transform: none; color: var(--text); line-height: 1; }
.plan h3 span::before { content: "$"; font-size: .45em; vertical-align: .9em; margin-right: .1em; color: var(--text-soft); }
.plan ul { text-align: left; margin: 0; display: grid; gap: .6rem; }
.plan ul li { position: relative; padding-left: 1.6rem; font-size: .9375rem; color: var(--text-muted); }
.plan ul li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: .1em; font-size: .75rem; color: var(--brand-600); }

/* Accordion */
.accordion {
  --bs-accordion-border-color: var(--border);
  --bs-accordion-border-radius: var(--radius-md);
  --bs-accordion-inner-border-radius: var(--radius-md);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 4px var(--brand-ring);
  --bs-accordion-active-bg: var(--surface);
  --bs-accordion-active-color: var(--text);
  --bs-accordion-btn-padding-y: 1.05rem;
  display: grid; gap: .75rem;
}
.accordion-item {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.accordion-item:has(.accordion-button:not(.collapsed)) { border-color: rgba(251, 80, 17, .35) !important; box-shadow: var(--shadow-sm); }
.accordion-header { margin: 0; font-size: 1rem; }
.accordion-button { gap: .85rem; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; color: var(--text); border-radius: 0 !important; }
.accordion-button > i {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px;
  font-size: .9rem;
  color: var(--brand-600);
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.accordion-button:not(.collapsed) > i { background: var(--brand-600); color: #fff; }
.accordion-button:not(.collapsed) { box-shadow: none; }
.accordion-button::after {
  background-image: none;
  content: "\2b"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .8rem;
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-muted);
  transition: transform var(--t-med), background-color var(--t-fast), color var(--t-fast);
}
.accordion-button:not(.collapsed)::after { background-image: none; transform: rotate(45deg); background: var(--brand-soft); color: var(--brand-600); }
.accordion-body { padding-top: 0; color: var(--text-muted); font-size: .9375rem; }

/* Tabs — Bootstrap 5.3 .nav-tabs markup, styled as underline tabs */
.nav-tabs {
  --bs-nav-tabs-border-width: 1px;
  --bs-nav-tabs-border-color: var(--border);
  --bs-nav-tabs-link-active-color: var(--text);
  --bs-nav-tabs-link-active-bg: transparent;
  --bs-nav-link-color: var(--text-muted);
  --bs-nav-link-hover-color: var(--text);
  --bs-nav-link-font-weight: 600;
  gap: .25rem;
}
.nav-tabs .nav-link {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .75rem 1rem;
  font-size: .9rem;
  background: none;
  border: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color var(--t-fast), background-color var(--t-fast);
}
/* sliding underline marks the active tab */
.nav-tabs .nav-link::after {
  content: ""; position: absolute; left: .75rem; right: .75rem; bottom: 0;
  height: 2px; border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform var(--t-med);
}
.nav-tabs .nav-link:hover { background: var(--bg-alt); }
.nav-tabs .nav-link:hover::after { transform: scaleX(.35); background: var(--border-strong); }
.nav-tabs .nav-link.active { color: var(--text); background: transparent; }
.nav-tabs .nav-link.active::after { transform: scaleX(1); background: var(--brand); }
.nav-tabs .nav-link:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; box-shadow: none; }
.nav-tabs .nav-link i { color: var(--brand); }
.nav-tabs.nav-justified .nav-item { flex: 1 1 0; }
.nav-tabs.nav-justified .nav-link { width: 100%; }
.tab-content { padding: 1.25rem .25rem 0; }
.tab-content > .tab-pane.fade { transition: opacity .25s ease; }
.tab-content p { margin-bottom: 0; }
.tabs { margin-bottom: 1rem; }
/* Phones: keep tabs on one line and let the bar scroll sideways */
@media (max-width: 575.98px) {
  .nav-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .nav-tabs .nav-item { flex: 0 0 auto; }
  .sidebar .nav-tabs .nav-item { flex: 1 0 auto; }
}

/* 18. Contact, map, 404
   ------------------------------------------------------------------------ */
.map-embed {
  position: relative;
  height: clamp(300px, 40vw, 440px);
  overflow: hidden;
  background: var(--bg-alt);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }
.col-md-9 > .map-embed, .content-area .container .map-embed { border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.container-fluid .map-embed { border-radius: 0; margin-bottom: var(--section-y); }
/* Homepage map: full-bleed strip, flush with the section above and the footer below */
.map-section { margin: 0; padding: 0; line-height: 0; }
.map-section .map-embed { margin: 0; border-radius: 0; box-shadow: none; }
.map-section .map-embed iframe { display: block; }
ul.contact-form-list, .contact-form-list > ul { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.contact-form-list li { display: flex; align-items: flex-start; gap: .75rem; color: var(--text-muted); font-size: .9375rem; }
.contact-form-list li > i, .contact-form-list strong > i, .contact-form-list li > div > i {
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px;
  font-size: .85rem;
  color: var(--brand-600);
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  margin-right: .25rem;
}
.contact-form-list strong { color: var(--text); display: inline-flex; align-items: center; gap: .5rem; }
#contactForm {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
#contactForm .btn { float: none; }
.invalid-feedback { font-size: .8125rem; font-weight: 500; }
.form-control.is-invalid { border-color: #dc3545; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(220, 53, 69, .2); }
.form-control.is-valid:focus { box-shadow: 0 0 0 4px rgba(25, 135, 84, .2); }
.contact-message > :not([hidden]) { margin-top: 1.25rem; }
.contact-message .alert-success {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #b7e4c7;
  border-left: 4px solid #16a34a;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.contact-message .alert-success[hidden] { display: none; }
.contact-message .alert-success:focus { outline: none; }
.contact-message .alert-success.is-shown { animation: fade-up .5s var(--ease) both; }
.thanks-icon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px;
  color: #fff; background: #16a34a;
  border-radius: 50%;
  box-shadow: 0 8px 18px -8px rgba(22, 163, 74, .7);
}
.thanks-title { margin: 0 0 .15rem; font-size: 1.05rem; }
.contact-message .alert-success p { color: var(--text-muted); font-size: .9375rem; }

.error-no {
  font-family: var(--font-heading);
  font-size: clamp(7rem, 4rem + 14vw, 14rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 20px 40px rgba(251, 80, 17, .25));
  animation: float 6s ease-in-out infinite;
}
.error-text { margin: 1rem 0; font-size: var(--fs-h2); }
.error-text strong { color: var(--brand); }
.page-404 .search-form { max-width: 460px; margin-inline: auto; }

/* 19. Element & typography demos
   ------------------------------------------------------------------------ */
.bootstap-grid { row-gap: .5rem; }
.row > .bootstap-grid { margin-inline: .5rem; width: calc(100% - 1rem); } /* row nested directly in a row: undo the doubled negative margin */
.bootstap-grid > [class*="col-"] {
  font-size: .8125rem; font-weight: 600; text-align: center;
  line-height: 2.75rem;
  color: var(--brand-700);
  background: var(--brand-soft);
  background-clip: content-box;
  border-radius: var(--radius-sm);
}
.element-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.tooltip-wrap, .popover-wrap { display: flex; flex-wrap: wrap; gap: .5rem; }
.tooltip { --bs-tooltip-bg: var(--ink); --bs-tooltip-border-radius: var(--radius-xs); }
.popover { --bs-popover-border-color: var(--border); --bs-popover-border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.dropcap::first-letter {
  float: left;
  margin: .3rem .7rem 0 0;
  padding: .55rem .85rem;
  font-family: var(--font-heading); font-size: 2.6rem; font-weight: 800; line-height: 1;
  color: #fff;
  background: var(--brand-gradient);
  border-radius: var(--radius-sm);
}
.highlight { display: flex; flex-wrap: wrap; gap: .4rem; }
.form-element .form-group { margin-bottom: 1rem; }

/* 20. Footer
   ------------------------------------------------------------------------ */
.site-footer {
  position: relative;
  isolation: isolate;
  color: var(--ink-muted);
  background: var(--ink);
  font-size: .9375rem;
  overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; z-index: -1;
  width: 600px; height: 600px; top: -360px; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 80, 17, .18), transparent 65%);
}
.footer-top { padding-block: 4.5rem 3.5rem; }
.site-footer p { color: var(--ink-muted); }
.footer-title { margin-bottom: 1.25rem; font-size: 1rem; color: #fff; letter-spacing: -.01em; }
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: #fff; }

.newsletter {
  display: flex; gap: .35rem;
  padding: .3rem;
  background: var(--ink-2);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-pill);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.newsletter:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.newsletter input { flex: 1; min-width: 0; padding: 0 .9rem; color: #fff; background: transparent; border: 0; outline: 0; font-size: .875rem; }
.newsletter input::placeholder { color: var(--ink-muted); }
.newsletter .btn { box-shadow: none; }

.footer-links { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; gap: .6rem; transition: color var(--t-fast), transform var(--t-fast); }
.footer-links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .55; transition: opacity var(--t-fast); }
.footer-links a:hover { transform: translateX(4px); }
.footer-links a:hover::before { opacity: 1; }

.footer-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.footer-thumbs a { display: block; overflow: hidden; border-radius: var(--radius-sm); }
.footer-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; opacity: .75; transition: opacity var(--t-fast), transform var(--t-med); }
.footer-thumbs a:hover img { opacity: 1; transform: scale(1.1); }

.footer-contact { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.footer-contact li { display: flex; align-items: center; gap: .75rem; }
.footer-contact i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; font-size: .8rem; color: #fff; background: var(--ink-3); border: 1px solid var(--ink-border); border-radius: var(--radius-sm); }

.footer-bottom { padding-block: 1.4rem; border-top: 1px solid var(--ink-border); font-size: .8125rem; }
.footer-social { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.footer-social a {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  font-size: .85rem;
  border: 1px solid var(--ink-border);
  border-radius: 50%;
  transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.footer-social a:hover { color: #fff; background: var(--brand-600); border-color: var(--brand-600); transform: translateY(-3px); }

/* 21. Animations & motion preferences
   ------------------------------------------------------------------------ */
@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Scroll reveal — hidden only when JS is running (html.js) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal, .hero [data-anim] { opacity: 1 !important; transform: none !important; }
  .js .progress-bar { transform: none; }
}

/* 22. Homepage modern sections (index.html)
   ------------------------------------------------------------------------ */

/* Section intro (eyebrow + heading) */
.section-intro { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-intro h2 { margin: .9rem 0 .6rem; font-size: var(--fs-h2); letter-spacing: -.03em; }
.section-intro .lead { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .85rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-soft);
  border: 1px solid rgba(251, 80, 17, .2);
  border-radius: var(--radius-pill);
}

/* Ticker: endless feature strip under the hero */
.ticker {
  position: relative;
  overflow: hidden;
  padding-block: 1.1rem;
  background: var(--brand-gradient);
  color: #fff;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; flex: none; gap: 2.75rem; margin: 0; padding: 0 1.375rem; list-style: none; }
.ticker-list li {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em;
  white-space: nowrap;
}
.ticker-list li i { opacity: .85; }
.ticker-list li::after { content: "✦"; margin-left: 2.75rem; opacity: .55; font-size: .8rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "intro intro image image"
    "resp  colors image image"
    "easy  code  code  fonts";
  gap: 1.25rem;
}
.bento-intro { grid-area: intro; }
.bento-image { grid-area: image; }
.bento-responsive { grid-area: resp; }
.bento-colors { grid-area: colors; }
.bento-easy { grid-area: easy; }
.bento-code { grid-area: code; }
.bento-fonts { grid-area: fonts; }
.bento-tile {
  position: relative;
  display: flex; flex-direction: column;
  margin: 0;
  padding: 1.75rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.bento-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(251, 80, 17, .25); }
.bento-tile h3 { margin: auto 0 .35rem; font-size: 1.1rem; }
.bento-tile p { margin: 0; font-size: .9rem; }
.bento-intro {
  justify-content: center;
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  background: radial-gradient(420px 220px at 100% 0%, rgba(251, 80, 17, .12), transparent 70%), var(--surface);
}
.bento-intro .eyebrow { align-self: flex-start; }
.bento-intro h2 { margin: 1rem 0 .75rem; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); letter-spacing: -.035em; }
.bento-intro p { font-size: 1rem; max-width: 52ch; }
.bento-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.bento-image { padding: 0; min-height: 320px; }
.bento-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 18% center; transition: transform 1.2s var(--ease); }
.bento-image:hover img { transform: scale(1.06); }
.bento-image figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .9rem;
  font-size: .85rem; font-weight: 600; color: var(--text);
  background: rgba(255, 255, 255, .78);
  border-color: rgba(255, 255, 255, .9);
  border-radius: var(--radius-pill);
}
.bento-image figcaption i { color: #f59e0b; }
.bento-code { background: var(--ink); border-color: var(--ink); }
.bento-code h3 { color: #fff; }
.bento-code p { color: var(--ink-muted); }

/* tile mini-visuals */
.bento-visual { margin-bottom: 1.5rem; min-height: 64px; display: flex; align-items: center; }
.devices { gap: .9rem; color: var(--brand-600); }
.devices i { font-size: 1.9rem; transition: transform var(--t-med); }
.devices i:nth-child(2) { font-size: 1.5rem; }
.devices i:nth-child(3) { font-size: 1.15rem; }
.bento-responsive:hover .devices i:nth-child(1) { transform: translateY(-4px); }
.bento-responsive:hover .devices i:nth-child(2) { transform: translateY(-6px); transition-delay: 60ms; }
.bento-responsive:hover .devices i:nth-child(3) { transform: translateY(-8px); transition-delay: 120ms; }
.swatches span {
  width: 38px; height: 38px;
  margin-right: -10px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), margin var(--t-med);
}
.swatches span:nth-child(1) { background: #fb5011; }
.swatches span:nth-child(2) { background: #e0306a; }
.swatches span:nth-child(3) { background: #7c3aed; }
.swatches span:nth-child(4) { background: #0ea5e9; }
.swatches span:nth-child(5) { background: #10b981; }
.bento-colors:hover .swatches span { margin-right: 4px; transform: translateY(-3px); }
.toggles { flex-direction: column; align-items: flex-start; gap: .5rem; }
.toggle { position: relative; width: 40px; height: 22px; border-radius: 99px; background: var(--border-strong); transition: background-color var(--t-med); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--t-med); }
.toggle.is-on { background: var(--brand-600); }
.toggle.is-on::after { transform: translateX(18px); }
.bento-easy:hover .toggle:not(.is-on) { background: var(--brand-600); }
.bento-easy:hover .toggle:not(.is-on)::after { transform: translateX(18px); }
.code-card {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  font-size: .8rem; line-height: 1.7;
  color: #e4e4e7;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-md);
  white-space: pre; overflow-x: auto;
}
.c-tag { color: #fb7185; } .c-attr { color: #fbbf24; } .c-str { color: #86efac; }
.icon-cloud { flex-wrap: wrap; gap: .4rem; }
.icon-cloud i {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  font-size: .85rem;
  color: var(--brand-600);
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  transition: transform var(--t-med), background-color var(--t-med), color var(--t-med);
}
.bento-fonts:hover .icon-cloud i { background: var(--brand-600); color: #fff; }
.bento-fonts:hover .icon-cloud i:nth-child(odd) { transform: rotate(-10deg) scale(1.08); }
.bento-fonts:hover .icon-cloud i:nth-child(even) { transform: rotate(10deg) scale(1.08); }

@media (max-width: 991.98px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "intro intro"
      "image image"
      "resp  colors"
      "easy  fonts"
      "code  code";
  }
}
@media (max-width: 575.98px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "intro" "image" "resp" "colors" "easy" "fonts" "code"; }
  .bento-image { min-height: 220px; }
}

/* Stats strip */
.stats-strip { padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); background: var(--surface); border-block: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .5rem 1rem; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-num {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem);
  line-height: 1; letter-spacing: -.04em;
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
@media (max-width: 767.98px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .stat:nth-child(3) { border-left: 0; }
}

/* Process steps */
.process {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin: 0; padding: 0; list-style: none;
  counter-reset: none;
}
/* dashed line joining the step icons */
.process::before {
  content: ""; position: absolute; top: 3.35rem; left: 16%; right: 16%;
  border-top: 2px dashed var(--border-strong);
}
.process-step {
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.process-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(251, 80, 17, .25); }
.process-num {
  position: absolute; top: 1rem; right: 1.25rem;
  font-family: var(--font-heading); font-weight: 800; font-size: 2.4rem; line-height: 1;
  color: var(--bg-alt);
  -webkit-text-stroke: 1px var(--border-strong);
}
.process-icon {
  position: relative;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 1.25rem;
  font-size: 1.4rem;
  color: #fff;
  background: var(--brand-gradient);
  border-radius: 20px;
  box-shadow: 0 0 0 8px var(--surface), var(--shadow-brand);
  transition: transform var(--t-med);
}
.process-step:hover .process-icon { transform: rotate(-8deg) scale(1.06); }
.process-step h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.process-step p { margin: 0; font-size: .9375rem; }
@media (max-width: 767.98px) {
  .process { grid-template-columns: 1fr; }
  .process::before { top: 3rem; bottom: 3rem; left: 50%; right: auto; border-top: 0; border-left: 2px dashed var(--border-strong); }
}

/* Testimonial wall: two rows gliding in opposite directions */
.testimonial-wall { overflow: hidden; }
.wall-rows {
  display: grid; gap: 1.25rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.wall-row { display: flex; width: max-content; }
.wall-track { display: flex; flex: none; gap: 1.25rem; padding-right: 1.25rem; animation: ticker 55s linear infinite; }
.wall-row.is-reverse .wall-track { animation-direction: reverse; animation-duration: 62s; }
.wall-row:hover .wall-track { animation-play-state: paused; }
.quote-card {
  flex: none;
  width: 340px;
  margin: 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--t-med), box-shadow var(--t-med);
}
.quote-card:hover { border-color: rgba(251, 80, 17, .3); box-shadow: var(--shadow-md); }
.quote-card .stars { margin-bottom: .75rem; }
.quote-card blockquote {
  margin: 0 0 1.25rem; padding: 0;
  font-size: .95rem; font-style: normal; line-height: 1.65;
  color: var(--text);
  background: none; border: 0; box-shadow: none;
}
.quote-card blockquote::before { display: none; }
.quote-card figcaption { display: flex; align-items: center; gap: .75rem; }
.quote-card figcaption strong { display: block; font-size: .9rem; }
.quote-card figcaption small { color: var(--text-soft); font-size: .8rem; }
.quote-avatar {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px;
  font-family: var(--font-heading); font-weight: 700; color: #fff;
  background: var(--brand-gradient);
  border-radius: 50%;
}
@media (max-width: 575.98px) { .quote-card { width: 280px; } }

/* Respect reduced motion: stop the marquees and let them wrap instead */
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .wall-track { animation: none !important; }
  .ticker-track { width: auto; }
  .ticker-list[aria-hidden="true"], .wall-track[aria-hidden="true"] { display: none; }
  .ticker-list { flex-wrap: wrap; justify-content: center; row-gap: .75rem; }
  .wall-row { width: auto; overflow-x: auto; }
}

/* 23. Tabbed light hero (home-2)
   ------------------------------------------------------------------------ */
.hero-tabs {
  color: var(--text);
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(251, 80, 17, .12), transparent 70%),
    radial-gradient(600px 380px at 0% 100%, rgba(224, 48, 106, .08), transparent 70%),
    var(--bg);
}
.hero-tabs .hero-blob { opacity: .18; }
.hero-tabs .hero-slide { min-height: auto; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) 2rem; }
.hero-tabs .hero-title { color: var(--text); }
.hero-tabs .hero-title em { color: var(--text-soft); }
.hero-tabs .hero-lead { color: var(--text-muted); }
.hero-tabs .hero-eyebrow { color: var(--brand-700); background: var(--brand-soft); border-color: rgba(251, 80, 17, .25); }

.ht-checks { display: grid; gap: .65rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.ht-checks li {
  display: flex; align-items: center; gap: .75rem;
  font-weight: 600; color: var(--text);
}
.ht-checks li i {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px;
  color: var(--brand-600);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
}

/* photo card with floating glass details */
.ht-media {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}
.ht-media > img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.ht-media::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; z-index: -1;
  border: 2px dashed rgba(251, 80, 17, .35);
  border-radius: 36px;
}
.hero-tabs .swiper-slide-active .ht-media > img { animation: ht-zoom 8s ease-out both; }
@keyframes ht-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.ht-media { overflow: visible; }
.ht-media > img { overflow: hidden; }
.ht-float {
  position: absolute;
  display: flex; align-items: center; gap: .7rem;
  padding: .75rem 1rem;
  font-size: .8rem; line-height: 1.3;
  color: var(--text-muted);
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.ht-float strong { display: block; font-family: var(--font-heading); font-size: 1rem; color: var(--text); }
.ht-float-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; color: #fff; background: var(--brand-gradient); }
.ht-float-tl { top: 1.25rem; left: -1.5rem; }
.ht-float-br { bottom: 1.25rem; right: -1.5rem; flex-direction: column; align-items: flex-start; gap: .3rem; animation-delay: -3s; }
.ht-float-center { left: 50%; top: 50%; padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: translate(-50%, -50%); animation: none; }
.ht-play {
  display: grid; place-items: center;
  width: 84px; height: 84px;
  font-size: 1.6rem; color: #fff;
  background: var(--brand-gradient);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, .35), var(--shadow-brand);
  animation: ht-pulse 2.2s ease-out infinite;
}
.ht-play i { margin-left: 5px; }
@keyframes ht-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55), var(--shadow-brand); } 100% { box-shadow: 0 0 0 26px rgba(255, 255, 255, 0), var(--shadow-brand); } }
/* mini animation timeline card */
.ht-timeline { width: 220px; gap: .45rem; }
.ht-tl-row { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: .5rem; width: 100%; }
.ht-tl-row b { font-size: .72rem; font-weight: 600; color: var(--text-muted); }
.ht-tl-row i { position: relative; height: 8px; border-radius: 99px; background: var(--bg-alt); }
.ht-tl-row i::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--x); width: var(--w);
  border-radius: inherit; background: var(--brand-gradient);
}

/* numbered tabs with autoplay progress */
.ht-nav { position: relative; z-index: 5; display: flex; align-items: center; gap: 1.5rem; padding-bottom: 2.5rem; }
.ht-tabs.hero-pagination { position: static !important; flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; width: auto !important; transform: none; }
.ht-tabs .swiper-pagination-bullet {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .1rem .6rem;
  width: auto; height: auto; margin: 0 !important;
  padding: .75rem 0 0;
  text-align: left;
  background: none; border: 0; border-radius: 0;
  opacity: 1;
  cursor: pointer;
}
.ht-num { font-family: var(--font-heading); font-weight: 800; font-size: .85rem; color: var(--text-soft); transition: color var(--t-fast); }
.ht-label { font-size: .85rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--t-fast); }
.ht-bar { grid-column: 1 / -1; order: -1; height: 3px; margin-bottom: .55rem; border-radius: 3px; background: var(--border); overflow: hidden; }
.ht-bar span { display: block; height: 100%; background: var(--brand-gradient); transform-origin: left; transform: scaleX(0); }
.ht-tabs .swiper-pagination-bullet:hover .ht-label { color: var(--text); }
.ht-tabs .swiper-pagination-bullet-active .ht-num { color: var(--brand-600); }
.ht-tabs .swiper-pagination-bullet-active .ht-label { color: var(--text); }
.ht-tabs .swiper-pagination-bullet-active .ht-bar span { transform: scaleX(var(--hero-progress, 0)); }
.ht-arrows { display: flex; gap: .5rem; }
.hero-tabs .hero-arrow { color: var(--text); background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-xs); }
.hero-tabs .hero-arrow:hover { color: #fff; background: var(--brand-600); border-color: var(--brand-600); }
.hero-tabs .hero-progress { display: none; }

@media (max-width: 991.98px) {
  .hero-tabs .hero-copy { text-align: left; margin-inline: 0; }
  .hero-tabs .hero-actions { justify-content: flex-start; }
  .hero-tabs .hero-lead { margin-inline: 0; }
  .ht-media { max-width: 560px; margin-inline: auto; }
  .ht-float-tl { left: .75rem; }
  .ht-float-br { right: .75rem; }
  .ht-tabs.hero-pagination { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .ht-label { display: none; }
  .ht-tabs.hero-pagination { gap: .5rem; }
  .ht-media { aspect-ratio: 4 / 3.4; border-radius: 24px; }
  .ht-media::before { display: none; }
  .ht-float { padding: .55rem .75rem; font-size: .72rem; }
  .ht-float strong { font-size: .85rem; }
  .ht-timeline { width: 180px; }
}

/* 24. Self-hosted media in blog & portfolio
   ------------------------------------------------------------------------ */
.media-video { background: #000; }
.media-video video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.post-card > .media-video { border-radius: 0; }
.portfolio-single > .media-video { margin-bottom: 2.5rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }

.audio-card {
  display: grid; gap: 1rem;
  padding: 1.5rem;
  color: #fff;
  background: radial-gradient(320px 200px at 100% 0%, rgba(251, 80, 17, .55), transparent 70%), var(--ink);
}
.audio-head { display: flex; align-items: center; gap: .85rem; }
.audio-art {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px;
  font-size: 1.25rem;
  background: var(--brand-gradient);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-brand);
}
.audio-meta { display: grid; line-height: 1.3; }
.audio-meta strong { font-family: var(--font-heading); font-size: 1.05rem; }
.audio-meta span { font-size: .8rem; color: var(--ink-muted); }
/* decorative waveform; bars bounce while the track plays */
.audio-wave { display: flex; align-items: center; gap: 3px; height: 44px; }
.audio-wave i { flex: 1; height: 30%; border-radius: 3px; background: rgba(255, 255, 255, .25); transition: background-color var(--t-med); }
.audio-wave i:nth-child(3n) { height: 70%; }
.audio-wave i:nth-child(4n+1) { height: 50%; }
.audio-wave i:nth-child(5n+2) { height: 90%; }
.audio-wave i:nth-child(7n) { height: 40%; }
.audio-card.is-playing .audio-wave i { background: var(--brand); animation: wave 1.1s ease-in-out infinite alternate; }
.audio-card.is-playing .audio-wave i:nth-child(odd) { animation-delay: -.4s; }
.audio-card.is-playing .audio-wave i:nth-child(3n) { animation-delay: -.8s; }
@keyframes wave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.audio-card audio { width: 100%; height: 40px; border-radius: var(--radius-pill); }
.audio-credit { font-size: .72rem; color: var(--ink-muted); }

/* Contact sidebar (contact-2 / contact-3) */
.sidebar-box.no-top-padding { padding-top: 1.5rem !important; }
.sidebar-box .touch-list:last-child { margin-bottom: 0; }
.touch-list { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
.touch-list a { --sc: var(--brand-600); font-size: .9rem; }
.touch-list a:hover, .touch-list a:focus-visible { color: #fff; background: var(--sc); box-shadow: 0 8px 16px -8px var(--sc); }
.touch-list a[aria-label="Facebook"] { --sc: #1877f2; }
.touch-list a[aria-label="Twitter"] { --sc: #1d9bf0; }
.touch-list a[aria-label="Google Plus"] { --sc: #db4437; }
.touch-list a[aria-label="Pinterest"] { --sc: #e60023; }
.touch-list a[aria-label="LinkedIn"] { --sc: #0a66c2; }
.touch-list a[aria-label="RSS"] { --sc: #f26522; }
.touch-list a[aria-label="Vimeo"] { --sc: #1ab7ea; }
.touch-list a[aria-label="YouTube"] { --sc: #ff0000; }
.touch-list a[aria-label="Android"] { --sc: #3ddc84; }
.touch-list a[aria-label="Dribbble"] { --sc: #ea4c89; }
.touch-list a[aria-label="Flickr"] { --sc: #ff0084; }
.touch-list a[aria-label="Xing"] { --sc: #006567; }
.touch-list a[aria-label="Skype"] { --sc: #00aff0; }
.touch-list a[aria-label="StumbleUpon"] { --sc: #eb4924; }
.touch-list a[aria-label="Reddit"] { --sc: #ff4500; }
.touch-list a[aria-label="Tumblr"] { --sc: #36465d; }
.sidebar-box h4 { display: flex; align-items: center; gap: .6rem; }
.sidebar-box h4::before { content: ""; width: 4px; height: 1em; border-radius: 4px; background: var(--brand-gradient); }
.sidebar-box > p:last-of-type { margin-bottom: .75rem; }
.sidebar-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; }
.sidebar-link i { transition: transform var(--t-fast); }
.sidebar-link:hover i { transform: translateX(3px); }

/* 25. Services: "Core features of ForX" band
   ------------------------------------------------------------------------ */
.core-features {
  margin-block: var(--section-y);
  padding-block: var(--section-y);
  background:
    radial-gradient(600px 360px at 100% 0%, rgba(251, 80, 17, .08), transparent 70%),
    var(--bg-alt);
}
.core-title { margin: .9rem 0 .6rem; font-size: var(--fs-h2); letter-spacing: -.03em; }
.core-features .lead { margin-bottom: 1.75rem; }

.core-media { position: relative; max-width: 420px; margin-inline: auto; }
.core-media::before {
  content: ""; position: absolute; inset: -16px 16px 16px -16px; z-index: 0;
  border: 2px dashed rgba(251, 80, 17, .35);
  border-radius: 36px;
}
.core-media img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}
.core-badge {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: .7rem;
  padding: .75rem 1rem;
  font-size: .8rem; line-height: 1.3; color: var(--text-muted);
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.core-badge strong { display: block; font-family: var(--font-heading); font-size: 1rem; color: var(--text); }
.core-badge-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; color: #fff; background: var(--brand-gradient); }
.core-badge-top { top: 1.5rem; right: -1.5rem; }
.core-badge-bottom { bottom: 1.75rem; left: -1.5rem; flex-direction: column; align-items: flex-start; gap: .3rem; animation-delay: -3s; }

.core-card {
  height: 100%;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.core-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(251, 80, 17, .25); }
.core-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  color: var(--brand-600);
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  transition: background-color var(--t-med), color var(--t-med), transform var(--t-med);
}
.core-card:hover .core-icon { background: var(--brand-600); color: #fff; transform: rotate(-8deg); }
.core-card h3 { margin-bottom: .4rem; font-size: 1.1rem; }
.core-card p { margin: 0; font-size: .9rem; }
.core-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

@media (max-width: 991.98px) {
  .core-badge-top { right: .75rem; }
  .core-badge-bottom { left: .75rem; }
}
@media (max-width: 575.98px) {
  .core-media { max-width: 320px; }
  .core-media::before { display: none; }
  .core-badge { padding: .55rem .75rem; font-size: .72rem; }
  .core-badge strong { font-size: .88rem; }
}

/* 26. Creative image hover (portfolio tiles + all image overlays)
   A gradient "wipes" in from the bottom-right corner, the category and
   title slide up, and the round button spins into place.
   ------------------------------------------------------------------------ */
.image-wrapper:hover > img, .image-wrapper:focus-within > img { transform: scale(1.08); filter: saturate(1.15); }
.image-overlay {
  display: flex; align-items: flex-end; justify-content: stretch;
  opacity: 1;
  background:
    linear-gradient(200deg, rgba(251, 80, 17, .38) 0%, transparent 45%),
    linear-gradient(180deg, transparent 25%, rgba(12, 12, 16, .9) 100%);
  clip-path: circle(0% at 100% 100%);
  transition: clip-path .65s cubic-bezier(.65, 0, .35, 1);
}
.image-wrapper:hover .image-overlay,
.image-wrapper:focus-within .image-overlay { clip-path: circle(150% at 100% 100%); }
.image-overlay-caption-alignCenter { width: 100%; }
.image-overlay .control-icon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .15rem 1rem;
  padding: 1.25rem 1.25rem 1.25rem 1.4rem;
  text-align: left;
}
.control-icon .overlay-cat {
  grid-column: 1;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #ffb38f;
}
.image-overlay .control-icon :is(h3, h4, h5) {
  grid-column: 1;
  margin: 0;
  font-size: 1.2rem; line-height: 1.25;
  color: #fff;
  flex-basis: auto;
}
.control-icon .overlay-cat,
.image-overlay .control-icon :is(h3, h4, h5) {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.control-icon .overlay-cat { transition-delay: .15s; }
.image-overlay .control-icon :is(h3, h4, h5) { transition-delay: .22s; }
.image-wrapper:hover .control-icon .overlay-cat,
.image-wrapper:hover .image-overlay .control-icon :is(h3, h4, h5),
.image-wrapper:focus-within .control-icon .overlay-cat,
.image-wrapper:focus-within .image-overlay .control-icon :is(h3, h4, h5) { opacity: 1; transform: none; }

/* buttons sit bottom-right; several buttons stack */
.image-overlay .control-icon .overlay-btn {
  grid-column: 2;
  position: relative; z-index: 2;
  width: 46px; height: 46px;
  color: var(--text);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .35s var(--ease) .25s, transform .45s var(--ease) .25s, background-color var(--t-fast), color var(--t-fast);
}
.image-wrapper:hover .control-icon .overlay-btn,
.image-wrapper:focus-within .control-icon .overlay-btn { opacity: 1; transform: none; }
.image-overlay .control-icon .overlay-btn:hover { background: #fff; color: var(--brand-600); }
.control-icon:has(.overlay-cat, h3, h4) .overlay-btn:first-of-type { grid-row: 1 / span 2; }

/* the main "go" button: brand gradient, arrow spins in; its ::after makes
   the whole tile clickable (no transform on it, so the ::after can fill the overlay) */
.image-overlay .control-icon .overlay-go {
  position: static;
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: var(--shadow-brand);
  transform: none;
  transition: opacity .35s var(--ease) .25s, background-color var(--t-fast);
}
.overlay-go i { transform: rotate(-45deg) scale(.7); transition: transform .5s var(--ease) .3s; }
.image-wrapper:hover .overlay-go i, .image-wrapper:focus-within .overlay-go i { transform: none; }
.image-overlay .control-icon .overlay-go:hover { color: #fff; filter: brightness(1.08); }
.overlay-go:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.image-wrapper:has(.overlay-go) { cursor: pointer; }
/* a second (lightbox) button stays clickable above the stretched link */
.control-icon .overlay-go ~ .overlay-btn, .control-icon .js-gallery { z-index: 3; }

/* touch screens: no hover, so keep titles readable all the time */
@media (hover: none) {
  .image-overlay { clip-path: none; background: linear-gradient(180deg, transparent 45%, rgba(12, 12, 16, .85) 100%); }
  .control-icon .overlay-cat,
  .image-overlay .control-icon :is(h3, h4, h5),
  .image-overlay .control-icon .overlay-btn { opacity: 1; transform: none; }
  .overlay-go i { transform: none; }
  .image-overlay .control-icon .overlay-btn { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .image-overlay { transition: none; }
}
.page-blog-classic-full .thumb-cta { display: none; }

/* 27. About Us (about-us.html)
   ------------------------------------------------------------------------ */
.about-intro, .about-story, .about-team { padding-block: var(--section-y); }
.about-values { padding-bottom: var(--section-y); }
.about-title { margin: 1rem 0 1rem; font-size: clamp(2rem, 1.5rem + 2.2vw, 3.2rem); letter-spacing: -.035em; line-height: 1.08; }
.about-subtitle { margin: .9rem 0 1.75rem; font-size: var(--fs-h2); letter-spacing: -.03em; }
.about-intro .lead { color: var(--text); }
.about-points { display: grid; gap: .6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.about-points li { display: flex; align-items: center; gap: .7rem; font-weight: 500; color: var(--text); }
.about-points i { display: grid; place-items: center; flex: none; width: 24px; height: 24px; font-size: .7rem; color: #fff; background: var(--brand-gradient); border-radius: 50%; }
.about-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* photo collage */
.about-collage { position: relative; padding: 0 0 3.5rem 3rem; }
.collage-main { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.collage-side {
  position: absolute; left: 0; bottom: 0;
  width: 46%; aspect-ratio: 1; object-fit: cover;
  border: 6px solid var(--bg);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-med);
}
.about-collage:hover .collage-side { transform: translateY(-6px) rotate(-2deg); }
.collage-badge {
  position: absolute; right: -1rem; bottom: 1.5rem;
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem;
  color: #fff;
  background: var(--brand-gradient);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-brand);
  animation: float 6s ease-in-out infinite;
}
.collage-badge strong { font-family: var(--font-heading); font-size: 2.2rem; line-height: 1; }
.collage-badge span { font-size: .8rem; line-height: 1.3; opacity: .95; }

/* mission / vision / values */
.value-card {
  height: 100%;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(251, 80, 17, .25); }
.value-icon {
  display: grid; place-items: center;
  width: 54px; height: 54px; margin-bottom: 1.25rem;
  font-size: 1.3rem; color: #fff;
  background: var(--brand-gradient);
  border-radius: 16px;
  box-shadow: var(--shadow-brand);
  transition: transform var(--t-med);
}
.value-card:hover .value-icon { transform: rotate(-8deg) scale(1.05); }
.value-card h3 { margin-bottom: .5rem; font-size: 1.2rem; }
.value-card p { margin: 0; }

/* timeline */
.timeline { position: relative; margin: 0; padding: 0 0 0 2rem; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 7px; top: .4rem; bottom: .4rem; width: 2px; background: linear-gradient(var(--brand), rgba(251, 80, 17, .1)); }
.tl-item { position: relative; padding-bottom: 1.75rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: calc(-2rem + 1px); top: .3rem;
  width: 14px; height: 14px;
  background: var(--surface);
  border: 3px solid var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--brand-soft);
}
.tl-year { display: inline-block; margin-bottom: .35rem; padding: .2rem .65rem; font-size: .75rem; font-weight: 700; color: var(--brand-700); background: var(--brand-soft); border-radius: var(--radius-pill); }
.tl-item h3 { margin-bottom: .3rem; font-size: 1.1rem; }
.tl-item p { margin: 0; font-size: .95rem; }

/* skills */
.skills { display: grid; gap: 1.1rem; }
.skill-head { display: flex; justify-content: space-between; margin-bottom: .45rem; font-size: .9rem; font-weight: 600; color: var(--text); }
.skills .progress { --bs-progress-height: .6rem; }
.skills .progress-bar { font-size: 0; }
.about-video { margin-top: 2.25rem; }
.about-video .media-video { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.about-video-caption { display: flex; align-items: center; gap: .5rem; margin: .75rem 0 0; font-size: .875rem; color: var(--text-muted); }
.about-video-caption i { color: var(--brand); }

.about-story { background: var(--bg-alt); }

@media (max-width: 991.98px) {
  .about-collage { max-width: 560px; margin: 1rem auto 0; }
  .collage-badge { right: .5rem; }
}
@media (max-width: 575.98px) {
  .about-collage { padding: 0 0 2.5rem 1.5rem; }
  .collage-badge { padding: .7rem .9rem; }
  .collage-badge strong { font-size: 1.6rem; }
}

/* 28. Services (services.html)
   ------------------------------------------------------------------------ */
.svc-intro, .svc-list, .svc-process, .svc-faq { padding-block: var(--section-y); }
.svc-list { padding-top: 0; }
.svc-core { margin-block: 0; }
.svc-video { position: relative; }
.svc-video .media-video { border-radius: 28px; box-shadow: var(--shadow-lg); }
.svc-video::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; z-index: -1;
  border: 2px dashed rgba(251, 80, 17, .35); border-radius: 32px;
}
.svc-video-badge {
  position: absolute; left: -1rem; top: -1.25rem; z-index: 2;
  display: flex; align-items: center; gap: .65rem;
  padding: .75rem 1rem;
  font-size: .8rem; line-height: 1.3; color: var(--text-muted);
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.svc-video-badge i { font-size: 1.6rem; color: var(--brand-600); }
.svc-video-badge strong { display: block; font-family: var(--font-heading); font-size: .95rem; color: var(--text); }

/* service cards */
.svc-card {
  position: relative;
  height: 100%;
  padding: 2rem 1.75rem 1.75rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
/* gradient wash that rises from the bottom on hover */
.svc-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(420px 220px at 100% 100%, rgba(251, 80, 17, .1), transparent 70%);
  opacity: 0; transition: opacity var(--t-med);
}
.svc-card > * { position: relative; z-index: 1; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(251, 80, 17, .3); }
.svc-card:hover::before { opacity: 1; }
.svc-num { position: absolute; top: 1.25rem; right: 1.5rem; font-family: var(--font-heading); font-weight: 800; font-size: 2.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--border-strong); transition: -webkit-text-stroke-color var(--t-med); }
.svc-card:hover .svc-num { -webkit-text-stroke-color: var(--brand); }
.svc-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 1.4rem;
  font-size: 1.35rem; color: var(--brand-600);
  background: var(--brand-soft);
  border-radius: 16px;
  transition: background-color var(--t-med), color var(--t-med), transform var(--t-med);
}
.svc-card:hover .svc-icon { color: #fff; background: var(--brand-gradient); transform: rotate(-8deg) scale(1.05); box-shadow: var(--shadow-brand); }
.svc-card h3 { margin-bottom: .55rem; font-size: 1.2rem; }
.svc-card p { margin-bottom: 1.25rem; font-size: .95rem; }
.svc-link { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; }
.svc-link i { transition: transform var(--t-fast); }
.svc-card:hover .svc-link i { transform: translateX(4px); }

/* four-step process variant */
.process-4 { grid-template-columns: repeat(4, 1fr); }
.process-4::before { left: 12%; right: 12%; }
@media (max-width: 991.98px) { .process-4 { grid-template-columns: repeat(2, 1fr); } .process-4::before { display: none; } }
@media (max-width: 575.98px) { .process-4 { grid-template-columns: 1fr; } }

/* FAQ + quote */
.svc-faq { background: var(--bg-alt); }
.svc-faq .accordion-button { font-size: .98rem; }
.svc-quote {
  margin: 0 0 1.25rem;
  padding: 1.75rem;
  color: #fff;
  background: radial-gradient(360px 200px at 100% 0%, rgba(251, 80, 17, .55), transparent 70%), var(--ink);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.svc-quote .stars { margin-bottom: .9rem; }
.svc-quote blockquote {
  margin: 0 0 1.25rem; padding: 0;
  font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; font-style: normal; line-height: 1.5;
  color: #fff; background: none; border: 0; box-shadow: none;
}
.svc-quote blockquote::before { display: none; }
.svc-quote figcaption { display: flex; align-items: center; gap: .75rem; }
.svc-quote figcaption strong { display: block; color: #fff; }
.svc-quote figcaption small { color: var(--ink-muted); }
.svc-help { padding: 1.5rem 1.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); }
.svc-help h3 { margin-bottom: .35rem; font-size: 1.1rem; }
.svc-help p { margin-bottom: 1rem; }

@media (max-width: 991.98px) {
  .svc-video { max-width: 640px; margin: 1rem auto 1.5rem; }
  .svc-video-badge { left: .75rem; top: -1rem; }
}
@media (max-width: 575.98px) { .svc-video::before { display: none; } }

/* 29. Pricing (price.html)
   ------------------------------------------------------------------------ */
.price-intro, .price-compare, .price-faq { padding-block: var(--section-y); }
.price-compare { background: var(--bg-alt); }

/* billing switch: pure CSS (radio + :has) */
.billing-toggle {
  position: relative;
  display: flex; width: max-content;
  margin: -1rem auto 3rem; padding: .3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.billing-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.billing-toggle label {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0; padding: .6rem 1.25rem;
  font-size: .9rem; font-weight: 600; color: var(--text-muted);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.billing-toggle input:checked + label { color: #fff; background: var(--ink); }
.billing-toggle input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }
.save-tag { padding: .15rem .5rem; font-size: .7rem; font-weight: 700; color: var(--brand-700); background: var(--brand-soft); border-radius: var(--radius-pill); }
.price-y { display: none; }
.pricing-page:has(#bill-yearly:checked) .price-m { display: none; }
.pricing-page:has(#bill-yearly:checked) .price-y { display: inline; }

/* plan cards */
.price-card {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(251, 80, 17, .25); }
.price-card.is-popular {
  color: #fff;
  background: radial-gradient(420px 240px at 100% 0%, rgba(251, 80, 17, .5), transparent 70%), var(--ink);
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: .3rem .9rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: #fff; background: var(--brand-gradient);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-brand);
}
.price-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 1.1rem;
  font-size: 1.15rem; color: var(--brand-600);
  background: var(--brand-soft);
  border-radius: 14px;
}
.is-popular .price-icon { color: #fff; background: var(--brand-gradient); }
.price-card h3 { margin-bottom: .35rem; font-size: 1.25rem; }
.is-popular h3 { color: #fff; }
.price-desc { min-height: 3.4em; margin-bottom: 1.25rem; font-size: .9rem; }
.is-popular .price-desc, .is-popular .price-note { color: var(--ink-muted); }
.price-amount { display: flex; align-items: flex-start; gap: .15rem; line-height: 1; }
.price-amount .currency { margin-top: .4rem; font-size: 1.2rem; font-weight: 700; color: var(--text-soft); }
.price-amount .amount { font-family: var(--font-heading); font-size: 3.2rem; font-weight: 800; letter-spacing: -.04em; color: var(--text); }
.price-amount .per { align-self: flex-end; margin-bottom: .35rem; font-size: .9rem; color: var(--text-soft); }
.is-popular .price-amount .amount { color: #fff; }
.is-popular .price-amount .currency, .is-popular .price-amount .per { color: var(--ink-muted); }
.price-note { margin: .5rem 0 1.5rem; font-size: .8rem; color: var(--text-soft); }
.price-card .btn { box-shadow: none; }
.is-popular .btn-brand { box-shadow: var(--shadow-brand); }
.price-features { display: grid; gap: .65rem; margin: 1.5rem 0 0; padding: 1.5rem 0 0; list-style: none; border-top: 1px solid var(--border); }
.is-popular .price-features { border-color: var(--ink-border); }
.price-features li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.is-popular .price-features li { color: var(--ink-text); }
.price-features i {
  display: grid; place-items: center; flex: none;
  width: 20px; height: 20px; font-size: .6rem;
  color: var(--brand-600); background: var(--brand-soft); border-radius: 50%;
}
.is-popular .price-features i { color: #fff; background: rgba(251, 80, 17, .8); }
.price-guarantee { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 2.5rem 0 0; font-size: .9rem; color: var(--text-muted); }
.price-guarantee i { color: var(--brand-600); }
@media (min-width: 1200px) { .price-card.is-popular { transform: translateY(-12px); } .price-card.is-popular:hover { transform: translateY(-18px); } }

/* comparison table */
.compare-wrap { position: relative; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .92rem; }
.compare-table th, .compare-table td { padding: 1rem 1.25rem; text-align: center; border-bottom: 1px solid var(--border); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table th[scope="row"] { text-align: left; font-weight: 600; color: var(--text); }
.compare-table thead th { font-family: var(--font-heading); font-size: 1rem; color: var(--text); background: var(--bg); }
.compare-table thead th:first-child { text-align: left; color: var(--text-soft); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.compare-table thead th.is-popular { color: #fff; background: var(--ink); }
.compare-table td:nth-child(3) { background: rgba(251, 80, 17, .04); }
.compare-table tbody tr { transition: background-color var(--t-fast); }
.compare-table tbody tr:hover { background: var(--bg-alt); }
.compare-table .yes { color: #16a34a; font-size: 1.1rem; }
.compare-table .no { color: var(--border-strong); }

/* 30. About Me (about-me.html)
   ------------------------------------------------------------------------ */
.about-me-page .svc-list { padding-top: var(--section-y); }
.me-work { padding-top: var(--section-y); }
.me-photo { position: relative; max-width: 440px; margin-inline: auto; }
.me-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: 0;
  background: var(--brand-gradient);
  border-radius: 32px;
  opacity: .9;
}
.me-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% center; border-radius: 32px; box-shadow: var(--shadow-lg); }
.me-badge {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: .7rem;
  padding: .8rem 1.1rem;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.me-badge strong { font-family: var(--font-heading); font-size: 1.8rem; line-height: 1; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.me-badge span { font-size: .78rem; line-height: 1.25; color: var(--text-muted); }
.me-badge-top { top: 2rem; left: -1.5rem; }
.me-badge-bottom { bottom: 2rem; right: -1.75rem; animation-delay: -3s; }
.me-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.25rem; font-size: .9rem; color: var(--text-muted); }
.me-meta i { color: var(--brand-600); margin-right: .35rem; }
.me-meta span:last-child i { color: #16a34a; }
.me-social { display: flex; gap: .5rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.me-social a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.me-social a:hover { color: #fff; background: var(--brand-600); border-color: var(--brand-600); transform: translateY(-3px); }
@media (max-width: 991.98px) {
  .me-photo { max-width: 360px; margin-bottom: 1rem; }
  .me-badge-top { left: -.5rem; }
  .me-badge-bottom { right: -.5rem; }
}
@media (max-width: 575.98px) {
  .me-photo { max-width: 290px; }
  .me-photo::before { inset: 12px -12px -12px 12px; }
  .me-badge { padding: .6rem .8rem; }
  .me-badge strong { font-size: 1.4rem; }
}

/* Blog cards without a bottom "Read more": no trailing space under the excerpt */
.post-card .blog-details > :last-child,
.post-card .blog-details > .blog-desc:last-child p:last-child { margin-bottom: 0; }

/* Pagination in its own block after a portfolio grid (portfolio-text pages): same 40px gap as the other grids */
.container:has(.work-item) + .container .pagination { margin-top: 2.5rem; }
.container > .row:has(> .work-item):last-child { margin-bottom: 0; }

/* 31. Tabs showcase (features-tabs.html)
   ------------------------------------------------------------------------ */
.sidebar-box > .list-unstyled > li > a.is-current { color: var(--brand-700); font-weight: 600; }
.sidebar-box > .list-unstyled > li > a.is-current::after { color: var(--brand); }
.tabs-intro { margin-bottom: 2rem; }
.tabs-intro .about-subtitle { margin-bottom: .75rem; }
.demo-card {
  margin-bottom: 1.5rem;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
}
.demo-card:last-child { margin-bottom: 0; }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.demo-head h3 { margin: 0; font-size: 1.15rem; }
.demo-tag { padding: .25rem .7rem; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-soft); border-radius: var(--radius-pill); }
.demo-note { margin: .35rem 0 1.25rem; font-size: .9rem; color: var(--text-soft); }
.demo-card .tabs { margin-bottom: 0; }

/* segmented pills */
.seg-pills {
  display: inline-flex; flex-wrap: nowrap; gap: .25rem;
  padding: .3rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.seg-pills .nav-link {
  padding: .55rem 1.2rem;
  font-size: .9rem; font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
}
.seg-pills .nav-link:hover { color: var(--text); }
.seg-pills .nav-link.active { color: #fff; background: var(--brand-gradient); box-shadow: var(--shadow-brand); }
.tabs-pills .tab-content { padding-top: 1.25rem; }

/* vertical tabs with preview */
.vtabs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.25rem; }
.vt-nav { flex-direction: column; gap: .5rem; }
.vt-nav .nav-link {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1rem;
  text-align: left;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.vt-nav .nav-link:hover { border-color: var(--border-strong); transform: translateX(3px); }
.vt-nav .nav-link strong { display: block; color: var(--text); font-size: .95rem; }
.vt-nav .nav-link small { font-size: .75rem; color: var(--text-soft); }
.vt-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; color: var(--brand-600); background: var(--brand-soft); transition: background-color var(--t-fast), color var(--t-fast); }
.vt-nav .nav-link.active { color: var(--text); background: var(--surface); border-color: rgba(251, 80, 17, .45); box-shadow: var(--shadow-sm); }
.vt-nav .nav-link.active .vt-icon { color: #fff; background: var(--brand-gradient); }
.vt-content { padding: 0; }
.vt-panel { overflow: hidden; height: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.vt-panel img { width: 100%; height: 180px; object-fit: cover; }
.vt-body { padding: 1.25rem 1.4rem 1.4rem; }
.vt-body h4 { margin-bottom: .4rem; font-size: 1.1rem; }
.vt-body p { margin-bottom: .9rem; font-size: .92rem; }
.vt-body ul { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.vt-body li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--text); }
.vt-body li i { display: grid; place-items: center; width: 20px; height: 20px; font-size: .6rem; color: #fff; background: var(--brand-gradient); border-radius: 50%; }
.vt-content .tab-pane.active { animation: fade-up .45s var(--ease) both; }
@media (max-width: 767.98px) {
  .vtabs { grid-template-columns: 1fr; }
  .vt-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .vt-nav::-webkit-scrollbar { display: none; }
  .vt-nav .nav-link { flex: 0 0 auto; }
  .vt-nav .nav-link:hover { transform: none; }
}
@media (max-width: 575.98px) {
  .seg-pills { display: flex; width: 100%; }
  .seg-pills .nav-item { flex: 1; }
  .seg-pills .nav-link { width: 100%; padding-inline: .5rem; }
}

/* 32. Case study (single-portfolio-2.html)
   ------------------------------------------------------------------------ */
.cs-head { padding-top: var(--section-y); padding-bottom: 2.5rem; }
.cs-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.cs-tags span { padding: .3rem .8rem; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-soft); border-radius: var(--radius-pill); }
.cs-title { max-width: 18ch; margin-bottom: 1rem; font-size: clamp(2.2rem, 1.6rem + 2.8vw, 3.8rem); letter-spacing: -.04em; line-height: 1.05; }
.cs-lead { max-width: 60ch; color: var(--text); }
.cs-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 2.25rem 0 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.cs-facts > div { padding: 1.1rem 1.4rem; }
.cs-facts > div + div { border-left: 1px solid var(--border); }
.cs-facts dt { margin-bottom: .2rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.cs-facts dd { margin: 0; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.cs-facts dd a i { font-size: .7rem; }
@media (max-width: 767.98px) {
  .cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-facts > div:nth-child(3) { border-left: 0; }
  .cs-facts > div:nth-child(n+3) { border-top: 1px solid var(--border); }
}

.cs-cover-img { position: relative; margin: 0; }
.cs-cover-img img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow-lg); }
.cs-cover-badge {
  position: absolute; right: 1.5rem; bottom: -1.5rem;
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1.2rem;
  font-size: .85rem; color: var(--text-muted);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.cs-cover-badge i { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--brand-gradient); border-radius: 12px; }
.cs-cover-badge strong { display: block; font-family: var(--font-heading); font-size: 1.3rem; color: var(--text); }
@media (max-width: 575.98px) { .cs-cover-img img { aspect-ratio: 4 / 3; border-radius: 22px; } .cs-cover-badge { right: .75rem; } }

.cs-results { padding-block: calc(var(--section-y) + 1rem) var(--section-y); }
.cs-results .stats-grid { padding: 2rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-xs); }

.cs-story { padding-bottom: var(--section-y); }
.cs-block { position: relative; padding: 0 0 2rem 4rem; }
.cs-block + .cs-block { padding-top: 2rem; border-top: 1px dashed var(--border); }
.cs-step { position: absolute; left: 0; font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--brand); }
.cs-block + .cs-block .cs-step { top: 2rem; }
.cs-block h3 { margin-bottom: .6rem; font-size: 1.4rem; }
.cs-block p { font-size: 1.02rem; line-height: 1.8; }
.cs-list { display: grid; gap: .55rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.cs-list li { display: flex; align-items: center; gap: .6rem; font-weight: 500; color: var(--text); }
.cs-list i { display: grid; place-items: center; width: 22px; height: 22px; font-size: .65rem; color: #fff; background: var(--brand-gradient); border-radius: 50%; }
.cs-info { position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 991.98px) { .cs-info { position: static; } }
@media (max-width: 575.98px) { .cs-block { padding-left: 0; } .cs-step { position: static; display: block; margin-bottom: .5rem; } }

.cs-gallery { padding-bottom: var(--section-y); }
.cs-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.cs-shot { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-alt); }
.cs-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cs-shot-wide { grid-row: span 2; aspect-ratio: 4 / 3.2; }
.cs-shot:hover img { transform: scale(1.06); }
.cs-shot::after { content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 1rem; bottom: 1rem; display: grid; place-items: center; width: 42px; height: 42px; color: var(--text); background: rgba(255, 255, 255, .9); border-radius: 50%; opacity: 0; transform: scale(.7); transition: opacity var(--t-med), transform var(--t-med); }
.cs-shot:hover::after, .cs-shot:focus-visible::after { opacity: 1; transform: none; }
@media (max-width: 767.98px) { .cs-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .cs-shot-wide { grid-column: span 2; grid-row: auto; } .cs-shot:not(.cs-shot-wide) { aspect-ratio: 1; } }

.cs-quote-wrap { padding-bottom: var(--section-y); }
.cs-quote { max-width: 820px; margin: 0 auto; padding: clamp(1.75rem, 1.2rem + 2vw, 3rem); text-align: center; }
.cs-quote blockquote { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); }
.cs-quote figcaption { justify-content: center; text-align: left; }

.cs-nav { padding-bottom: var(--section-y); }
.cs-nav-card { position: relative; display: block; overflow: hidden; height: 180px; border-radius: var(--radius-xl); color: #fff; isolation: isolate; }
.cs-nav-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cs-nav-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 12, 16, .85), rgba(12, 12, 16, .35)); transition: background-color var(--t-med); }
.cs-nav-card.is-next::before { background: linear-gradient(270deg, rgba(12, 12, 16, .85), rgba(12, 12, 16, .35)); }
.cs-nav-card:hover { color: #fff; }
.cs-nav-card:hover img { transform: scale(1.07); }
.cs-nav-text { position: absolute; left: 1.75rem; right: 1.75rem; bottom: 1.5rem; display: grid; gap: .25rem; }
.is-next .cs-nav-text { text-align: right; }
.cs-nav-text small { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #ffb38f; }
.cs-nav-text strong { font-family: var(--font-heading); font-size: 1.4rem; }

.cs-related { padding-bottom: var(--section-y); }
.cs-related .related-portfolio { margin-top: 0; }

/* ==========================================================================
   33. Home 2 / Home 3 modern sections
   ========================================================================== */
.hm-section { padding-block: var(--section-y); }
.hm-alt { background: var(--bg-alt); }
.hm-alt .collage-side { border-color: var(--bg-alt); }
.hm-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 2rem; margin-bottom: 2.5rem;
}
.hm-head h2 { margin: .6rem 0 0; }
.home-modern .about-subtitle { margin: .75rem 0 1rem; }
.home-modern .accordion { margin-top: 1.5rem; }
.home-modern .skills { margin-top: 1.5rem; }
.home-modern .work-item, .home-modern .post-card { margin-bottom: 0; }
.home-modern .about-collage { margin-bottom: 0; }

/* big single testimonial on a dark band */
.hm-quote {
  position: relative; overflow: hidden;
  padding-block: var(--section-y);
  color: #fff;
  background: radial-gradient(60% 80% at 85% 10%, rgba(251, 80, 17, .35), transparent 60%), #18181b;
}
.hm-big-quote { max-width: 820px; margin: 0 auto; text-align: center; }
.hm-quote-avatar {
  width: 84px; height: 84px; margin: 0 auto 1.25rem; object-fit: cover;
  border: 3px solid rgba(255, 255, 255, .85); border-radius: 50%; box-shadow: var(--shadow-lg);
}
.hm-big-quote .stars { justify-content: center; margin-bottom: 1rem; color: #fbbf24; }
.hm-big-quote blockquote {
  padding: 0; color: #fff; background: none; border: 0; box-shadow: none; font-style: normal;
  margin: 0 0 1.25rem;
  font-family: var(--font-heading); font-size: clamp(1.25rem, 1rem + 1.2vw, 1.9rem); line-height: 1.45; font-weight: 600;
}
.hm-big-quote blockquote::before { content: "\201C"; position: static; display: block; height: 1.6rem; font-family: Georgia, serif; font-weight: 700; font-size: 4rem; line-height: .6; color: var(--brand); }
.hm-big-quote figcaption { color: #d4d4d8; }
.hm-big-quote figcaption strong { color: #fff; }

@media (max-width: 575.98px) {
  .hm-head { align-items: flex-start; flex-direction: column; margin-bottom: 1.75rem; }
}

/* ==========================================================================
   34. Blog home (magazine layout)
   ========================================================================== */

/* featured article */
.bh-feature {
  display: grid; grid-template-columns: 1.1fr 1fr; height: 100%;
  overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.bh-feature-img { position: relative; display: block; min-height: 280px; overflow: hidden; }
.bh-feature-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.bh-feature:hover .bh-feature-img img { transform: scale(1.05); }
.bh-badge {
  position: absolute; top: 1rem; left: 1rem;
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--brand-gradient); border-radius: var(--radius-pill); box-shadow: var(--shadow-brand);
}
.bh-feature-body { display: flex; flex-direction: column; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.bh-feature-body h2 { margin: 0 0 1rem; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.2; }
.bh-feature-body h2 a { color: var(--text); text-decoration: none; }
.bh-feature-body h2 a:hover { color: var(--brand-600); }
.bh-feature-body > p { color: var(--text-muted); margin-bottom: 1.5rem; }
.bh-author { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.bh-author img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; }
.bh-author span { display: flex; flex-direction: column; line-height: 1.25; }
.bh-author strong { font-size: .9rem; color: var(--text); }
.bh-author small { font-size: .78rem; color: var(--text-soft); }

/* trending list */
.bh-trending {
  height: 100%; padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
}
.bh-side-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; font-size: 1.1rem; }
.bh-side-title i { color: var(--brand); }
.bh-trending ol { margin: 0; padding: 0; list-style: none; }
.bh-trending li + li { border-top: 1px dashed var(--border); }
.bh-trend { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; color: var(--text); text-decoration: none; }
.bh-trend-num {
  flex: none; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--border-strong); transition: color var(--t-fast), -webkit-text-stroke-color var(--t-fast);
}
.bh-trend-text { display: flex; flex: 1; flex-direction: column; gap: .3rem; min-width: 0; }
.bh-trend-text strong { font-size: .92rem; line-height: 1.35; transition: color var(--t-fast); }
.bh-trend-text small { font-size: .75rem; color: var(--text-soft); }
.bh-trend-text small i { color: var(--brand); margin-right: .25rem; }
.bh-trend img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); transition: transform var(--t-med); }
.bh-trend:hover .bh-trend-num { color: var(--brand); -webkit-text-stroke-color: var(--brand); }
.bh-trend:hover strong { color: var(--brand-600); }
.bh-trend:hover img { transform: scale(1.06) rotate(-2deg); }

/* topic chips */
.bh-topics { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 2rem; }
.bh-topics-label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.bh-topics ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.bh-chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem;
  font-size: .85rem; font-weight: 600; color: var(--text); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill);
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.bh-chip i { color: var(--brand); transition: color var(--t-fast); }
.bh-chip:hover { color: #fff; background: var(--brand-600); border-color: var(--brand-600); transform: translateY(-2px); }
.bh-chip:hover i { color: #fff; }

/* newsletter */
.bh-newsletter {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 1.5rem 3rem;
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  color: #fff; background: var(--brand-gradient); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
}
.bh-newsletter::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  border: 40px solid rgba(255, 255, 255, .12); border-radius: 50%; pointer-events: none;
}
.bh-news-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1rem; font-size: 1.3rem; background: rgba(255, 255, 255, .18); border-radius: var(--radius-md); }
.bh-newsletter h2 { margin: 0 0 .6rem; color: #fff; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.bh-newsletter p { margin: 0; color: rgba(255, 255, 255, .9); }
.bh-news-form { position: relative; z-index: 1; }
.bh-news-field { display: flex; gap: .5rem; padding: .4rem; background: #fff; border-radius: var(--radius-pill); box-shadow: var(--shadow-md); }
.bh-news-field .form-control { min-width: 0; border: 0; background: transparent; box-shadow: none; padding-inline: 1rem; }
.bh-news-field .form-control:focus { box-shadow: none; }
.bh-news-field:focus-within { outline: 3px solid rgba(255, 255, 255, .6); outline-offset: 2px; }
.bh-news-field .btn { flex: none; border-radius: var(--radius-pill); }
.bh-news-form .invalid-feedback { margin-top: .6rem; padding-left: 1rem; font-weight: 600; color: #fff; }
.bh-news-form:has(.is-invalid) .invalid-feedback { display: block; }
.bh-news-thanks:focus { outline: none; }
.bh-news-thanks { margin-top: .75rem !important; padding-left: 1rem; font-weight: 600; color: #fff !important; }

@media (max-width: 991.98px) {
  .bh-newsletter { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .bh-feature { grid-template-columns: 1fr; }
  .bh-feature-img { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 420px) {
  .bh-news-field { flex-direction: column; border-radius: var(--radius-lg); }
  .bh-news-field .btn { width: 100%; }
}

/* ==========================================================================
   35. Studio hero (home-3) & magazine hero (home-blog)
   ========================================================================== */
.hero-studio .hero-slide, .hero-mag .hero-slide { min-height: clamp(640px, 92vh, 900px); align-items: center; padding-block: 6rem 13rem; }
.hero-studio .hero-photo::after {
  background:
    linear-gradient(90deg, rgba(12, 12, 16, .88) 0%, rgba(12, 12, 16, .55) 45%, rgba(12, 12, 16, .15) 100%),
    linear-gradient(0deg, rgba(12, 12, 16, .85) 0%, transparent 40%);
}
.studio-copy { max-width: 680px; }
.studio-copy .hero-lead { color: rgba(255, 255, 255, .82); }
.hero-studio .hero-eyebrow, .hero-mag .hero-eyebrow { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* shared: thumbnail bullets */
.hero-arrows { display: flex; flex: none; gap: .5rem; }
:is(.studio-thumbs, .mag-list) .swiper-pagination-bullet {
  position: relative; display: flex; align-items: center; gap: .8rem;
  width: auto; height: auto; margin: 0 !important; padding: .6rem; overflow: hidden;
  text-align: left; color: #fff; opacity: 1;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
:is(.studio-thumbs, .mag-list) .swiper-pagination-bullet:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
:is(.studio-thumbs, .mag-list) .swiper-pagination-bullet-active { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); }
.hb-thumb { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 10px; filter: grayscale(.6); transition: filter var(--t-med); }
.swiper-pagination-bullet-active .hb-thumb, .swiper-pagination-bullet:hover .hb-thumb { filter: none; }
.hb-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.hb-num { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.swiper-pagination-bullet-active .hb-num { color: #ffb38f; }
.hb-label { font-family: var(--font-heading); font-size: .92rem; font-weight: 700; line-height: 1.3; }
:is(.studio-thumbs, .mag-list) .ht-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; margin: 0; border-radius: 0; background: transparent; }
:is(.studio-thumbs, .mag-list) .swiper-pagination-bullet-active .ht-bar span { transform: scaleX(var(--hero-progress, 0)); }

/* studio nav */
.studio-nav { position: absolute; left: 0; right: 0; bottom: 2rem; z-index: 5; }
.studio-nav-inner { display: flex; align-items: center; gap: 1.5rem; }
.hero-count { display: flex; align-items: baseline; gap: .4rem; flex: none; font-family: var(--font-heading); line-height: 1; }
.hero-count b { font-size: 3rem; font-weight: 800; color: #fff; }
.hero-count span { font-size: 1rem; font-weight: 600; color: rgba(255, 255, 255, .55); }
.studio-thumbs.hero-pagination { display: grid; flex: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.studio-thumbs .hb-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* magazine hero */
.hero-mag .hero-photo::after {
  background:
    linear-gradient(90deg, rgba(12, 12, 16, .9) 0%, rgba(12, 12, 16, .6) 50%, rgba(12, 12, 16, .35) 100%),
    linear-gradient(0deg, rgba(12, 12, 16, .7) 0%, transparent 45%);
}
.hero-mag .hero-slide { padding-block: 6rem; }
.hero-mag .container { padding-right: calc(var(--bs-gutter-x) * .5); }
.mag-copy { max-width: 640px; }
.mag-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1.25rem; font-size: .85rem; color: rgba(255, 255, 255, .78); }
.mag-meta i { color: #ffb38f; margin-right: .3rem; }
.mag-cat { padding: .35rem .85rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--brand-gradient); border-radius: var(--radius-pill); }
.mag-copy .hero-title a { color: #fff; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size var(--t-med); }
.mag-copy .hero-title a:hover { background-size: 100% 2px; }
.mag-copy .hero-lead { color: rgba(255, 255, 255, .82); }
.mag-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.mag-author { display: flex; align-items: center; gap: .7rem; }
.mag-author > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.mag-author strong { font-size: .95rem; }
.mag-author small { font-size: .78rem; color: rgba(255, 255, 255, .65); }
.mag-avatar { display: grid; place-items: center; width: 42px; height: 42px; font-weight: 700; color: #fff; background: var(--brand-gradient); border: 2px solid rgba(255, 255, 255, .6); border-radius: 50%; }
.mag-rail {
  position: absolute; z-index: 5; top: 50%; right: max(1.5rem, calc((100vw - 1320px) / 2));
  width: 340px; padding: 1.1rem;
  background: rgba(12, 12, 16, .45); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transform: translateY(-50%);
}
.mag-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.mag-rail-title { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mag-rail-title i { color: var(--brand); margin-right: .35rem; }
.mag-rail .hero-arrow { width: 38px; height: 38px; font-size: .85rem; }
.mag-list.hero-pagination { display: grid; gap: .55rem; }
.mag-list .hb-label { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (min-width: 1200px) {
  .hero-mag .mag-copy { max-width: calc(100% - 380px); }
}
@media (max-width: 1199.98px) {
  .hero-mag .hero-slide { padding-block: 5rem 12rem; }
  .mag-rail { top: auto; bottom: 1.5rem; left: 50%; right: auto; width: min(100% - 2rem, 960px); transform: translateX(-50%); }
  .mag-list.hero-pagination { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .hero-studio .hero-slide { padding-block: 4.5rem 12rem; }
  .studio-thumbs .hb-thumb, .mag-list .hb-thumb { width: 44px; height: 44px; }
  .hero-count b { font-size: 2.2rem; }
  .mag-list .hb-label { -webkit-line-clamp: 1; }
}
@media (max-width: 767.98px) {
  .hero-studio .hero-slide, .hero-mag .hero-slide { min-height: 0; padding-block: 3.5rem 9rem; }
  .hero-mag .hero-slide { padding-bottom: 11rem; }
  .studio-nav { bottom: 1.25rem; }
  .studio-nav-inner { gap: .75rem; }
  .studio-thumbs.hero-pagination, .mag-list.hero-pagination { display: flex; gap: .4rem; }
  :is(.studio-thumbs, .mag-list) .swiper-pagination-bullet { flex: 1; justify-content: center; padding: .3rem; }
  :is(.studio-thumbs, .mag-list) .hb-text { display: none; }
  .hb-thumb, .studio-thumbs .hb-thumb, .mag-list .hb-thumb { width: 100%; max-width: 64px; height: 40px; }
  .hero-count b { font-size: 1.6rem; }
  .hero-count span { display: none; }
  .mag-rail { padding: .75rem; }
  .mag-rail-head { margin-bottom: .6rem; }
  .hero-studio .hero-actions .btn-lg { --bs-btn-padding-y: .65rem; --bs-btn-padding-x: 1.1rem; --bs-btn-font-size: .95rem; }
}
@media (max-width: 420px) {
  .studio-nav .hero-arrows { display: none; }
}

/* ==========================================================================
   36. Article (blog-single, blog-single-1)
   ========================================================================== */
.text-brand { color: var(--brand-600); }
.read-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--brand-gradient); transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}

/* header (classic) */
.ar-head { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(7rem, 5rem + 8vw, 11rem); background: var(--ink); color: #fff; }
.ar-head-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(560px 300px at 85% 0%, rgba(251, 80, 17, .45), transparent 70%),
    radial-gradient(420px 260px at 0% 100%, rgba(224, 48, 106, .3), transparent 70%);
}
.ar .breadcrumb { margin-bottom: 1.25rem; }
.ar-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.ar-cat {
  padding: .35rem .85rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; text-decoration: none; background: var(--brand-gradient); border-radius: var(--radius-pill);
}
.ar-cat.is-soft { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.ar-cat:hover { color: #fff; filter: brightness(1.08); }
.ar-title { max-width: 22ch; margin: 0 0 1rem; color: #fff; font-size: clamp(2rem, 1.4rem + 2.8vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; }
.ar-deck { max-width: 62ch; margin: 0 0 2rem; font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); color: rgba(255, 255, 255, .78); }
.ar-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem; }
.ar-avatar { width: 48px; height: 48px; object-fit: cover; border: 2px solid rgba(255, 255, 255, .7); border-radius: 50%; }
.ar-byline { --gap: .9rem; }
.ar-by { display: flex; flex-direction: column; line-height: 1.25; margin-left: -.6rem; }
.ar-by small { color: rgba(255, 255, 255, .65); }
.ar-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .875rem; color: rgba(255, 255, 255, .75); }
.ar-facts i { color: #ffb38f; margin-right: .3rem; }
.ar-facts a { color: inherit; text-decoration: none; }
.ar-facts a:hover { color: #fff; }
.ar-cover { margin: clamp(-9.5rem, -4rem - 6vw, -5.5rem) 0 0; }
.ar-cover img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.ar-layout { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) var(--section-y); }

/* body typography */
.ar-body { font-size: 1.0625rem; line-height: 1.8; color: var(--text-muted); }
.ar-body > * + * { margin-top: 1.4rem; }
.ar-body p { margin-bottom: 0; }
.ar-body .lead { padding-left: 1.25rem; font-size: 1.2rem; font-weight: 500; line-height: 1.6; color: var(--text); border-left: 4px solid var(--brand); }
.ar-dropcap::first-letter {
  float: left; margin: .35rem .7rem 0 0; padding: 0 .1em;
  font-family: var(--font-heading); font-size: 3.6rem; font-weight: 800; line-height: .85;
  color: transparent; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text;
}
.ar-body h2 { display: flex; align-items: center; gap: .8rem; margin-top: 2.75rem; margin-bottom: 0; font-size: clamp(1.35rem, 1.2rem + .7vw, 1.75rem); color: var(--text); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.ar-step { display: grid; place-items: center; flex: none; width: 42px; height: 42px; font-size: .9rem; font-weight: 800; color: var(--brand-700); background: var(--brand-soft); border-radius: 12px; }
.ar-checks { display: grid; gap: .7rem; padding: 0; list-style: none; }
.ar-checks li { position: relative; padding-left: 2rem; }
.ar-checks li::before {
  content: "\f00c"; position: absolute; left: 0; top: .3rem;
  display: grid; place-items: center; width: 22px; height: 22px;
  font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .65rem; color: #fff;
  background: var(--brand-gradient); border-radius: 50%;
}
.ar-callout { display: flex; gap: 1rem; padding: 1.1rem 1.25rem; font-size: .975rem; line-height: 1.65; color: var(--text); background: var(--brand-soft); border: 1px solid rgba(251, 80, 17, .2); border-radius: var(--radius-md); }
.ar-callout-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; color: #fff; background: var(--brand-gradient); border-radius: 10px; }
.ar-figure { margin-block: 2.25rem !important; }
.ar-figure img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius-lg); }
.ar-figure figcaption { margin-top: .7rem; font-size: .85rem; text-align: center; color: var(--text-soft); }
.ar-body .ar-quote {
  margin-block: 2.5rem !important; padding: 2rem 2rem 1.75rem; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--brand); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.ar-body .ar-quote::before { position: static; display: block; margin-bottom: .5rem; font-size: 1.6rem; }
.ar-body .ar-quote p { font-family: var(--font-heading); font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); font-style: normal; font-weight: 700; line-height: 1.45; color: var(--text); }
.ar-quote cite { display: block; margin-top: .9rem; font-size: .875rem; font-style: normal; color: var(--text-soft); }
.ar-takeaways { margin-top: 2.5rem !important; padding: 1.5rem 1.75rem; background: var(--bg-alt); border-radius: var(--radius-lg); }
.ar-takeaways h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font-size: 1.1rem; color: var(--text); }
.ar-takeaways h3 i { color: var(--brand); }
.ar-takeaways ol { display: grid; gap: .5rem; margin: 0; padding-left: 1.2rem; color: var(--text); }
.ar-takeaways li::marker { font-weight: 800; color: var(--brand-600); }

/* tags + share */
.ar-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.5rem; padding-block: 1.5rem; border-block: 1px solid var(--border); }
.ar-foot-label { margin-right: .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.ar-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.ar-tags a { padding: .35rem .8rem; font-size: .8rem; font-weight: 600; color: var(--text-muted); text-decoration: none; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-pill); transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast); }
.ar-tags a:hover { color: #fff; background: var(--brand-600); border-color: var(--brand-600); }
.ar-share { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.ar-share-btn {
  display: grid; place-items: center; width: 38px; height: 38px; font-size: .9rem;
  color: var(--text-muted); text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 50%;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.ar-share-btn:hover { color: #fff; background: var(--brand-600); border-color: var(--brand-600); transform: translateY(-2px); }

/* author */
.ar-author { display: flex; gap: 1.5rem; margin-top: 2.5rem; padding: 1.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.ar-author img { flex: none; width: 88px; height: 88px; object-fit: cover; border-radius: 50%; }
.ar-author-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); }
.ar-author h2 { margin: .2rem 0 .5rem; font-size: 1.3rem; }
.ar-author p { margin: 0 0 .75rem; color: var(--text-muted); }
.ar-author-link { font-size: .9rem; font-weight: 600; text-decoration: none; }

/* prev / next */
.ar-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.ar-pager-card { display: flex; align-items: center; gap: 1rem; padding: .75rem; color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); }
.ar-pager-card.is-next { flex-direction: row-reverse; text-align: right; }
.ar-pager-card img { flex: none; width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius-md); }
.ar-pager-card span { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.ar-pager-card small { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-600); }
.ar-pager-card strong { font-family: var(--font-heading); font-size: .98rem; line-height: 1.35; }
.ar-pager-card:hover { border-color: rgba(251, 80, 17, .35); box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* comments */
.ar-comments { margin-top: 3.5rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.ar-comments > h2 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.5rem; font-size: 1.5rem; }
.ar-count { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 .5rem; font-size: .85rem; color: #fff; background: var(--brand-gradient); border-radius: var(--radius-pill); }
.ar-comment-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.ar-comment { display: flex; gap: 1rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.ar-comment.is-reply { margin-left: clamp(1.25rem, 5vw, 3.5rem); background: var(--bg-alt); border-left: 3px solid var(--brand); }
.ar-comment > img { flex: none; width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.ar-comment-body { flex: 1; min-width: 0; }
.ar-comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin-bottom: .35rem; }
.ar-comment-head strong { color: var(--text); }
.ar-comment-head small { font-size: .8rem; color: var(--text-soft); }
.ar-badge { padding: .1rem .5rem; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-soft); border-radius: var(--radius-pill); }
.ar-comment-body p { margin: 0 0 .5rem; color: var(--text-muted); }
.ar-reply { font-size: .82rem; font-weight: 600; text-decoration: none; }
.ar-reply-box { margin-top: 2rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); scroll-margin-top: calc(var(--header-h) + 1rem); }
.ar-reply-box h3 { margin: 0 0 .35rem; font-size: 1.3rem; }
.ar-reply-box > p { margin-bottom: 1.25rem; font-size: .9rem; color: var(--text-soft); }
.ar-reply-box .form-label { font-size: .875rem; font-weight: 600; color: var(--text); }
.ar-thanks { margin: 0; font-weight: 600; color: #15803d; }
.ar-thanks:focus { outline: none; }

/* sidebar */
.ar-sidebar { display: grid; gap: 1.25rem; }
.ar-widget { padding: 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.ar-widget-title { margin: 0 0 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.ar-search { display: flex; gap: .5rem; padding: .5rem; }
.ar-search .form-control { border: 0; box-shadow: none; background: transparent; }
.ar-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.ar-search .btn { flex: none; width: 44px; padding-inline: 0; }
.ar-toc ol { display: grid; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.ar-toc a { display: flex; gap: .7rem; padding: .5rem .6rem; font-size: .92rem; font-weight: 500; line-height: 1.4; color: var(--text-muted); text-decoration: none; border-radius: var(--radius-sm); transition: color var(--t-fast), background var(--t-fast); }
.ar-toc a span { font-weight: 800; color: var(--brand-600); }
.ar-toc a:hover { color: var(--text); background: var(--bg-alt); }
.ar-minis { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.ar-mini { display: flex; align-items: center; gap: .85rem; color: var(--text); text-decoration: none; }
.ar-mini img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); transition: transform var(--t-med); }
.ar-mini span { display: flex; flex-direction: column; gap: .2rem; }
.ar-mini strong { font-size: .9rem; line-height: 1.35; transition: color var(--t-fast); }
.ar-mini small { font-size: .78rem; color: var(--text-soft); }
.ar-mini:hover strong { color: var(--brand-600); }
.ar-mini:hover img { transform: scale(1.05); }
.ar-catlist { margin: 0; padding: 0; list-style: none; }
.ar-catlist li + li { border-top: 1px dashed var(--border); }
.ar-catlist a { display: flex; align-items: center; justify-content: space-between; padding: .6rem 0; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: color var(--t-fast), padding var(--t-fast); }
.ar-catlist a span { min-width: 28px; padding: .05rem .5rem; font-size: .75rem; font-weight: 700; text-align: center; color: var(--text-soft); background: var(--bg-alt); border-radius: var(--radius-pill); }
.ar-catlist a:hover { padding-left: .35rem; color: var(--brand-600); }
.ar-news { position: relative; overflow: hidden; color: #fff; background: var(--brand-gradient); border: 0; }
.ar-news .ar-widget-title { color: #fff; }
.ar-news p { color: rgba(255, 255, 255, .9); }
.ar-news-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: .9rem; background: rgba(255, 255, 255, .18); border-radius: var(--radius-sm); }

/* full-width variant */
.ar-cover-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(520px, 78vh, 760px); padding-block: 5rem 3.5rem; color: #fff; background: var(--ink); }
.ar-cover-photo { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; animation: kenburns 14s ease-out both; }
.ar-cover-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 12, 16, .45) 0%, rgba(12, 12, 16, .65) 45%, rgba(12, 12, 16, .94) 100%); }
.ar-cover-inner { max-width: 860px; }
.ar-cover-hero .ar-title { max-width: 20ch; }
.ar-cover-hero .breadcrumb { background: rgba(12, 12, 16, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ar-wide-grid { display: grid; grid-template-columns: 64px minmax(0, 760px); justify-content: center; gap: 2.5rem; padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) var(--section-y); }
.ar-rail { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; display: grid; justify-items: center; gap: .5rem; }
.ar-toc-inline { margin-bottom: 2.25rem; padding: 1.25rem 1.4rem; background: var(--bg-alt); border-radius: var(--radius-lg); }
.ar-toc-inline ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 991.98px) {
  .ar-layout { row-gap: 3rem; }
  .ar-wide-grid { grid-template-columns: minmax(0, 1fr); }
  .ar-rail { display: none; }
}
@media (max-width: 767.98px) {
  .ar-cover img { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); }
  .ar-pager { grid-template-columns: 1fr; }
  .ar-author { flex-direction: column; gap: 1rem; }
  .ar-author img { width: 72px; height: 72px; }
  .ar-toc-inline ol { grid-template-columns: 1fr; }
  .ar-comment { padding: 1rem; gap: .75rem; }
  .ar-comment > img { width: 40px; height: 40px; }
  .ar-foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .ar-cover-photo { animation: none; }
}

/* ==========================================================================
   37. Branding case study (single-portfolio-3)
   ========================================================================== */
.kx-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(5rem, 4rem + 4vw, 7rem); color: #fff; background: var(--ink); }
.kx-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(620px 360px at 90% 10%, rgba(215, 38, 61, .45), transparent 70%),
    radial-gradient(420px 260px at 0% 100%, rgba(242, 165, 65, .22), transparent 70%);
}
.kx-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.kx .breadcrumb {
  --bs-breadcrumb-divider-color: var(--ink-muted); --bs-breadcrumb-item-active-color: #fff;
  display: inline-flex; margin: 0 0 1.25rem; padding: .4rem .9rem; font-size: .8125rem;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--ink-border); border-radius: var(--radius-pill);
}
.kx .breadcrumb a { color: var(--ink-muted); }
.kx .breadcrumb a:hover { color: #fff; }
.kx-tags { margin-bottom: 1rem; }
.kx-tags span { color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.kx-title { margin: 0 0 1rem; color: #fff; font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; }
.kx-lead { max-width: 54ch; margin-bottom: 1.75rem; font-size: 1.1rem; color: rgba(255, 255, 255, .78); }
.kx-facts { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 0; }
.kx-facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.kx-facts dd { margin: .2rem 0 0; font-weight: 600; }
.kx-hero-media { position: relative; margin: 0; }
.kx-hero-media img { display: block; width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; border-radius: var(--radius-xl); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); transform: rotate(1.5deg); transition: transform var(--t-slow); }
.kx-hero-media:hover img { transform: rotate(0); }
.kx-hero-badge {
  position: absolute; left: -1rem; bottom: 1.5rem;
  display: flex; align-items: center; gap: .8rem; padding: .7rem 1.1rem .7rem .7rem;
  color: var(--text); background: rgba(255, 255, 255, .94); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.kx-hero-badge strong { display: block; font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.1; }
.kx-hero-badge span:last-child { font-size: .85rem; color: var(--text-muted); }
.kx-mono { display: grid; place-items: center; width: 46px; height: 46px; font-family: var(--font-heading); font-weight: 800; letter-spacing: -.04em; color: #fff; background: #d7263d; border-radius: 12px; }
.kx-results { padding-top: 0; margin-top: -2.75rem; position: relative; z-index: 2; }

.kx-video { margin-bottom: 2.5rem; }
.kx-video .ratio { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.kx-caption { margin: .75rem 0 0; font-size: .875rem; color: var(--text-soft); }
.kx-caption i { color: var(--brand); margin-right: .35rem; }

/* brand board */
.kx-brand { padding-block: var(--section-y); background: var(--bg-alt); }
.kx-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 1.25rem; }
.kx-card { position: relative; display: flex; flex-direction: column; margin: 0; padding: 1.5rem; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); }
.kx-card-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.kx-logo { grid-row: span 2; align-items: center; justify-content: space-between; text-align: center; color: #fff; background: #141416; border-color: #141416; }
.kx-logo .kx-card-label { align-self: flex-start; color: rgba(255, 255, 255, .55); }
.kx-logo-mark {
  display: grid; place-items: center; width: 150px; aspect-ratio: 1;
  background: #d7263d; border-radius: 50%; box-shadow: 0 0 0 10px rgba(215, 38, 61, .18), 0 0 0 22px rgba(242, 165, 65, .12);
  transition: transform var(--t-med);
}
.kx-logo-mark span { font-family: var(--font-heading); font-size: 4rem; font-weight: 800; letter-spacing: -.06em; font-style: italic; color: #fff; }
.kx-logo:hover .kx-logo-mark { transform: rotate(-8deg) scale(1.04); }
.kx-logo p { margin: 0; font-family: var(--font-heading); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #f2a541; }
.kx-type { grid-column: span 2; }
.kx-type-big { margin: .25rem 0 .5rem; font-family: var(--font-heading); font-size: clamp(4rem, 3rem + 4vw, 6.5rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--text); }
.kx-type-head { margin: 0 0 .25rem; font-family: var(--font-heading); font-weight: 800; color: var(--text); }
.kx-type-body { margin: 0; color: var(--text-muted); }
.kx-palette { grid-row: span 2; }
.kx-swatches { display: grid; flex: 1; gap: .6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.kx-swatch {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 72px; padding: .75rem .9rem;
  color: var(--on); background: var(--sw); border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--radius-md);
  transition: transform var(--t-fast);
}
.kx-swatch:hover { transform: translateX(4px); }
.kx-swatch-name { font-weight: 700; font-size: .9rem; }
.kx-swatch-hex { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; opacity: .8; }
.kx-voice { grid-column: span 2; justify-content: space-between; gap: 1rem; color: #fff; background: radial-gradient(400px 220px at 100% 0%, rgba(242, 165, 65, .35), transparent 70%), #d7263d; border-color: #d7263d; }
.kx-voice .kx-card-label { color: rgba(255, 255, 255, .7); }
.kx-tagline { margin: 0; color: #fff; font-family: var(--font-heading); font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 800; font-style: italic; line-height: 1.05; letter-spacing: -.03em; text-transform: uppercase; }
.kx-tagline span { color: #141416; }
.kx-apps { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.kx-apps li { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; font-size: .8rem; font-weight: 600; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius-pill); }

.kx-process { padding-block: var(--section-y); }

@media (max-width: 991.98px) {
  .kx-hero-media { max-width: 560px; margin: 1rem auto 0; }
  .kx-hero-badge { left: .75rem; }
  .kx-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kx-logo, .kx-palette { grid-row: auto; }
  .kx-type, .kx-voice { grid-column: span 2; }
  .cs-story .cs-info { position: static; }
}
@media (max-width: 575.98px) {
  .kx-board { grid-template-columns: minmax(0, 1fr); }
  .kx-type, .kx-voice { grid-column: auto; }
  .kx-logo-mark { width: 120px; }
  .kx-logo-mark span { font-size: 3.2rem; }
}
