/* ==========================================================================
   Homepage sections (templates/webapp/home/sections/*.html)
   ---------------------------------------------------------------------------
   All colours come from the --hp-* tokens below. Dark is the default; the
   html[data-theme="light"] block swaps them when Light is chosen in
   Site Settings. Photo-based blocks (service cards, project cards, CTA band)
   keep light text in both modes because they sit on images.
   ========================================================================== */

.lux-home {
  /* ── dark (default) ── */
  --hp-bg:          #0D0D0B;
  --hp-bg-alt:      #12120E;
  --hp-surface:     #18180F;
  --hp-surface-2:   #1F1F17;
  --hp-line:        rgba(245, 240, 232, .09);
  --hp-line-strong: rgba(245, 240, 232, .18);
  --hp-text:        #F5F0E8;
  --hp-heading:     #FFFFFF;
  --hp-muted:       rgba(245, 240, 232, .64);
  --hp-gold:        #C9A84C;
  --hp-gold-hi:     #E8C97A;
  --hp-gold-ink:    #0D0D0B;          /* text on gold buttons */
  --hp-gold-soft:   rgba(201, 168, 76, .10);
  --hp-gold-line:   rgba(201, 168, 76, .32);
  --hp-red:         #D64B5A;
  --hp-red-soft:    rgba(214, 75, 90, .12);
  --hp-shadow:      0 30px 80px -30px rgba(0, 0, 0, .65);
  --hp-shadow-sm:   0 14px 40px -18px rgba(0, 0, 0, .6);
  --hp-photo-ink:   #0D0D0B;

  --hp-serif: var(--ff-display, 'Cormorant Garamond', Georgia, serif);
  --hp-sans:  var(--ff-body, 'DM Sans', system-ui, sans-serif);
  --hp-ease:  cubic-bezier(.22, .61, .36, 1);
  --hp-pad:   clamp(56px, 6.4vw, 92px);

  background: var(--hp-bg);
  color: var(--hp-text);
}

html[data-theme="light"] .lux-home {
  --hp-bg:          #FBFAF7;
  --hp-bg-alt:      #F3F0E9;
  --hp-surface:     #FFFFFF;
  --hp-surface-2:   #F7F4EE;
  --hp-line:        rgba(28, 30, 26, .09);
  --hp-line-strong: rgba(28, 30, 26, .18);
  --hp-text:        #2A2E33;
  --hp-heading:     #15181C;
  --hp-muted:       #626A73;
  --hp-gold:        #9B741D;
  --hp-gold-hi:     #B8902F;
  --hp-gold-ink:    #FFFFFF;
  --hp-gold-soft:   rgba(155, 116, 29, .08);
  --hp-gold-line:   rgba(155, 116, 29, .30);
  --hp-red:         #B4283A;
  --hp-red-soft:    rgba(180, 40, 58, .07);
  --hp-shadow:      0 30px 70px -32px rgba(31, 35, 40, .28);
  --hp-shadow-sm:   0 14px 36px -20px rgba(31, 35, 40, .25);
}

.lux-home .container { width: min(100%, 1240px); }

/* ── Section shell ────────────────────────────────────────────────── */
.hp-section {
  position: relative;
  padding: var(--hp-pad) 0;
  background: var(--hp-bg);
}

.hp-section--alt { background: var(--hp-bg-alt); }
.hp-section--tight { padding: clamp(44px, 4.6vw, 66px) 0; }

.hp-section + .hp-section:not(.hp-section--alt):not(.hp-contact)::before,
.hp-section--alt + .hp-section--alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1240px, calc(100% - 36px));
  height: 1px;
  background: var(--hp-line);
  transform: translateX(-50%);
}

/* ── Typography ───────────────────────────────────────────────────── */
.hp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--hp-gold);
  font-family: var(--hp-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.hp-eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.hp-eyebrow--red { color: var(--hp-red); }

.lux-home .hp-title {
  margin: 18px 0 0;
  font-family: var(--hp-serif);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--hp-heading);
  text-wrap: balance;
}

.lux-home .hp-title--sm { font-size: clamp(28px, 3vw, 40px); }

.lux-home .hp-title em,
.lux-home .hp-cta h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--hp-gold);
}

