/*
Theme Name:   LuxPro
Theme URI:    https://luxpro.eu/
Description:  LuxPro agency theme — a child of Hello Elementor. Hand-written templates and CSS, no page-builder dependency, ported from the LuxPro React reference build.
Author:       Valmer Luks
Author URI:   https://luxpro.eu/
Template:     hello-elementor
Version:      0.5.12
Requires PHP: 7.4
Text Domain:  luxpro
Tags:         portfolio, agency, translation-ready, accessibility-ready
*/

/* ==========================================================================
   Design tokens
   One source of truth for colour, type and spacing. Both themes are defined
   here; nothing below this block hard-codes a colour.
   ========================================================================== */

:root {
  --lux-zinc-50: #fafafa;
  --lux-zinc-100: #f4f4f5;
  --lux-zinc-200: #e4e4e7;
  --lux-zinc-300: #d4d4d8;
  --lux-zinc-400: #a1a1aa;
  --lux-zinc-500: #71717a;
  --lux-zinc-600: #52525b;
  --lux-zinc-700: #3f3f46;
  --lux-zinc-800: #27272a;
  --lux-zinc-900: #18181b;
  --lux-zinc-950: #09090b;

  /* Semantic aliases — light theme is the default. */
  --lux-bg: #ffffff;
  --lux-bg-subtle: var(--lux-zinc-50);
  --lux-bg-raised: #ffffff;
  --lux-border: var(--lux-zinc-200);
  --lux-border-strong: var(--lux-zinc-300);
  --lux-text: var(--lux-zinc-900);
  --lux-text-muted: var(--lux-zinc-600);
  --lux-text-faint: var(--lux-zinc-500);
  --lux-invert-bg: var(--lux-zinc-900);
  --lux-invert-text: #ffffff;
  --lux-logo-filter: invert(1);

  --lux-space-section: 6rem;
  --lux-measure: 65ch;
  --lux-max: 80rem;
  --lux-ease: cubic-bezier(0.22, 1, 0.36, 1);

  --lux-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --lux-bg: var(--lux-zinc-950);
  --lux-bg-subtle: #101012;
  --lux-bg-raised: var(--lux-zinc-900);
  --lux-border: var(--lux-zinc-800);
  --lux-border-strong: var(--lux-zinc-700);
  --lux-text: var(--lux-zinc-50);
  --lux-text-muted: var(--lux-zinc-400);
  --lux-text-faint: var(--lux-zinc-500);
  --lux-invert-bg: #ffffff;
  --lux-invert-text: var(--lux-zinc-900);
  --lux-logo-filter: none;
}

/* ==========================================================================
   Base
   ========================================================================== */

