/* ─────────────────────────────────────────────────────────────────────────
 * Theme CSS — all colour values come from CSS custom properties.
 * The PHP header sets these variables at runtime from the rd-core API so
 * every theme (color / bg / RTL) change is automatic.
 * ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Brand colours injected by header.php at runtime */
  --color-accent:        #a39171;   /* overridden by base_color    */
  --color-accent-rgb:    163, 145, 113;
  --color-accent-hover:  #8e7d5d;   /* overridden by header.php    */

  /* Backgrounds derived from secondary_color */
  --color-bg:            #0f1115;   /* overridden by header.php    */
  --color-bg-alt:        #1a1d24;   /* overridden by header.php    */
  --color-bg-dark:       #0a0d12;   /* overridden by header.php    */

  /* Text */
  --color-text:          #f3f4f6;
  --color-text-muted:    #9ca3af;

  /* Borders */
  --color-border:        #333333;   /* overridden by header.php    */

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Layout */
  --max-width: 1400px;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

body {
  line-height: 1.8;
  background-color: var(--color-bg);
  color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ── Theme Semantic Utilities ─────────────────────────────────────────── */
/* Use these instead of hardcoded bg-[#...] Tailwind classes              */

.bg-theme-primary { background-color: var(--color-bg); }
.bg-theme-alt     { background-color: var(--color-bg-alt); }
.bg-theme-dark    { background-color: var(--color-bg-dark); }
.text-theme-primary { color: var(--color-text); }

.text-accent   { color: var(--color-accent); }
.bg-accent     { background-color: var(--color-accent); }
.border-accent { border-color: var(--color-accent); }

.hover\:text-accent:hover  { color: var(--color-accent); }
.hover\:bg-accent:hover    { background-color: var(--color-accent); }

.btn-accent {
  background-color: var(--color-accent);
  color: #fff;
  transition: opacity 0.2s ease;
}
.btn-accent:hover { opacity: 0.85; }

.link-accent {
  color: var(--color-accent);
  transition: opacity 0.2s ease;
}
.link-accent:hover { opacity: 0.75; }

.border-theme { border-color: var(--color-border); }

/* ── Compatibility Layer ─────────────────────────────────────────────── */
/* Map hardcoded Tailwind utility colors used across template pages
   to runtime ThemeAPI variables so every page follows base/secondary. */
.text-white { color: var(--color-text) !important; }
.text-gray-300,
.text-gray-400,
.text-gray-500,
.text-gray-600,
.text-slate-400,
.text-slate-500 { color: var(--color-text-muted) !important; }

.hover\:text-white:hover { color: var(--color-text) !important; }
.hover\:text-gray-300:hover { color: var(--color-text) !important; }

.bg-slate-900,
.bg-slate-950 { background-color: var(--color-bg) !important; }
.bg-white\/5 { background-color: rgba(var(--color-accent-rgb), 0.08) !important; }

.border-white,
.border-slate-800,
.border-white\/5,
.border-white\/10,
.border-white\/15,
.border-white\/20,
.border-white\/40 { border-color: var(--color-border) !important; }
.hover\:border-white\/15:hover,
.hover\:border-white\/20:hover,
.hover\:border-white\/40:hover { border-color: var(--color-accent) !important; }

.prose-invert,
.prose.prose-invert,
.prose.prose-invert p { color: var(--color-text-muted) !important; }
.prose.prose-invert h1,
.prose.prose-invert h2,
.prose.prose-invert h3,
.prose.prose-invert h4,
.prose.prose-invert h5,
.prose.prose-invert h6 { color: var(--color-text) !important; }

/* ── Animations ──────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 150ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 300ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 450ms; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 600ms; }
[data-reveal-stagger].is-visible > *                { opacity: 1; transform: translateY(0); }

/* ── Navigation ──────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100 !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  background-color: rgba(10, 13, 18, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.6);
}

.nav-link-elegant {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
}

.nav-underline {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scaleX(0);
  transform-origin: left;
}

.nav-link-elegant:hover .nav-underline {
  transform: scaleX(1);
}

.dropdown-panel-elegant {
  border-radius: 4px;
  transform-origin: top center;
}

/* ── Forms ──────────────────────────────────────────────────────────── */
.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  padding: 1rem 0;
  color: var(--color-text);
  width: 100%;
  transition: border-color 0.3s ease;
}
.form-input:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}
.form-input::placeholder { color: var(--color-text-muted); }