.hp-intro,
.hp-lead {
  margin: 0;
  color: var(--hp-muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
}

.hp-lead { font-size: 17px; color: var(--hp-text); opacity: .86; }

.hp-empty { color: var(--hp-muted); font-size: 15px; }
.hp-center { display: flex; justify-content: center; margin-top: 40px; }

/* section headers */
.hp-head { margin-bottom: clamp(30px, 3.4vw, 46px); }

.hp-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
}

.hp-head--split > .hp-intro { padding-bottom: 6px; max-width: 420px; justify-self: end; }
.hp-head--split > .hp-btn,
.hp-head__aside { justify-self: end; }

.hp-head--center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.hp-head--center .hp-eyebrow::after {
  content: '';
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 0;
  background: none;
  font-family: var(--hp-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s var(--hp-ease), box-shadow .3s ease;
}

.hp-btn svg,
.hp-service__cta svg,
.hp-story__cta svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s var(--hp-ease);
}

.hp-btn:hover svg { transform: translateX(4px); }

.hp-btn--gold {
  background: var(--hp-gold);
  color: var(--hp-gold-ink);
  box-shadow: 0 16px 40px -16px rgba(201, 168, 76, .7);
}

.hp-btn--gold:hover { background: var(--hp-gold-hi); color: var(--hp-gold-ink); transform: translateY(-2px); }

.hp-btn--line {
  border-color: var(--hp-gold-line);
  color: var(--hp-heading);
}

.hp-btn--line:hover { border-color: var(--hp-gold); color: var(--hp-gold); }

.hp-btn--ghost {
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}

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

.hp-btn--red { background: var(--hp-red); color: #fff; }
.hp-btn--red:hover { filter: brightness(1.08); color: #fff; transform: translateY(-2px); }

.hp-btn--block { width: 100%; }

.lux-home a:focus-visible,
.lux-home button:focus-visible,
.lux-home input:focus-visible,
.lux-home select:focus-visible,
.lux-home textarea:focus-visible {
  outline: 2px solid var(--hp-gold);
  outline-offset: 3px;
}

/* ══ Services ═════════════════════════════════════════════════════════ */
.hp-services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.hp-service {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4.3;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: var(--hp-photo-ink);
  box-shadow: var(--hp-shadow-sm);
}

.hp-service__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
}

.hp-service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.1s var(--hp-ease), filter .6s ease;
}

.hp-service::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 8, .05) 20%, rgba(10, 10, 8, .55) 55%, rgba(10, 10, 8, .94) 100%);
  transition: background .5s ease;
}

.hp-service::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(232, 201, 122, 0);
  pointer-events: none;
  transition: border-color .5s ease, inset .5s var(--hp-ease);
}

.hp-service__no {
  position: absolute;
  top: 22px;
  left: 24px;
  font-family: var(--hp-serif);
  font-size: 22px;
  font-style: italic;
  color: rgba(255, 255, 255, .85);
}

.hp-service__body { padding: 26px 24px 26px; }

.hp-service h3 {
  margin: 0;
  font-family: var(--hp-serif);
  font-size: clamp(24px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}

.hp-service p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1.6;
}

.hp-service__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: #E8C97A;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hp-service:hover .hp-service__media img { transform: scale(1.09); }
.hp-service:hover::after { inset: 10px; border-color: rgba(232, 201, 122, .55); }
.hp-service:hover .hp-service__cta svg { transform: translateX(6px); }

/* ══ Projects ═════════════════════════════════════════════════════════ */
.hp-filter {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--hp-line-strong);
  background: var(--hp-surface);
}

.hp-filter button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--hp-muted);
  font-family: var(--hp-sans);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}

.hp-filter button:hover { color: var(--hp-heading); }
.hp-filter button.active { background: var(--hp-gold); color: var(--hp-gold-ink); }

.hp-projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 260px;
  grid-auto-flow: dense;
  gap: 20px;
}

.hp-project {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: var(--hp-photo-ink);
}

.hp-project[hidden] { display: none; }

/* bento: the first visible card is the large one */
.hp-projects__grid .hp-project:first-child { grid-column: span 2; grid-row: span 2; }

.hp-project__media { position: absolute; inset: 0; z-index: -2; margin: 0; }

.hp-project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--hp-ease);
}