html {
  scroll-behavior: smooth;
  /* Anchored sections would otherwise land under the fixed header, and under
     the admin bar too when one is present. */
  scroll-padding-top: calc(6rem + var(--lux-admin-bar, 0px));
}
body.luxpro {
  margin: 0;
  background: var(--lux-bg);
  color: var(--lux-text);
  font-family: var(--lux-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Reveals body once this stylesheet parses. Paired with the inline
     critical CSS which sets visibility: hidden — no FOUC in either
     direction, no dependence on JS. */
  visibility: visible;
}

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

/* ==========================================================================
   Hardening
   Every rule below is scoped to body.luxpro purely to raise specificity. The
   parent theme and plugins style bare `button` and `img` elements, and a rule
   like `body.luxpro img` (0,1,2) beats `.lux-logo img` (0,1,1) — which is how
   the logo ended up rendering at its full 3454px width. Anything that must not
   lose that fight lives here.
   ========================================================================== */

body.luxpro .lux-logo img {
  height: 2rem;
  width: auto;
  max-width: none;
}

/* Inline SVGs carry only a viewBox, so without an explicit size they fall back
   to the 300x150 default or stretch to their container — which is how a quote
   mark rendered at 384px. One base size, overridden per context below. */
body.luxpro .lux-icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

body.luxpro .lux-icon-btn .lux-icon {
  width: 1.25rem;
  height: 1.25rem;
}

body.luxpro .lux-lang .lux-icon {
  width: 1rem;
  height: 1rem;
}

body.luxpro .lux-quote .lux-icon {
  width: 2rem;
  height: 2rem;
  color: var(--lux-border-strong);
  margin-bottom: 1.5rem;
}

body.luxpro .lux-dialog__close .lux-icon {
  width: 1.5rem;
  height: 1.5rem;
}
/* Parent themes commonly give bare buttons a background,
radius and shadow.
   These are the components that must keep their own look. */
body.luxpro .lux-btn,
body.luxpro .lux-icon-btn,
body.luxpro .lux-card,
body.luxpro .lux-dialog__close,
body.luxpro .lux-dialog__backdrop {
  border-radius: 0;
  box-shadow: none;
  text-shadow: none;
  background-image: none;
  font-family: inherit;
  line-height: inherit;
  text-transform: none;
  letter-spacing: normal;
}
body.luxpro .lux-icon-btn {
  background-color: transparent;
  border: 0;
  color: var(--lux-text-muted);
  padding: 0;
}
body.luxpro .lux-icon-btn:hover {
  background-color: transparent;
  color: var(--lux-text);
}
/* Button variants live below — kept out of the hardening block so their
   double-classed selector (.lux-btn.lux-btn--primary) sits alongside the
   base .lux-btn rule and beats .lux-nav a on specificity. */
body.luxpro .lux-card {
  background-color: var(--lux-bg-subtle);
  border: 1px solid var(--lux-border);
  color: inherit;
  padding: 0;
}
body.luxpro .lux-filter {
  border-radius: 0;
  box-shadow: none;
  background-color: var(--lux-bg-raised);
  border: 1px solid var(--lux-border);
  color: var(--lux-text-muted);
}
body.luxpro .lux-filter[aria-pressed="true"] {
  background-color: var(--lux-invert-bg);
  border-color: var(--lux-invert-bg);
  color: var(--lux-invert-text);
}
body.luxpro .lux-option span {
  border-radius: 0;
}

.lux-wrap {
  max-width: var(--lux-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.lux-section {
  padding-block: var(--lux-space-section);
}
body.luxpro .lux-section--subtle {
  background: var(--lux-bg-subtle);
}
body.luxpro .lux-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lux-text-faint);
  margin-bottom: 0.75rem;
}
body.luxpro .lux-h2 {
  /* Explicit rather than inherited — the sweep only scoped rules that
     already set a vulnerable property, and this one didn't. Elementor's
     .elementor-kit-N h2 rule beats inheritance the same way it beat
     .lux-hero__title. */
  color: var(--lux-text);
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1rem;
}
body.luxpro .lux-lede {
  color: var(--lux-text-muted);
  max-width: var(--lux-measure);
  margin: 0;
}

/* Numerals line up in stat rows and step numbers. */
.lux-tabular {
  font-variant-numeric: tabular-nums;
}
/* ==========================================================================
   Accessibility primitives
   ========================================================================== */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Hello Elementor ships focus:outline-none in places; this restores a visible
   ring for keyboard users without showing it on mouse clicks. */
:where(a,
button,
input,
textarea,
select,
[tabindex]):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 1px;
}
body.luxpro .lux-skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--lux-zinc-950);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.lux-skip-link:focus {
  top: 1rem;
}

/* Every interactive control clears the 44px minimum. */
.lux-tap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
/* ==========================================================================
   Header
   ========================================================================== */

.lux-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

/* The admin bar is fixed at the top for logged-in users and would otherwise
   sit on top of everything fixed here. It is 32px wide-screen, 46px below
   783px, and on small screens it scrolls away instead of staying fixed. */
.admin-bar .lux-header,
.admin-bar .lux-progress {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .lux-header,
  .admin-bar .lux-progress {
    top: 46px;
  }
}

@media screen and (max-width: 600px) {
  /* Below 600px WordPress stops pinning the bar, so the offset must go. */
  .admin-bar .lux-header,
  .admin-bar .lux-progress {
    top: 0;
  }
}

.admin-bar {
  --lux-admin-bar: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar {
    --lux-admin-bar: 46px;
  }
}

@media screen and (max-width: 600px) {
  .admin-bar {
    --lux-admin-bar: 0px;
  }
}
body.luxpro .lux-header.is-scrolled {
  background: color-mix(in srgb, var(--lux-bg) 75%, transparent);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--lux-border);
}