/* ── Accordion ───────────────────────────────────────────────────────── */
.accordion-item {
  border-bottom: 1px solid var(--color-border);
}
.accordion-header {
  background: transparent;
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-text);
  cursor: pointer;
  transition: color 0.3s ease;
  border: 0;
}
.accordion-header:hover      { color: var(--color-accent); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.8;
}
.accordion-item.is-active .accordion-content { max-height: 1000px; }
.accordion-icon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  color: var(--color-border);
  flex-shrink: 0;
}
.accordion-item.is-active .accordion-icon {
  transform: rotate(180deg);
  color: var(--color-accent);
}

/* ── Misc ─────────────────────────────────────────────────────────────── */
.text-balance { text-wrap: balance; }

/* ── RTL overrides ────────────────────────────────────────────────────── */
[dir="rtl"] body          { direction: rtl; text-align: right; }
[dir="rtl"] .site-header .flex { flex-direction: row-reverse; }
[dir="rtl"] nav           { flex-direction: row-reverse; }
/* Flip chevrons / arrows */
[dir="rtl"] .rtl-flip     { transform: scaleX(-1); }
/* Reverse spacing in RTL horizontal stacks */
[dir="rtl"] .space-x-8 > * + *  { margin-right: 2rem; margin-left: 0; }
[dir="rtl"] .space-x-12 > * + * { margin-right: 3rem; margin-left: 0; }
/* Border left ↔ right */
[dir="rtl"] .border-l { border-left: 0; border-right-width: 1px; }
[dir="rtl"] .pl-4     { padding-left: 0;    padding-right: 1rem; }
[dir="rtl"] .pl-8     { padding-left: 0;    padding-right: 2rem; }
[dir="rtl"] .ml-1     { margin-left: 0;     margin-right: 0.25rem; }

/* ── Home Theme Enforcement ──────────────────────────────────────────── */
/* Ensure Home sections always follow ThemeAPI base/secondary colors. */
#hp-hero { background: var(--color-bg-dark); }
#hp-hero-overlay { background: linear-gradient(to top, var(--color-bg-dark) 0%, var(--color-bg) 58%, transparent 100%); }
#hp-hero h1,
.hp-heading,
.hp-step h3,
.hp-svc-card h3,
.hp-team-name,
.hp-testi-name,
.hp-blog-card h3 { color: var(--color-text); }
#hp-hero p,
.hp-sub,
.hp-stat-label,
.hp-step p,
.hp-svc-card p,
.hp-testi-text,
.hp-testi-occ,
.hp-blog-date,
.hp-blog-card p,
#hp-scroll-hint { color: var(--color-text-muted); }

#hp-brands,
#hp-newsletter { border-color: var(--color-border); }
.hp-step,
.hp-svc-card,
.hp-testi-card,
.hp-blog-card,
.hp-social-btn,
.hp-nl-input { border-color: var(--color-border); }

.hp-btn-ghost {
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
.hp-btn-ghost:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
  background: rgba(var(--color-accent-rgb), .08);
}
[dir="rtl"] .mr-1     { margin-right: 0;    margin-left: 0.25rem; }
/* Absolute positioned dropdowns */
[dir="rtl"] .absolute.left-0  { left: auto; right: 0; }