.hp-project::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 10, 8, .88) 100%);
}

.hp-project:hover .hp-project__media img { transform: scale(1.06); }

.hp-chip {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(13, 13, 11, .55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hp-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E8C97A;
}

.hp-chip--running::before { background: #5BD08A; box-shadow: 0 0 0 4px rgba(91, 208, 138, .2); }
.hp-chip--upcoming::before { background: #7FB2FF; }

.hp-project__body { padding: 24px 26px; max-width: 560px; }

.hp-project h3 {
  margin: 0;
  font-family: var(--hp-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.12;
  color: #fff;
}

.hp-projects__grid .hp-project:first-child h3 { font-size: clamp(28px, 3vw, 38px); }

.hp-project p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}

.hp-project p svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: #E8C97A;
  stroke-width: 1.5;
}

.hp-project__go {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #C9A84C;
  color: #0D0D0B;
  opacity: 0;
  transform: scale(.7) rotate(-45deg);
  transition: opacity .35s ease, transform .45s var(--hp-ease);
}

.hp-project__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.hp-project:hover .hp-project__go { opacity: 1; transform: none; }

/* ══ Why choose us ════════════════════════════════════════════════════ */
.hp-why__layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.hp-why__intro { position: sticky; top: calc(var(--nav-h, 60px) + 40px); }
.hp-why__intro .hp-intro { margin: 22px 0 34px; max-width: 440px; }

.hp-why__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hp-line-strong);
  border-left: 1px solid var(--hp-line);
}

.hp-feature {
  position: relative;
  padding: 34px 32px 36px;
  border-right: 1px solid var(--hp-line);
  border-bottom: 1px solid var(--hp-line);
  transition: background .4s ease;
}

.hp-feature::before {
  content: '';
  position: absolute;
  left: -1px;
  top: -1px;
  width: 0;
  height: 2px;
  background: var(--hp-gold);
  transition: width .5s var(--hp-ease);
}

.hp-feature:hover { background: var(--hp-gold-soft); }
.hp-feature:hover::before { width: calc(100% + 1px); }

.hp-feature__top { display: flex; justify-content: space-between; align-items: flex-start; }

.hp-feature__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hp-gold-line);
  border-radius: 50%;
  background: var(--hp-surface);
}

.hp-feature__icon img { width: 26px; height: 26px; object-fit: contain; }
html:not([data-theme="light"]) .hp-feature__icon img { filter: brightness(0) invert(1) sepia(.5) saturate(3) hue-rotate(5deg) brightness(.95); }
.hp-feature__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--hp-gold); stroke-width: 1.6; }

.hp-feature__no {
  font-family: var(--hp-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--hp-muted);
  opacity: .7;
}

.hp-feature h3 {
  margin: 26px 0 10px;
  font-family: var(--hp-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--hp-heading);
}

.hp-feature p { margin: 0; color: var(--hp-muted); font-size: 14.5px; line-height: 1.7; }

/* ══ About ════════════════════════════════════════════════════════════ */
.hp-about__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}

.hp-about__visual { position: relative; padding: 0 0 36px 36px; }

.hp-about__visual::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70%;
  height: 70%;
  border: 1px solid var(--hp-gold-line);
}

.hp-about__frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--hp-surface);
  box-shadow: var(--hp-shadow);
}

/* show the whole image at its natural proportions (no cropping) */
.hp-about__frame img { display: block; width: 100%; height: auto; min-height: 160px; }

.hp-about__badge {
  position: absolute;
  right: -18px;
  top: -18px;
  display: grid;
  gap: 2px;
  padding: 20px 26px;
  background: var(--hp-gold);
  color: var(--hp-gold-ink);
  box-shadow: var(--hp-shadow-sm);
}

.hp-about__badge small { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; opacity: .8; }
.hp-about__badge strong { font-family: var(--hp-serif); font-size: 40px; font-weight: 600; line-height: 1; }

.hp-about__copy .hp-lead { margin: 24px 0 28px; }

.hp-ticks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0 0 38px;
  padding: 26px 0 0;
  border-top: 1px solid var(--hp-line);
  list-style: none;
}

.hp-ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--hp-text);
  font-size: 14.5px;
}