.lux-header__inner {
  max-width: var(--lux-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lux-logo img {
  height: 2rem;
  width: auto;
  display: block;
  /* Only a white logo exists, so light mode inverts it. */
  filter: var(--lux-logo-filter);
}

.lux-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}
body.luxpro .lux-nav a {
  color: var(--lux-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding-block: 0.75rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}
body.luxpro .lux-nav a:hover {
  color: var(--lux-text);
}

.lux-header__tools {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
body.luxpro .lux-icon-btn {
  background: none;
  border: 0;
  color: var(--lux-text-muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.875rem;
}
body.luxpro .lux-icon-btn:hover {
  color: var(--lux-text);
}

.lux-icon-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}
body.luxpro .lux-lang {
  gap: 0.35rem;
  text-decoration: none;
  padding-inline: 0.5rem;
}

.lux-lang svg {
  width: 1rem;
  height: 1rem;
}
body.luxpro .lux-mobile-panel {
  display: none;
  border-top: 1px solid var(--lux-border);
  background: var(--lux-bg-raised);
  padding: 1.5rem;
}

.lux-mobile-panel.is-open {
  display: block;
}
body.luxpro .lux-mobile-panel a {
  display: block;
  padding-block: 0.5rem;
  min-height: 44px;
  color: var(--lux-text);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .lux-nav {
    display: flex;
  }
  .lux-menu-toggle,
  .lux-mobile-panel {
    display: none !important;
  }
}
/* ==========================================================================
   Buttons
   ========================================================================== */

.lux-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.9375rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
/* Double-classed to lift specificity to (0,2,1), matching .lux-nav a and
   .lux-footer__links a — a primary button dropped into the nav or footer
   would otherwise inherit the link colour instead of showing its own. */
body.luxpro .lux-btn.lux-btn--primary {
  background: var(--lux-invert-bg);
  color: var(--lux-invert-text);
}
body.luxpro .lux-btn.lux-btn--primary:hover {
  background: color-mix(in srgb, var(--lux-invert-bg) 85%, var(--lux-bg));
}
body.luxpro .lux-btn.lux-btn--ghost {
  border-color: var(--lux-border-strong);
  color: var(--lux-text);
}
body.luxpro .lux-btn.lux-btn--ghost:hover {
  background: var(--lux-bg-subtle);
}
body.luxpro .lux-btn.lux-btn--compact {
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.lux-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   Effects
   Plain CSS, no JS animation library. This is the whole reason the React
   build used CSS for these — they move over unchanged.
   ========================================================================== */

.lux-lift {
  transition: transform 0.4s var(--lux-ease), box-shadow 0.4s ease;
}

.lux-lift:hover,
.lux-lift:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.55);
}

.lux-sheen {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
body.luxpro .lux-sheen::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.22), transparent);
  transition: transform 0.75s var(--lux-ease);
  pointer-events: none;
}

.lux-sheen:hover::after,
.lux-sheen:focus-visible::after {
  transform: translateX(120%) skewX(-18deg);
}

.lux-underline {
  position: relative;
}
body.luxpro .lux-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--lux-ease);
}

.lux-underline:hover::after,
.lux-underline:focus-visible::after {
  transform: scaleX(1);
}
/* Reading progress. Uses the scroll timeline where supported and simply
   stays invisible where it is not — no JS scroll listener either way. */
.lux-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--lux-zinc-400), var(--lux-text));
  z-index: 60;
}

@supports (animation-timeline: scroll()) {
  .lux-progress {
    animation: lux-progress-grow linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes lux-progress-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

/* Sections fade in as they enter the viewport. The no-js and unsupported
   cases leave content visible — never hide content behind an effect. */
.lux-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--lux-ease), transform 0.6s var(--lux-ease);
}

.lux-reveal.is-visible,
.no-js .lux-reveal {
  opacity: 1;
  transform: none;
}
/* ==========================================================================
   Hero
   ========================================================================== */

.lux-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  overflow: hidden;
  background: var(--lux-bg-subtle);
  text-align: center;
}

.lux-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lux-hero__poster,
.lux-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.2;
  transition: opacity 0.7s ease;
}

[data-theme="dark"] .lux-hero__poster,
[data-theme="dark"] .lux-hero__video {
  opacity: 0.1;
}

/* The script adds/removes this once playback is confirmed; until then (no JS,
   reduced motion, autoplay blocked, slow network) the poster is fully opaque
   and the video fully transparent, so a still image is always what shows. */