/* ── Homepage (moved from index.php) ───────────────────────────── */
/* ── Homepage extras ─────────────────────────────────── */
  .hp-section {
    padding: 6rem 0;
  }

  @media(min-width:1024px) {
    .hp-section {
      padding: 9rem 0;
    }
  }

  .hp-wrap {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }

  @media(min-width:768px) {
    .hp-wrap {
      padding: 0 3rem;
    }
  }

  /* Section label */
  .hp-label {
    display: block;
    font-size: .65rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
  }

  .hp-heading {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -.01em;
  }

  .hp-sub {
    color: rgba(255, 255, 255, .45);
    font-weight: 300;
    line-height: 1.8;
    font-size: 1.05rem;
  }

  [data-theme="light"] .hp-heading {
    color: #1c1917;
  }

  [data-theme="light"] .hp-sub {
    color: rgba(0, 0, 0, .5);
  }

  /* Divider line */
  .hp-rule {
    width: 48px;
    height: 1px;
    background: var(--color-accent);
    margin: 1.5rem 0;
  }

  /* ── Hero ────────── */
  #hp-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: var(--color-bg-dark);
  }

  #hp-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    transition: transform 8s ease;
  }

  #hp-hero-bg.loaded {
    transform: scale(1);
  }

  #hp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-bg-dark) 0%, var(--color-bg) 58%, transparent 100%);
  }

  #hp-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1.5rem 6rem;
    max-width: 1360px;
    margin: 0 auto;
    width: 100%;
  }

  @media(min-width:768px) {
    #hp-hero-content {
      padding: 0 3rem 8rem;
    }
  }

  #hp-hero h1 {
    font-size: clamp(2.2rem, 6vw, 5rem);
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.1;
    letter-spacing: -.02em;
    margin: 0 0 1.5rem;
    max-width: 800px;
  }

  #hp-hero p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 560px;
    line-height: 1.75;
    margin: 0 0 2.5rem;
  }

  .hp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    background: var(--color-accent);
    color: #fff;
    padding: .9rem 2rem;
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity .25s, transform .25s, box-shadow .3s;
  }

  .hp-btn-primary:hover {
    opacity: .88;
    transform: scale(1.04);
    box-shadow: 0 0 28px rgba(var(--color-accent-rgb), .45);
  }

  .hp-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    padding: .9rem 2rem;
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .25s, border-color .25s, background .25s;
  }

  .hp-btn-ghost:hover {
    color: var(--color-text);
    border-color: var(--color-accent);
    background: rgba(var(--color-accent-rgb), .08);
  }

  #hp-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    font-size: .6rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    animation: scrollHint 2.4s ease-in-out infinite;
  }

  @keyframes scrollHint {

    0%,
    100% {
      transform: translateX(-50%) translateY(0);
      opacity: .3
    }

    50% {
      transform: translateX(-50%) translateY(6px);
      opacity: .7
    }
  }

  #hp-scroll-hint svg {
    width: 18px;
    height: 18px;
  }

  /* ── Brands marquee ─ */
  #hp-brands {
    padding: 2.5rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
  }

  [data-theme="light"] #hp-brands {
    border-color: rgba(0, 0, 0, .08);
  }

  .hp-marquee-track {
    display: flex;
    gap: 4rem;
    align-items: center;
    width: max-content;
    animation: marquee 28s linear infinite;
  }

  .hp-marquee-track:hover {
    animation-play-state: paused;
  }

  @keyframes marquee {
    from {
      transform: translateX(0)
    }

    to {
      transform: translateX(-50%)
    }
  }

  .hp-brand-item {
    opacity: .35;
    filter: grayscale(1);
    transition: opacity .3s, filter .3s;
    flex-shrink: 0;
  }

  .hp-brand-item:hover {
    opacity: .9;
    filter: none;
  }

  .hp-brand-item img {
    height: 40px;
    max-width: 140px;
    object-fit: contain;
  }

  /* ── About ────────── */
  #hp-about {
    background: var(--color-bg, #07090f);
  }

  .hp-about-img {
    position: relative;
  }

  .hp-about-img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 4px;
  }

  .hp-about-img::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 96px;
    height: 96px;
    border: 2px solid var(--color-accent);
    border-radius: 2px;
    opacity: .35;
    pointer-events: none;
  }

  .hp-about-img::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 2px;
    pointer-events: none;
  }

  /* ── Counter ─────── */
  #hp-counter {
    background: linear-gradient(135deg, rgba(var(--color-accent-rgb), .08) 0%, rgba(var(--color-accent-rgb), .02) 100%);
    border-top: 1px solid rgba(var(--color-accent-rgb), .15);
    border-bottom: 1px solid rgba(var(--color-accent-rgb), .15);
  }

  .hp-stat-num {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    color: #fff;
    line-height: 1;
  }

  .hp-stat-num.counted {
    transition: all .1s;
  }

  .hp-stat-label {
    font-size: .65rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4);
    margin-top: .5rem;
  }

  [data-theme="light"] .hp-stat-num {
    color: #1c1917;
  }

  [data-theme="light"] .hp-stat-label {
    color: rgba(0, 0, 0, .4);
  }

  /* ── Why Choose Us ── */
  .hp-wcu-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .hp-wcu-list li {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
    font-size: .95rem;
    color: rgba(255, 255, 255, .55);
    line-height: 1.7;
    font-weight: 300;
  }

  .hp-wcu-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
    margin-top: .55em;
  }

  [data-theme="light"] .hp-wcu-list li {
    color: rgba(0, 0, 0, .55);
  }

  /* ── Work Process ─── */
  #hp-process {
    background: rgba(255, 255, 255, .015);
  }

  [data-theme="light"] #hp-process {
    background: rgba(0, 0, 0, .025);
  }

  .hp-step {
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    transition: background .3s, border-color .3s;
  }

  .hp-step:hover {
    background: rgba(255, 255, 255, .055);
    border-color: rgba(var(--color-accent-rgb), .3);
  }

  [data-theme="light"] .hp-step {
    background: rgba(0, 0, 0, .03);
    border-color: rgba(0, 0, 0, .08);
  }

  [data-theme="light"] .hp-step:hover {
    background: rgba(0, 0, 0, .05);
    border-color: rgba(var(--color-accent-rgb), .35);
  }

  .hp-step-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: #fff;
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .05em;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
  }

  .hp-step h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 .5rem;
  }

  [data-theme="light"] .hp-step h3 {
    color: #1c1917;
  }

  .hp-step p {
    font-size: .875rem;
    color: rgba(255, 255, 255, .4);
    line-height: 1.7;
    margin: 0;
    font-weight: 300;
  }

  [data-theme="light"] .hp-step p {
    color: rgba(0, 0, 0, .45);
  }

  /* ── Services ──────── */
  .hp-svc-card {
    padding: 2rem 1.75rem;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    background: rgba(255, 255, 255, .02);
    transition: border-color .35s, background .35s, transform .35s;
  }

  .hp-svc-card:hover {
    border-color: rgba(var(--color-accent-rgb), .35);
    background: rgba(var(--color-accent-rgb), .05);
    transform: translateY(-4px);
  }

  [data-theme="light"] .hp-svc-card {
    background: rgba(0, 0, 0, .025);
    border-color: rgba(0, 0, 0, .08);
  }

  [data-theme="light"] .hp-svc-card:hover {
    border-color: rgba(var(--color-accent-rgb), .4);
    background: rgba(var(--color-accent-rgb), .07);
  }

  .hp-svc-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: block;
  }

  .hp-svc-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 .625rem;
  }

  [data-theme="light"] .hp-svc-card h3 {
    color: #1c1917;
  }

  .hp-svc-card p {
    font-size: .875rem;
    color: rgba(255, 255, 255, .42);
    line-height: 1.7;
    margin: 0;
  }

  [data-theme="light"] .hp-svc-card p {
    color: rgba(0, 0, 0, .45);
  }

  /* ── Team ────────── */
  .hp-team-card .hp-team-img {
    overflow: hidden;
    aspect-ratio: 3/4;
    border-radius: 10px;
  }

  .hp-team-card .hp-team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: filter .6s, transform .6s;
  }

  .hp-team-card:hover .hp-team-img img {
    filter: none;
    transform: scale(1.04);
  }

  .hp-team-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: .875rem 0 .25rem;
  }

  [data-theme="light"] .hp-team-name {
    color: #1c1917;
  }

  .hp-team-role {
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: .75rem;
  }

  .hp-social-row {
    display: flex;
    gap: .5rem;
  }

  .hp-social-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .35);
    font-size: .75rem;
    text-decoration: none;
    transition: color .2s, background .2s, border-color .2s;
  }

  .hp-social-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .2);
  }

  [data-theme="light"] .hp-social-btn {
    color: rgba(0, 0, 0, .4);
    border-color: rgba(0, 0, 0, .12);
  }

  [data-theme="light"] .hp-social-btn:hover {
    color: rgba(0, 0, 0, .8);
    background: rgba(0, 0, 0, .06);
  }

  /* ── Testimonials ─── */
  .hp-testi-card {
    padding: 2rem 2rem 1.75rem;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    background: rgba(255, 255, 255, .02);
    position: relative;
  }

  [data-theme="light"] .hp-testi-card {
    background: rgba(0, 0, 0, .025);
    border-color: rgba(0, 0, 0, .08);
  }

  .hp-testi-quote {
    font-size: 4rem;
    line-height: .8;
    color: var(--color-accent);
    opacity: .25;
    font-family: Georgia, serif;
    margin-bottom: .75rem;
  }

  .hp-testi-text {
    font-size: .95rem;
    color: rgba(255, 255, 255, .5);
    line-height: 1.8;
    font-weight: 300;
    font-style: italic;
    margin: 0 0 1.5rem;
  }

  [data-theme="light"] .hp-testi-text {
    color: rgba(0, 0, 0, .5);
  }

  .hp-testi-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
  }

  .hp-testi-name {
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
  }

  [data-theme="light"] .hp-testi-name {
    color: #1c1917;
  }

  .hp-testi-occ {
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .3);
    margin-top: .15rem;
  }

  [data-theme="light"] .hp-testi-occ {
    color: rgba(0, 0, 0, .35);
  }

  /* ── Blogs ────────── */
  .hp-blog-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
    background: rgba(255, 255, 255, .02);
    transition: border-color .3s, transform .3s;
    text-decoration: none;
    display: block;
  }

  .hp-blog-card:hover {
    border-color: rgba(var(--color-accent-rgb), .3);
    transform: translateY(-5px);
  }

  [data-theme="light"] .hp-blog-card {
    background: rgba(0, 0, 0, .025);
    border-color: rgba(0, 0, 0, .08);
  }

  [data-theme="light"] .hp-blog-card:hover {
    border-color: rgba(var(--color-accent-rgb), .4);
  }

  .hp-blog-card .hp-blog-img {
    overflow: hidden;
    aspect-ratio: 16/9;
  }

  .hp-blog-card .hp-blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
  }

  .hp-blog-card:hover .hp-blog-img img {
    transform: scale(1.06);
  }

  .hp-blog-card .hp-blog-body {
    padding: 1.5rem;
  }

  .hp-blog-cat {
    font-size: .6rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-accent);
    background: rgba(var(--color-accent-rgb), .12);
    padding: .25rem .625rem;
    border-radius: 4px;
    display: inline-block;
  }

  .hp-blog-date {
    font-size: .7rem;
    color: rgba(255, 255, 255, .3);
    margin-left: .5rem;
  }

  [data-theme="light"] .hp-blog-date {
    color: rgba(0, 0, 0, .3);
  }

  .hp-blog-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: .875rem 0 .625rem;
    line-height: 1.45;
  }

  [data-theme="light"] .hp-blog-card h3 {
    color: #1c1917;
  }

  .hp-blog-card p {
    font-size: .85rem;
    color: rgba(255, 255, 255, .4);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  [data-theme="light"] .hp-blog-card p {
    color: rgba(0, 0, 0, .45);
  }

  .hp-blog-cta {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-top: 1rem;
    display: block;
  }

  /* ── Video ────────── */
  #hp-video {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  #hp-video-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
  }

  #hp-video-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(4, 5, 10, .72);
  }

  #hp-video-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 1.5rem;
    max-width: 700px;
  }

  .hp-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    transition: background .3s, border-color .3s, transform .3s;
    text-decoration: none;
  }

  .hp-play-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.1);
  }

  .hp-play-btn svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
  }

  /* ── Newsletter ──── */
  #hp-newsletter {
    border-top: 1px solid var(--color-border);
  }

  [data-theme="light"] #hp-newsletter {
    border-color: rgba(0, 0, 0, .08);
  }

  .hp-nl-form {
    display: flex;
    gap: .75rem;
    max-width: 480px;
    margin: 0 auto;
  }

  @media(max-width:540px) {
    .hp-nl-form {
      flex-direction: column;
    }
  }

  .hp-nl-input {
    flex: 1;
    padding: .875rem 1.25rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    font-size: .875rem;
    outline: none;
    transition: border-color .25s, background .25s;
  }

  .hp-nl-input:focus {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, .08);
  }

  .hp-nl-input::placeholder {
    color: rgba(255, 255, 255, .25);
  }

  [data-theme="light"] .hp-nl-input {
    background: rgba(0, 0, 0, .04);
    border-color: rgba(0, 0, 0, .12);
    color: #1c1917;
  }

  [data-theme="light"] .hp-nl-input::placeholder {
    color: rgba(0, 0, 0, .3);
  }

  [data-theme="light"] .hp-nl-input:focus {
    border-color: var(--color-accent);
  }

  /* ── Reveal animations ─ */
  [data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
  }

  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  [data-reveal-stagger]>* {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1);
  }

  [data-reveal-stagger].is-visible>*:nth-child(1) {
    transition-delay: .05s
  }

  [data-reveal-stagger].is-visible>*:nth-child(2) {
    transition-delay: .12s
  }

  [data-reveal-stagger].is-visible>*:nth-child(3) {
    transition-delay: .19s
  }

  [data-reveal-stagger].is-visible>*:nth-child(4) {
    transition-delay: .26s
  }

  [data-reveal-stagger].is-visible>* {
    opacity: 1;
    transform: none;
  }