.hp-ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 8px;
  border-left: 1.5px solid var(--hp-gold);
  border-bottom: 1.5px solid var(--hp-gold);
  transform: rotate(-45deg);
}

/* ══ Leadership ═══════════════════════════════════════════════════════ */
.hp-leader__layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.hp-leader__portrait { position: sticky; top: calc(var(--nav-h, 60px) + 40px); }

.hp-leader__portrait figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(180deg, var(--hp-surface-2), var(--hp-bg-alt));
  border: 1px solid var(--hp-line);
}

.hp-leader__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.hp-leader__nameplate {
  position: relative;
  margin: -44px 28px 0;
  padding: 20px 24px;
  background: var(--hp-surface);
  border-top: 2px solid var(--hp-gold);
  box-shadow: var(--hp-shadow-sm);
}

.hp-leader__nameplate strong {
  display: block;
  font-family: var(--hp-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--hp-heading);
}

.hp-leader__nameplate span {
  display: block;
  margin-top: 4px;
  color: var(--hp-gold);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hp-leader__message {
  position: relative;
  max-height: 330px;
  margin-top: 30px;
  overflow: hidden;
  transition: max-height .6s var(--hp-ease);
}

.hp-leader__message.expanded { max-height: 6000px; }

.hp-leader__message::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(180deg, transparent, var(--hp-bg));
  pointer-events: none;
}

.hp-leader__message.expanded::after { display: none; }

.hp-leader__quote {
  width: 44px;
  height: 34px;
  margin-bottom: 16px;
  fill: var(--hp-gold);
  opacity: .5;
}

.hp-leader__text,
.hp-leader__text p {
  color: var(--hp-text);
  font-size: 16.5px;
  font-weight: 300;
  line-height: 1.9;
}

.hp-leader__text p { margin: 0 0 1.1em; }

.hp-leader__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
}

.hp-leader__sign {
  font-family: var(--hp-serif);
  font-size: 28px;
  font-style: italic;
  color: var(--hp-gold);
}

/* ══ Statistics ═══════════════════════════════════════════════════════ */
.hp-stats {
  padding: 0;
  background: var(--hp-bg);
}

.hp-stats__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--hp-line-strong);
  border-bottom: 1px solid var(--hp-line-strong);
}

.hp-stat {
  padding: 46px 28px;
  text-align: center;
}

.hp-stat + .hp-stat { border-left: 1px solid var(--hp-line); }

.hp-stat strong {
  display: block;
  font-family: var(--hp-serif);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 500;
  line-height: 1;
  color: var(--hp-gold);
}

.hp-stat span {
  display: block;
  margin-top: 12px;
  color: var(--hp-muted);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ══ Testimonials ═════════════════════════════════════════════════════ */
.hp-voices__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.hp-voice {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 40px 34px 32px;
  background: var(--hp-surface);
  border: 1px solid var(--hp-line);
  box-shadow: var(--hp-shadow-sm);
  transition: transform .4s var(--hp-ease), border-color .4s ease;
}

.hp-voice::before {
  content: '\201C';
  position: absolute;
  top: 6px;
  right: 26px;
  font-family: var(--hp-serif);
  font-size: 120px;
  line-height: 1;
  color: var(--hp-gold);
  opacity: .16;
}

.lux-home .hp-voice.visible:hover { transform: translateY(-6px); border-color: var(--hp-gold-line); }

.hp-voice__stars { color: var(--hp-gold); font-size: 14px; letter-spacing: 4px; }
.hp-voice__stars .is-off { opacity: .25; }

.hp-voice blockquote {
  flex: 1;
  margin: 20px 0 30px;
  font-family: var(--hp-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--hp-heading);
}

.hp-voice figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--hp-line);
}