.lux-hero__video {
  opacity: 0;
}

.lux-hero__bg.is-playing .lux-hero__poster {
  opacity: 0;
}

.lux-hero__bg.is-playing .lux-hero__video {
  opacity: 0.2;
}

[data-theme="dark"] .lux-hero__bg.is-playing .lux-hero__video {
  opacity: 0.1;
}
body.luxpro .lux-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, transparent, var(--lux-bg-subtle));
}

.lux-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* This is a flex item of .lux-hero. Without these it shrink-to-fits and
     min-width:auto stops it going below its content's min-content width, so
     on a narrow screen it grew past the viewport and .lux-hero's
     overflow:hidden clipped the headline on both sides. */
  width: 100%;
  min-width: 0;
}
body.luxpro .lux-hero__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--lux-border-strong);
  background: var(--lux-bg-raised);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lux-text-muted);
  margin-bottom: 2rem;
}
/* Explicit color rather than inheriting: Hello Elementor and Elementor Pro
   both style bare h1/h2 with an .elementor-kit-N ancestor at (0,
1,
1),
which
   beats a plain .lux-hero__title (0,
1,
0) — the same specificity pattern that
   put pink on the buttons. body.luxpro raises this to (0,
2,
1) so a var()
   reference wins and follows the light/dark theme. */
body.luxpro .lux-hero__title {
  color: var(--lux-text);
  font-size: clamp(1.875rem, 1rem + 3.6vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 56rem;
  margin: 0 0 1.5rem;
}
body.luxpro .lux-hero__title em {
  color: var(--lux-text-faint);
  font-style: italic;
  font-weight: 300;
}
body.luxpro .lux-hero__subtitle {
  font-size: 1.125rem;
  color: var(--lux-text-muted);
  max-width: 42rem;
  margin: 0 0 2.5rem;
}

.lux-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
body.luxpro .lux-stats {
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--lux-border);
  width: 100%;
  max-width: 48rem;
  display: grid;
  /* min() lets a column fall below 140px rather than forcing the track wider
     than the viewport, which is what pushed the whole hero out of bounds. */
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: 2rem;
}
body.luxpro .lux-stat__value {
  display: block;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  font-weight: 300;
}
body.luxpro .lux-stat__label {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--lux-text-faint);
}

/* ==========================================================================
   Services (three-card grid)
   The three tracks used to be two tabs. Now every card is its own product,
   equally weighted. auto-fit + minmax lets them wrap gracefully — three
   across on desktop, two on tablet, one on phone — without a breakpoint
   ladder to maintain.
   ========================================================================== */

.lux-services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  align-items: stretch;
}

body.luxpro .lux-service {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--lux-border);
  background: var(--lux-bg-raised);
  color: var(--lux-text);
}

body.luxpro .lux-service__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  color: var(--lux-text-faint);
}

body.luxpro .lux-service__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

body.luxpro .lux-service .lux-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--lux-text);
}

body.luxpro .lux-service__label {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lux-text-faint);
}

body.luxpro .lux-service__desc {
  margin: 0 0 1.75rem;
  color: var(--lux-text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

body.luxpro .lux-service__features {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  /* Pushes the CTA to the bottom of every card so all three CTAs line up
     regardless of how many features each card lists. */
  flex: 1 1 auto;
}

body.luxpro .lux-service__features li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.875rem;
  color: var(--lux-text);
}

body.luxpro .lux-service__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--lux-text-faint);
}

body.luxpro .lux-service__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--lux-text);
  align-self: flex-start;
}

/* ==========================================================================
   Portfolio
   ========================================================================== */

.lux-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

/* The filters do nothing without JS, so they are not offered without it. */
.no-js .lux-filters {
  display: none;
}
body.luxpro .lux-filter {
  padding: 0.75rem 1.25rem;
  min-height: 44px;
  border: 1px solid var(--lux-border);
  background: var(--lux-bg-raised);
  color: var(--lux-text-muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
body.luxpro .lux-filter:hover {
  color: var(--lux-text);
  border-color: var(--lux-border-strong);
}
body.luxpro .lux-filter[aria-pressed="true"] {
  background: var(--lux-invert-bg);
  border-color: var(--lux-invert-bg);
  color: var(--lux-invert-text);
}
body.luxpro .lux-empty {
  border: 1px dashed var(--lux-border-strong);
  background: var(--lux-bg-subtle);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--lux-text-muted);
  margin: 0;
}
body.luxpro .lux-empty strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  color: var(--lux-text);
}