.hp-voice figcaption img,
.hp-voice__avatar {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.hp-voice__avatar {
  display: grid;
  place-items: center;
  background: var(--hp-gold-soft);
  border: 1px solid var(--hp-gold-line);
  color: var(--hp-gold);
  font-family: var(--hp-serif);
  font-size: 20px;
}

.hp-voice figcaption strong { display: block; color: var(--hp-heading); font-size: 15px; font-weight: 500; }
.hp-voice figcaption small { display: block; color: var(--hp-muted); font-size: 12.5px; }

/* ══ CSR / impact ═════════════════════════════════════════════════════ */
.hp-impact__layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.hp-impact__copy .hp-intro { margin: 22px 0 32px; }

.hp-impact__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.hp-story {
  display: flex;
  flex-direction: column;
  background: var(--hp-surface);
  border: 1px solid var(--hp-line);
  text-decoration: none;
  overflow: hidden;
  transition: transform .4s var(--hp-ease), box-shadow .4s ease, border-color .4s ease;
}

.hp-impact__cards { align-items: start; }
.hp-story:nth-child(2) { margin-top: 48px; }
.hp-story:hover { box-shadow: var(--hp-shadow); border-color: var(--hp-gold-line); }

.hp-story figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.hp-story img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--hp-ease); }
.hp-story:hover img { transform: scale(1.06); }

.hp-story__body { padding: 22px 24px 24px; }

.hp-story__tag {
  color: var(--hp-gold);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hp-story h3 {
  margin: 8px 0 16px;
  font-family: var(--hp-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--hp-heading);
}

.hp-story__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hp-gold);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hp-story:hover .hp-story__cta svg { transform: translateX(5px); }

/* ══ Blood bank ═══════════════════════════════════════════════════════ */
.hp-blood__panel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  padding: 44px 48px;
  overflow: hidden;
  background:
    radial-gradient(600px 240px at 0% 0%, var(--hp-red-soft), transparent 70%),
    var(--hp-surface);
  border: 1px solid var(--hp-line);
  border-left: 3px solid var(--hp-red);
}

.hp-blood__drop {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hp-red-soft);
  border: 1px solid rgba(214, 75, 90, .35);
}

.hp-blood__drop svg { width: 32px; height: 32px; fill: var(--hp-red); animation: hp-pulse 2.4s ease-in-out infinite; }

@keyframes hp-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.lux-home .hp-blood h2 {
  margin: 10px 0 8px;
  font-family: var(--hp-serif);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--hp-heading);
}

.hp-blood p { margin: 0; color: var(--hp-muted); font-size: 15px; line-height: 1.7; }

/* ══ Journal ══════════════════════════════════════════════════════════ */
.hp-journal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.hp-post {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  background: var(--hp-surface);
  border: 1px solid var(--hp-line);
  text-decoration: none;
  overflow: hidden;
  transition: border-color .4s ease, box-shadow .4s ease;
}

.hp-post:hover { border-color: var(--hp-gold-line); box-shadow: var(--hp-shadow-sm); }

.hp-post figure { margin: 0; min-height: 200px; overflow: hidden; }
.hp-post img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--hp-ease); }
.hp-post:hover img { transform: scale(1.06); }

.hp-post__body { display: flex; flex-direction: column; justify-content: center; padding: 26px 28px; }

.hp-post--lead { grid-row: span 2; grid-template-columns: 1fr; grid-template-rows: minmax(260px, 1fr) auto; }
.hp-post--lead .hp-post__body { padding: 30px 34px 34px; }

.hp-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--hp-muted);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hp-post__meta span { color: var(--hp-gold); }

.hp-post h3 {
  margin: 12px 0 0;
  font-family: var(--hp-serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--hp-heading);
  transition: color .3s ease;
}

.hp-post--lead h3 { font-size: clamp(28px, 2.6vw, 34px); }
.hp-post:hover h3 { color: var(--hp-gold); }
.hp-post p { margin: 14px 0 0; color: var(--hp-muted); font-size: 15px; line-height: 1.7; }

/* ══ Clients & partners ═══════════════════════════════════════════ */
.hp-partners { overflow: hidden; }

.hp-partners__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  margin-bottom: clamp(30px, 3.4vw, 46px);
}

.hp-partners__aside {
  display: flex;
  align-items: center;
  gap: 26px;
  max-width: 470px;
}

.hp-partners__count {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  padding-right: 26px;
  border-right: 1px solid var(--hp-line-strong);
}

.hp-partners__count strong {
  font-family: var(--hp-serif);
  font-size: 54px;
  font-weight: 500;
  line-height: 1;
  color: var(--hp-gold);
}

.hp-partners__count span {
  color: var(--hp-muted);
  font-size: 11px;
  letter-spacing: .18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hp-partners__aside p { margin: 0; color: var(--hp-muted); font-size: 14.5px; line-height: 1.7; }

/* marquee rows */
.hp-marquee-wrap {
  display: grid;
  gap: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hp-marquee { overflow: hidden; }

.hp-marquee__track {
  display: flex;
  width: max-content;
  animation: hp-marquee 46s linear infinite;
}

.hp-marquee--reverse .hp-marquee__track { animation-direction: reverse; animation-duration: 52s; }

.hp-marquee__group {
  display: flex;
  gap: 16px;
  min-width: 100vw;
  justify-content: space-around;
  margin: 0;
  padding: 0 8px;
  list-style: none;
}

@keyframes hp-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* logo plaque — an ivory card in both themes so any logo reads well */
.hp-plaque {
  position: relative;
  display: grid;
  place-items: center;
  width: 236px;
  height: 108px;
  padding: 20px 26px;
  background: #FBF9F4;
  border: 1px solid rgba(201, 168, 76, .18);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .35);
  transition: transform .4s var(--hp-ease), border-color .3s ease, box-shadow .4s ease;
}

html[data-theme="light"] .hp-plaque { background: #FFFFFF; border-color: var(--hp-line); }

.hp-plaque::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--hp-gold);
  transform: translateX(-50%);
  transition: width .45s var(--hp-ease);
}

.hp-plaque img {
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .72;
  transition: filter .4s ease, opacity .4s ease;
}

.hp-plaque:hover { transform: translateY(-4px); border-color: var(--hp-gold-line); box-shadow: var(--hp-shadow-sm); }
.hp-plaque:hover::after { width: 60%; }
.hp-plaque:hover img { filter: none; opacity: 1; }

/* few partners: static centred grid */
.hp-partners__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-partners__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hp-partners__tags li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hp-muted);
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hp-partners__tags li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--hp-gold);
  transform: rotate(45deg);
}

/* ══ Contact ══════════════════════════════════════════════════════════ */
.hp-contact { background: var(--hp-bg-alt); }

.hp-contact__panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  background: var(--hp-surface);
  border: 1px solid var(--hp-line);
  box-shadow: var(--hp-shadow);
}

.hp-contact__info {
  position: relative;
  padding: clamp(36px, 5vw, 64px);
  border-right: 1px solid var(--hp-line);
  background: radial-gradient(500px 300px at 0% 0%, var(--hp-gold-soft), transparent 70%);
}

.hp-contact__info .hp-intro { margin: 20px 0 36px; }

.hp-contact__list { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }

.hp-contact__list li { display: flex; align-items: flex-start; gap: 16px; color: var(--hp-text); font-size: 15px; line-height: 1.5; }
.hp-contact__list small { display: block; margin-bottom: 2px; color: var(--hp-muted); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.hp-contact__list a { color: var(--hp-heading); text-decoration: none; }
.hp-contact__list a:hover { color: var(--hp-gold); }

.hp-contact__icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--hp-gold-line);
  border-radius: 50%;
}