.lux-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

/* hidden alone loses to the grid's display, so it needs restating. */
.lux-grid[hidden],
.lux-card[hidden],
.lux-empty[hidden] {
  display: none;
}
body.luxpro .lux-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--lux-border);
  background: var(--lux-bg-subtle);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
body.luxpro .lux-card:hover {
  border-color: var(--lux-border-strong);
}

/* .lux-card is a <button>, which cannot legally nest block elements. The card's
   children are all <span>s — which are inline by default. aspect-ratio is
   silently ignored on inline elements, which is why the media collapsed to a
   19px strip and the caption fell out. display:block on every span rescues the
   layout without breaking the button semantics. */
.lux-card__media,
.lux-card__meta,
.lux-card__cat,
.lux-card__title {
  display: block;
}

.lux-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
}

.lux-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--lux-ease);
}

.lux-card:hover .lux-card__media img {
  transform: scale(1.05);
}
/* Solid at the bottom rather than "fading in near the top" — the caption sits
   on the lower quarter of the image,
so that is the part that must stay dark
   enough for white text regardless of what the underlying photo shows. */
.lux-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(0 0 0 / 0.85) 0%,
    rgb(0 0 0 / 0.65) 25%,
    rgb(0 0 0 / 0.15) 55%,
    transparent 80%
  );
  pointer-events: none;
}

.lux-card__meta {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  /* Belt-and-suspenders for the caption's contrast: even on the light Muratsi
     screenshot, the white text is readable against its own shadow. */
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.6);
}
body.luxpro .lux-card__cat {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lux-zinc-300);
}
body.luxpro .lux-card__title {
  margin: 0.25rem 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}
/* ==========================================================================
   Dialog (case study)
   ========================================================================== */

.lux-dialog {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  /* isolation and contain stop any hover overlays from the underlying page
     (Pinterest "Save" pins, browser image tooltips) bleeding into the panel. */
  isolation: isolate;
  contain: layout;
}

.lux-dialog[hidden] {
  display: none;
}
body.luxpro .lux-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--lux-bg) 90%, transparent);
  backdrop-filter: blur(16px);
  border: 0;
  padding: 0;
  cursor: pointer;
}
body.luxpro .lux-dialog__panel {
  position: relative;
  width: 100%;
  max-width: 64rem;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--lux-bg-raised);
  border: 1px solid var(--lux-border);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}
/* The close button sits over the hero,
so it needs its own contrast rather
   than relying on the image behind it. Solid dark pill with a thin ring works
   on both a bright PadelMerch phone shot and a nearly-black Phiarca frame. */
.lux-dialog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  padding: 0.75rem;
  background: rgb(0 0 0 / 0.7);
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
body.luxpro .lux-dialog__close:hover {
  background: rgb(0 0 0 / 0.9);
}
/* Portfolio screenshots have to be seen in full — cropping them (as the old
   cover did) is the whole reason the dialog exists. Contain preserves every
   pixel; the neutral swatch behind it matches whatever tone the image has. */
.lux-dialog__hero {
  position: relative;
  background: var(--lux-zinc-950);
  aspect-ratio: 16 / 9;
  max-height: 60vh;
  overflow: hidden;
}

.lux-dialog__hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* The title used to sit on top of the image and covered its content. It now
   lives below the hero as an ordinary heading, so nothing important gets
   obscured — the artwork gets its own space, and the title has room to
   breathe. The gradient overlay came with the old absolute layout and no
   longer earns its keep. */
.lux-dialog__hero::after {
  content: none;
}
body.luxpro .lux-dialog__heading {
  padding: 1.5rem 2rem 0.5rem;
  margin: 0;
  color: var(--lux-text);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
}
body.luxpro .lux-dialog__client {
  padding: 0 2rem;
  margin: 0 0 1.5rem;
  color: var(--lux-text-faint);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
body.luxpro .lux-dialog__body {
  padding: 0 2rem 2rem;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
body.luxpro .lux-dialog__heading {
    padding: 2rem 3rem 0.5rem;
    font-size: clamp(1.75rem, 1rem + 2vw, 2.5rem);
  }
body.luxpro .lux-dialog__client {
    padding: 0 3rem;
  }
body.luxpro .lux-dialog__body {
    grid-template-columns: 2fr 1fr;
    padding: 0 3rem 3rem;
    gap: 3rem;
  }
}
body.luxpro .lux-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem 0.5rem 0;
  background: var(--lux-bg-subtle);
  border: 1px solid var(--lux-border);
  font-size: 0.875rem;
}
body.luxpro .lux-metrics {
  background: var(--lux-bg-subtle);
  border: 1px solid var(--lux-border);
  padding: 1.5rem;
  margin-bottom: 2rem;
  list-style: none;
}
body.luxpro .lux-metrics li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.lux-metrics li:last-child {
  margin-bottom: 0;
}
body.luxpro .lux-metrics li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--lux-text);
  flex: none;
}

/* ==========================================================================
   Why LuxPro — four value-prop cards
   Deliberately simpler than the services cards: no icon, no CTA. These are
   claims, not offerings, so extra chrome would only add noise. Left-aligned
   text on a subtle-tone card keeps them scannable in a row of four.
   ========================================================================== */

.lux-why-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

body.luxpro .lux-why {
  padding: 2rem;
  background: var(--lux-bg-raised);
  border: 1px solid var(--lux-border);
}

body.luxpro .lux-why__title {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--lux-text);
  line-height: 1.3;
}

body.luxpro .lux-why__body {
  margin: 0;
  color: var(--lux-text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ==========================================================================
   FAQ (native <details>/<summary> accordion)
   Uses the browser primitive for open/close, keyboard support and no-JS
   compatibility. The chevron rotates via CSS on the [open] attribute.
   Every item is independently openable — no exclusive-open behaviour,
   because someone might want two answers side by side.
   ========================================================================== */

body.luxpro .lux-faq {
  border-top: 1px solid var(--lux-border);
}

body.luxpro .lux-faq__item {
  border-bottom: 1px solid var(--lux-border);
}

/* Removes the disclosure triangle Safari/Chrome show by default so our
   own chevron is the only affordance. */
body.luxpro .lux-faq__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--lux-text);
}

body.luxpro .lux-faq__q::-webkit-details-marker {
  display: none;
}

body.luxpro .lux-faq__q:hover {
  color: var(--lux-text-muted);
}

body.luxpro .lux-faq__chevron {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  color: var(--lux-text-faint);
  transition: transform 0.2s ease;
}

body.luxpro .lux-faq__item[open] .lux-faq__chevron {
  transform: rotate(180deg);
}

body.luxpro .lux-faq__a {
  padding: 0 3rem 1.5rem 0;
}