.hp-contact__icon svg { width: 18px; height: 18px; fill: none; stroke: var(--hp-gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.hp-form { display: grid; gap: 18px; padding: clamp(36px, 5vw, 64px); }
.hp-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.hp-field { display: grid; gap: 8px; margin: 0; }

.hp-field > span {
  color: var(--hp-muted);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lux-home .hp-field input,
.lux-home .hp-field select,
.lux-home .hp-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border: 1px solid var(--hp-line-strong);
  border-radius: 0;
  background: var(--hp-bg);
  color: var(--hp-heading);
  font-family: var(--hp-sans);
  font-size: 15px;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.lux-home .hp-field textarea { min-height: 120px; resize: vertical; }

.lux-home .hp-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--hp-gold) 50%), linear-gradient(135deg, var(--hp-gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.lux-home .hp-field input:focus,
.lux-home .hp-field select:focus,
.lux-home .hp-field textarea:focus {
  outline: none;
  border-color: var(--hp-gold);
  box-shadow: 0 0 0 3px var(--hp-gold-soft);
}

.hp-form .hp-btn { margin-top: 6px; }

/* ══ Closing CTA (photo band, same in both themes) ═══════════════════ */
.hp-cta {
  position: relative;
  isolation: isolate;
  padding: clamp(72px, 8vw, 112px) 0;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.hp-cta__media { position: absolute; inset: 0; z-index: -2; }
.hp-cta__media img { width: 100%; height: 100%; object-fit: cover; }

.hp-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(13, 13, 11, .55), rgba(13, 13, 11, .9)),
    rgba(13, 13, 11, .3);
}

.hp-cta .hp-eyebrow { color: #E8C97A; }
.hp-cta .hp-eyebrow::after { content: ''; width: 36px; height: 1px; background: currentColor; opacity: .7; }

.lux-home .hp-cta h2 {
  max-width: 860px;
  margin: 18px auto 32px;
  font-family: var(--hp-serif);
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 500;
  line-height: 1.02;
  color: #fff;
  text-wrap: balance;
}

.lux-home .hp-cta h2 em { color: #E8C97A; }

.hp-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hp-cta .hp-btn--gold { background: #C9A84C; color: #0D0D0B; }
.hp-cta .hp-btn--gold:hover { background: #E8C97A; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hp-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-service { aspect-ratio: 4 / 4.2; }
  .hp-voices__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .hp-head--split { grid-template-columns: 1fr; gap: 20px; }
  .hp-partners__head { grid-template-columns: 1fr; gap: 22px; }
  .hp-head--split > .hp-intro,
  .hp-head--split > .hp-btn,
  .hp-head__aside { justify-self: start; }

  .hp-projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 240px; }

  .hp-why__layout,
  .hp-about__layout,
  .hp-leader__layout,
  .hp-impact__layout,
  .hp-contact__panel { grid-template-columns: 1fr; }

  .hp-why__intro,
  .hp-leader__portrait { position: static; }
  .hp-leader__portrait { max-width: 440px; }
  .hp-about__visual { max-width: 560px; }
  .hp-contact__info { border-right: 0; border-bottom: 1px solid var(--hp-line); }

  .hp-journal__grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .hp-post--lead { grid-row: auto; }

  .hp-blood__panel { grid-template-columns: auto 1fr; }
  .hp-blood__actions { grid-column: 1 / -1; }

}

@media (max-width: 640px) {
  .hp-services__grid,
  .hp-voices__grid,
  .hp-impact__cards,
  .hp-why__grid { grid-template-columns: 1fr; }
  .hp-service { aspect-ratio: 4 / 3.6; }

  .hp-projects__grid { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .hp-projects__grid .hp-project:first-child { grid-column: auto; grid-row: span 1; }

  .hp-filter { width: 100%; }
  .hp-filter button { flex: 1; padding: 0 8px; }

  .hp-story:nth-child(2) { margin-top: 0; }
  .hp-ticks { grid-template-columns: 1fr; }
  .hp-about__visual { padding: 0 0 24px 24px; }
  .hp-about__badge { right: -6px; top: -12px; padding: 12px 16px; }
  .hp-about__badge strong { font-size: 30px; }

  .hp-post { grid-template-columns: 1fr; }
  .hp-post figure { aspect-ratio: 16 / 10; min-height: 0; }

  .hp-blood__panel { grid-template-columns: 1fr; padding: 32px 26px; gap: 20px; }
  .hp-blood__actions .hp-btn,
  .hp-cta__actions .hp-btn { width: 100%; }

  .hp-form__row { grid-template-columns: 1fr; }
  .hp-plaque { width: 168px; height: 84px; padding: 14px 18px; }
  .hp-plaque img { max-height: 46px; }
  .hp-marquee-wrap, .hp-marquee__group { gap: 12px; }
  .hp-partners__count strong { font-size: 44px; }
  .hp-stat + .hp-stat { border-left: 0; border-top: 1px solid var(--hp-line); }
  .hp-voice blockquote { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  /* scoped to the sections so the hero's autoplay progress bar keeps running */
  .hp-section *, .hp-section *::before, .hp-section *::after,
  .hp-cta *, .hp-stats * { transition-duration: .01ms !important; animation: none !important; }
  .hp-marquee__track { width: auto; flex-wrap: wrap; }
  .hp-marquee__group[aria-hidden] { display: none; }
  .hp-marquee__group { min-width: 0; flex-wrap: wrap; justify-content: center; }
}

/* the closing banner sits directly on the footer on the homepage */
main.lux-home ~ .site-footer { margin-top: 0; }