body.luxpro .lux-faq__a p {
  margin: 0;
  color: var(--lux-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Process / Testimonials / About
   ========================================================================== */

.lux-steps {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
body.luxpro .lux-step__num {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--lux-border);
  background: var(--lux-bg-raised);
  font-weight: 700;
  margin-bottom: 1rem;
}
body.luxpro .lux-step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
body.luxpro .lux-step p {
  color: var(--lux-text-muted);
  font-size: 0.9375rem;
  margin: 0;
}
body.luxpro .lux-quote {
  background: var(--lux-bg-subtle);
  border: 1px solid var(--lux-border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
}
body.luxpro .lux-quote blockquote {
  margin: 0 0 2rem;
  color: var(--lux-text-muted);
  quotes: "\201C" "\201D";
}

.lux-quote blockquote::before {
  content: open-quote;
}

.lux-quote blockquote::after {
  content: close-quote;
}
body.luxpro .lux-quote figcaption strong {
  display: block;
  color: var(--lux-text);
}
body.luxpro .lux-quote figcaption span {
  display: block;
  font-size: 0.875rem;
  color: var(--lux-text-faint);
}

.lux-about {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .lux-about {
    grid-template-columns: 1fr 1fr;
  }
}

/* The caption <p> is a sibling of .lux-about__photo, so capping and centring
   both is done here on their shared parent rather than each independently —
   otherwise the caption ends up left-aligned to the column while the photo
   floats in the middle. Targets the first child of the .lux-about grid
   regardless of what class it happens to have (.lux-reveal in the real
   template, unclassed in the harness). */
.lux-about > *:first-child {
  max-width: 22rem;
  margin-inline: auto;
  width: 100%;
}

.lux-about__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

/* body.luxpro img { height: auto } (0,1,2) beats a plain .lux-about__photo img
   (0,1,1), so the image collapses to its intrinsic height and the 4:5 frame
   ends up half-empty. Same specificity trap that hit the logo — same fix. */
body.luxpro .lux-about__photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.7s ease;
}

.lux-about__photo:hover img {
  filter: grayscale(0);
}
body.luxpro .lux-skills {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
body.luxpro .lux-skills li {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--lux-border);
  background: var(--lux-bg-subtle);
  font-size: 0.8125rem;
}
/* ==========================================================================
   Contact form
   ========================================================================== */

.lux-form {
  background: var(--lux-bg-raised);
  border: 1px solid var(--lux-border);
  padding: 2rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
body.luxpro .lux-form {
    padding: 3rem;
  }
}

.lux-field {
  display: grid;
  gap: 0.5rem;
}
body.luxpro .lux-field label,
body.luxpro .lux-fieldset legend {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lux-text-muted);
  padding: 0;
}
body.luxpro .lux-field input,
body.luxpro .lux-field textarea {
  width: 100%;
  padding: 1rem;
  background: var(--lux-bg-subtle);
  border: 1px solid var(--lux-border);
  color: var(--lux-text);
  font: inherit;
  box-sizing: border-box;
}

.lux-field textarea {
  resize: vertical;
  min-height: 8rem;
}
body.luxpro .lux-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.lux-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

/* The radio stays in flow at 1px and keeps pointer events, because a `required`
   control that the browser considers unfocusable makes Chrome refuse to submit
   with "An invalid form control is not focusable" and no visible message.
   Hiding it with display:none or pointer-events:none reintroduces that. */
.lux-option {
  position: relative;
  display: block;
}
body.luxpro .lux-option input {
  position: absolute;
  left: 1rem;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
}
body.luxpro .lux-option span {
  display: block;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--lux-border);
  background: var(--lux-bg-subtle);
  font-size: 0.875rem;
  color: var(--lux-text-faint);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
body.luxpro .lux-option input:checked + span {
  background: var(--lux-invert-bg);
  border-color: var(--lux-invert-bg);
  color: var(--lux-invert-text);
}

.lux-option input:focus-visible + span {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Honeypot: off-screen and hidden from assistive tech, but not display:none —
   bots skip fields that are truly hidden. */
.lux-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
body.luxpro .lux-notice {
  padding: 1rem;
  border: 1px solid;
  font-size: 0.9375rem;
}
body.luxpro .lux-notice--error {
  color: #b91c1c;
  border-color: rgb(239 68 68 / 0.3);
  background: rgb(239 68 68 / 0.05);
}
[data-theme="dark"] .lux-notice--error {
  color: #f87171;
}
body.luxpro .lux-notice--success {
  text-align: center;
  padding: 3rem 1rem;
  border-color: rgb(34 197 94 / 0.3);
  background: rgb(34 197 94 / 0.05);
}
/* ==========================================================================
   Footer
   ========================================================================== */

.lux-footer {
  padding-block: 2rem;
  background: var(--lux-bg-subtle);
  border-top: 1px solid var(--lux-border);
}
body.luxpro .lux-footer__inner {
  max-width: var(--lux-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--lux-text-faint);
}

.lux-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
body.luxpro .lux-footer__links a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
body.luxpro .lux-footer__links a:hover {
  color: var(--lux-text);
}

/* ==========================================================================
   Motion preferences
   Vestibular disorders make large transforms genuinely unpleasant, so honour
   the OS setting everywhere.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .lux-lift:hover,
  .lux-lift:focus-visible {
    transform: none;
  }
  .lux-sheen::after,
  .lux-progress {
    display: none;
  }
  .lux-reveal {
    opacity: 1;
    transform: none;
  }
  /* Belt-and-suspenders alongside the JS check: even if the video were
     somehow already playing, it must never be what's visible here. */
  .lux-hero__bg.is-playing .lux-hero__poster {
    opacity: 0.2;
  }
  [data-theme="dark"] .lux-hero__bg.is-playing .lux-hero__poster {
    opacity: 0.1;
  }
  .lux-hero__bg.is-playing .lux-hero__video {
    opacity: 0;
  }
}
