/* LumaSign home — stylesheet (profile B, prefix lsg-) */

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono/JetBrainsMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --lsg-bg: #0b1326;
  --lsg-bg-deep: #060d20;
  --lsg-surface: #131b2e;
  --lsg-surface-2: #171f33;
  --lsg-surface-3: #222a3e;
  --lsg-text: #dbe2fd;
  --lsg-muted: #c3bdd2;
  --lsg-primary: #d2bbff;
  --lsg-violet: #7c3aed;
  --lsg-magenta: #c800b4;
  --lsg-cyan: #4cd6ff;
  --lsg-line: rgba(255, 255, 255, 0.08);
  --lsg-line-strong: rgba(255, 255, 255, 0.15);
  --lsg-glass: rgba(255, 255, 255, 0.03);
  --lsg-radius: 16px;
  --lsg-gap: 24px;
  --lsg-header-h: 104px;
  --lsg-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --lsg-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (min-width: 1200px) {
  :root { --lsg-header-h: 71px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background-color: var(--lsg-bg);
  scroll-padding-top: var(--lsg-header-h);
  -webkit-text-size-adjust: 100%;
}

html.lsg-motion { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--lsg-bg);
  color: var(--lsg-text);
  font-family: var(--lsg-font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-weight: 700;
  color: #f1f3ff;
  overflow-wrap: break-word;
  hyphens: auto;
}
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }

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

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

.lsg-skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--lsg-primary);
  color: var(--lsg-bg-deep);
  font-weight: 700;
  text-decoration: none;
}
.lsg-skip:focus { top: 12px; }

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

.lsg-container {
  width: 100%;
  padding-inline: clamp(16px, 4vw, 72px);
}

.lsg-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 112px);
}

/* ---------- Typography helpers ---------- */

.lsg-eyebrow {
  font-family: var(--lsg-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lsg-muted);
}

.lsg-h2 {
  font-size: clamp(1.875rem, 1.25rem + 2.4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lsg-h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lsg-lead {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.65;
  color: var(--lsg-muted);
}

.lsg-text { color: var(--lsg-muted); }

.lsg-section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.lsg-section-head::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-bottom: 20px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--lsg-violet), var(--lsg-cyan));
}
.lsg-section-head .lsg-h2 + .lsg-lead { margin-top: 16px; }

/* ---------- Buttons ---------- */

.lsg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--lsg-font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.lsg-btn--primary {
  color: #fff;
  background-color: var(--lsg-violet);
  background-image: linear-gradient(135deg, var(--lsg-violet) 0%, var(--lsg-magenta) 100%);
}
.lsg-btn--primary:hover { box-shadow: 0 0 28px rgba(124, 58, 237, 0.45); }
.lsg-btn--ghost {
  color: var(--lsg-text);
  background-color: var(--lsg-glass);
  border-color: var(--lsg-line-strong);
}
.lsg-btn--ghost:hover { border-color: var(--lsg-primary); color: #fff; }
.lsg-btn--lg { min-height: 56px; padding: 16px 32px; font-size: 1.0625rem; }

/* ---------- Header ---------- */

.lsg-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(11, 19, 38, 0.88);
  border-bottom: 1px solid var(--lsg-line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.lsg-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 20px;
  row-gap: 4px;
  padding-block: 12px 6px;
}
.lsg-logo {
  margin-right: auto;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--lsg-primary);
  text-decoration: none;
  line-height: 1.2;
  padding-block: 6px;
}
/* Logo image (header and footer): fixed 1000/292 box, the image covers it. */
.lsg-logo { display: inline-flex; align-items: center; }
.lsg-logo__media {
  display: block;
  height: 36px;
  aspect-ratio: 1000 / 292;
  overflow: hidden;
  border-radius: 6px;
}
.lsg-logo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 768px) {
  .lsg-logo .lsg-logo__media { height: 40px; }
}
.lsg-lang-slot {
  display: flex;
  align-items: center;
  min-width: 0;
}
.lsg-header__cta { display: none; min-height: 42px; padding: 9px 20px; font-size: 0.875rem; }
.lsg-nav {
  order: 10;
  flex: 1 0 100%;
  min-width: 0;
}
.lsg-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  white-space: nowrap;
}
.lsg-nav__link {
  display: inline-block;
  padding-block: 10px;
  font-family: var(--lsg-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lsg-muted);
  transition: color 0.2s ease;
}
.lsg-nav__link:hover { color: var(--lsg-primary); }

@media (min-width: 560px) {
  .lsg-header__cta { display: inline-flex; }
  .lsg-nav__list { gap: 0 20px; }
  .lsg-nav__link { letter-spacing: 0.04em; }
}

@media (min-width: 1200px) {
  .lsg-header__bar { flex-wrap: nowrap; padding-block: 14px; column-gap: 28px; }
  .lsg-logo { margin-right: 0; }
  .lsg-nav { order: 0; flex: 1 1 auto; }
  .lsg-nav__list { flex-wrap: nowrap; justify-content: center; gap: 28px; }
  .lsg-nav__link { padding-block: 8px; font-size: 0.8125rem; }
}

/* ---------- Hero: full-screen media slider ---------- */
/* No layer is drawn over the photos: legibility comes from the image's own
   filter and mask (paint-only), and the text sits in front as real HTML. */

.lsg-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: max(560px, calc(100svh - var(--lsg-header-h)));
  padding-block: 96px 0;
  background-color: var(--lsg-bg-deep);
}
.lsg-hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.lsg-hero__slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  background-color: var(--lsg-bg-deep);
}
.lsg-hero__slide.lsg-is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
}
.lsg-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.74) saturate(1.05);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 12%, #000 25%, rgba(0, 0, 0, 0.2) 100%);
  mask-image: radial-gradient(ellipse 85% 70% at 50% 12%, #000 25%, rgba(0, 0, 0, 0.2) 100%);
}
@media (min-width: 1024px) {
  .lsg-hero__slide img {
    -webkit-mask-image: radial-gradient(ellipse 68% 100% at 86% 35%, #000 22%, rgba(0, 0, 0, 0.16) 100%);
    mask-image: radial-gradient(ellipse 68% 100% at 86% 35%, #000 22%, rgba(0, 0, 0, 0.16) 100%);
  }
}
/* Crossfade: the new slide fades in on top, the old one stays until it is covered. */
.lsg-motion .lsg-hero__slide { transition: opacity 0s linear 1.2s, visibility 0s linear 1.2s; }
.lsg-motion .lsg-hero__slide.lsg-is-active { transition: opacity 1.2s ease, visibility 0s linear 0s; }
.lsg-motion .lsg-hero__slide.lsg-is-active img { animation: lsg-zoom 8s ease-out both; }
@keyframes lsg-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.lsg-hero__content {
  position: relative;
  z-index: 3;
  max-width: 980px;
}
.lsg-hero__label-wrap {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
  padding: 8px 16px;
  margin-bottom: 28px;
  border-radius: 20px;
  background-color: rgba(6, 13, 32, 0.6);
  border: 1px solid var(--lsg-line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.lsg-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background-color: var(--lsg-cyan);
  box-shadow: 0 0 10px var(--lsg-cyan);
}
.lsg-motion .lsg-dot { animation: lsg-pulse 2.4s ease-in-out infinite; }
@keyframes lsg-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.lsg-hero__label {
  font-family: var(--lsg-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lsg-text);
}
.lsg-hero__title {
  font-size: clamp(2.25rem, 1.3rem + 4vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 15ch;
  color: #fff;
  text-shadow: 0 2px 24px rgba(6, 13, 32, 0.65);
}
.lsg-hero__text {
  margin-top: 24px;
  max-width: 600px;
  color: #e4e8fb;
  text-shadow: 0 1px 12px rgba(6, 13, 32, 0.8);
}
.lsg-hero__text p + p { margin-top: 12px; }
.lsg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 36px;
}
.lsg-hero .lsg-btn--ghost {
  background-color: rgba(6, 13, 32, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Progress bars: one per slide, clickable. The bar fill is the timer:
   its CSS animation (only under html.lsg-motion) ends -> next slide. */
.lsg-hero__controls {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 40px 28px;
}
.lsg-hero__bars {
  display: flex;
  gap: 10px;
  flex: 0 1 420px;
  min-width: 0;
}
.lsg-hero__bar {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.lsg-hero__bar::before,
.lsg-hero__fill {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 3px;
}
.lsg-hero__bar::before { background-color: rgba(255, 255, 255, 0.25); }
.lsg-hero__fill {
  display: block;
  background-image: linear-gradient(90deg, var(--lsg-primary), var(--lsg-cyan));
  transform-origin: left center;
  transform: scaleX(0);
}
.lsg-hero__bar.lsg-is-done .lsg-hero__fill,
.lsg-hero__bar.lsg-is-active .lsg-hero__fill { transform: scaleX(1); }
.lsg-motion .lsg-hero__bar.lsg-is-active .lsg-hero__fill {
  animation: lsg-progress var(--lsg-slide-time, 6s) linear both;
}
/* Pause: while the pointer is on the text or the controls, while anything in
   the hero has keyboard focus, or with the pause button. */
.lsg-motion .lsg-hero:has(.lsg-hero__copy:hover) .lsg-hero__fill,
.lsg-motion .lsg-hero:has(.lsg-hero__controls:hover) .lsg-hero__fill,
.lsg-motion .lsg-hero:has(:focus-visible) .lsg-hero__fill,
.lsg-motion .lsg-hero.lsg-is-paused .lsg-hero__fill { animation-play-state: paused; }
@keyframes lsg-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.lsg-hero__toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--lsg-line-strong);
  background-color: rgba(6, 13, 32, 0.55);
  color: #fff;
  cursor: pointer;
}
.lsg-motion .lsg-hero__toggle { display: inline-flex; }
.lsg-hero__toggle::before,
.lsg-hero__toggle::after {
  content: "";
  width: 3px;
  height: 12px;
  border-radius: 1px;
  background-color: currentColor;
}
.lsg-hero__toggle[aria-pressed="true"]::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-radius: 0;
  background-color: transparent;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent currentColor;
}
.lsg-hero__toggle[aria-pressed="true"]::after { display: none; }

@media (max-width: 767px) {
  .lsg-hero { padding-top: 40px; }
  .lsg-hero__label-wrap { margin-bottom: 20px; }
  .lsg-hero__text { margin-top: 18px; }
  .lsg-hero__actions { margin-top: 28px; }
  .lsg-hero__controls { padding-block: 24px 16px; }
}
@media (max-width: 479px) {
  .lsg-hero__actions .lsg-btn { flex: 1 1 100%; }
}

/* ---------- Media wrappers (fixed aspect ratio, cover) ---------- */

.lsg-media {
  position: relative;
  overflow: hidden;
  background-color: var(--lsg-surface-2);
}
.lsg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lsg-media--16x9 { aspect-ratio: 16 / 9; border-radius: var(--lsg-radius); }
.lsg-media--4x3 { aspect-ratio: 4 / 3; }
.lsg-media--icon {
  aspect-ratio: 1 / 1;
  width: 56px;
  flex: 0 0 auto;
  padding: 10px;
  border-radius: 14px;
  background-color: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(210, 187, 255, 0.22);
}

/* ---------- Cards and list grids ---------- */

.lsg-card {
  position: relative;
  border-radius: var(--lsg-radius);
  background-color: var(--lsg-glass);
  border: 1px solid var(--lsg-line);
  border-top-color: var(--lsg-line-strong);
  border-left-color: var(--lsg-line-strong);
}
.lsg-motion .lsg-card {
  transition: translate 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.lsg-motion .lsg-card:hover {
  translate: 0 -6px;
  border-color: rgba(210, 187, 255, 0.35);
  box-shadow: 0 18px 40px rgba(6, 13, 32, 0.55), 0 0 30px rgba(124, 58, 237, 0.15);
}

/* Full-width grids for any item count: the column count grows with the
   viewport (cards never stretch past ~470 px), full rows fill the width and
   the last row is centred. */
.lsg-grid {
  --lsg-cols: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--lsg-gap);
}
.lsg-grid > * {
  flex: 0 0 calc((100% - (var(--lsg-cols) - 1) * var(--lsg-gap)) / var(--lsg-cols));
  min-width: 0;
}

@media (min-width: 640px) {
  .lsg-grid--3,
  .lsg-grid--2 { --lsg-cols: 2; }
}
@media (min-width: 1024px) {
  .lsg-grid--3 { --lsg-cols: 3; }
}
@media (min-width: 1600px) {
  .lsg-grid--3 { --lsg-cols: 4; }
  .lsg-grid--2 { --lsg-cols: 3; }
}
@media (min-width: 2200px) {
  .lsg-grid--3 { --lsg-cols: 5; }
  .lsg-grid--2 { --lsg-cols: 4; }
}

/* Displays */
.lsg-displays { background-color: var(--lsg-bg); }
.lsg-feature {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
}
.lsg-feature .lsg-h3 { margin-top: 8px; }

/* Numbers */
.lsg-numbers {
  background-color: var(--lsg-bg-deep);
  border-top: 1px solid var(--lsg-line);
  border-bottom: 1px solid var(--lsg-line);
  padding-block: clamp(56px, 7vw, 88px);
}
.lsg-numbers::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 420px;
  translate: -50% -50%;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.16) 0%, rgba(6, 13, 32, 0) 70%);
}
.lsg-numbers__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.lsg-number {
  padding-left: 20px;
  border-left: 2px solid rgba(210, 187, 255, 0.3);
}
.lsg-number__value {
  font-family: var(--lsg-mono);
  font-size: clamp(2.75rem, 2rem + 3vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--lsg-primary);
  text-shadow: 0 0 24px rgba(124, 58, 237, 0.5);
}
.lsg-number__label {
  margin-top: 10px;
  max-width: 34ch;
  font-family: var(--lsg-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--lsg-muted);
  overflow-wrap: break-word;
}
@media (min-width: 640px) {
  .lsg-numbers__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lsg-numbers__list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

/* What we do: sticky scroll story from 1024 px (CSS position: sticky, no pin) */
.lsg-services {
  background-color: var(--lsg-surface);
  overflow: visible; /* sticky needs no clipping ancestor */
}
.lsg-services__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 4vw, 48px);
}
.lsg-services__media {
  aspect-ratio: 16 / 9;
  border-radius: var(--lsg-radius);
  border: 1px solid var(--lsg-line);
}
.lsg-services__content { min-width: 0; }
@media (min-width: 1024px) {
  .lsg-services__layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(48px, 5vw, 96px);
    align-items: start;
  }
  .lsg-services__media {
    position: sticky;
    top: calc(var(--lsg-header-h) + 32px);
    aspect-ratio: auto;
    height: calc(100svh - var(--lsg-header-h) - 64px);
    min-height: 420px;
  }
  .lsg-services .lsg-grid {
    --lsg-cols: 1;
    gap: max(24px, 14vh);
    padding-bottom: 30vh; /* lets the last item reach the middle while the photo is held */
  }
  .lsg-services .lsg-grid.lsg-is-story > [data-lsg-item] {
    opacity: 0.38;
    transition: opacity 0.5s ease, transform 0.5s ease, translate 0.35s ease, box-shadow 0.35s ease;
  }
  .lsg-services .lsg-grid.lsg-is-story > [data-lsg-item].lsg-is-active {
    opacity: 1;
    transform: translateX(12px);
  }
}
.lsg-service {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
}
.lsg-service__body { min-width: 0; }
.lsg-service__body .lsg-text { margin-top: 10px; }
@media (max-width: 479px) {
  .lsg-service { flex-direction: column; gap: 16px; }
}
/* Calculator teaser (#calculator): text + button, small decorative pixel swatch */
.lsg-calc-teaser {
  background-color: var(--lsg-bg-deep);
  border-top: 1px solid var(--lsg-line);
}
.lsg-calc-teaser__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.lsg-calc-teaser__head { margin-bottom: 0; }
.lsg-calc-teaser__head .lsg-btn { margin-top: 32px; }
.lsg-calc-teaser__visual {
  display: flex;
  justify-content: flex-start;
}
.lsg-calc-teaser__swatch {
  display: block;
  width: clamp(140px, 30vw, 240px);
  height: auto;
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 0 32px rgba(124, 58, 237, 0.35));
}
@media (min-width: 768px) {
  .lsg-calc-teaser__layout { grid-template-columns: minmax(0, 1fr) auto; }
  .lsg-calc-teaser__visual { justify-content: flex-end; }
}


/* Projects */
.lsg-projects { background-color: var(--lsg-bg); }
.lsg-project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lsg-project .lsg-media img { transition: none; }
.lsg-motion .lsg-project .lsg-media img { transition: transform 0.6s ease; }
.lsg-motion .lsg-project:hover .lsg-media img { transform: scale(1.04); }
.lsg-project__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 24px 28px;
}
.lsg-badge {
  align-self: flex-start;
  max-width: 100%;
  padding: 5px 12px;
  border-radius: 999px;
  background-color: var(--lsg-surface-3);
  border: 1px solid rgba(76, 214, 255, 0.25);
  font-family: var(--lsg-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lsg-cyan);
}
.lsg-project__city {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: -4px;
  font-family: var(--lsg-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--lsg-muted);
}
.lsg-project__city svg { flex: 0 0 auto; }

/* CTA: full-bleed photo behind the panel (darkened by the image's own filter) */
.lsg-cta {
  background-color: var(--lsg-bg-deep);
  padding-block: clamp(96px, 12vw, 200px);
}
.lsg-cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.lsg-cta__bg img { filter: brightness(0.4) saturate(1.1); }
.lsg-cta__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  text-align: center;
  border-radius: 28px;
  background-color: rgba(19, 27, 46, 0.74);
  border: 1px solid rgba(210, 187, 255, 0.24);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.lsg-cta__panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40%;
  background: radial-gradient(circle at 50% 0%, rgba(200, 0, 180, 0.18) 0%, rgba(19, 27, 46, 0) 55%);
}
.lsg-cta__head { margin: 0 auto; }
.lsg-cta__head::before { margin-inline: auto; }
.lsg-cta__panel .lsg-lead { margin: 20px auto 0; max-width: 640px; }
.lsg-cta__panel .lsg-btn { margin-top: 36px; }

/* Contact */
.lsg-contact { background-color: var(--lsg-bg-deep); border-top: 1px solid var(--lsg-line); }
.lsg-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.lsg-contact__grid:has(.lsg-form-slot:empty) .lsg-contact__info { max-width: 760px; }
@media (min-width: 1024px) {
  .lsg-contact__grid:has(.lsg-form-slot:not(:empty)) {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}
.lsg-contact__head { margin-bottom: 0; }
.lsg-contact__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.lsg-contact__item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.lsg-contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(210, 187, 255, 0.22);
  color: var(--lsg-primary);
}
.lsg-contact__link {
  min-width: 0;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  font-weight: 600;
  text-decoration: none;
  color: #f1f3ff;
  overflow-wrap: anywhere;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lsg-contact__link:hover { color: var(--lsg-primary); border-bottom-color: var(--lsg-primary); }
.lsg-contact__note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 32px;
  padding: 16px 18px;
  border-radius: 12px;
  background-color: var(--lsg-surface);
  border: 1px solid var(--lsg-line);
  font-size: 0.9375rem;
  color: var(--lsg-muted);
}
.lsg-contact__note svg { flex: 0 0 auto; margin-top: 3px; color: var(--lsg-cyan); }
.lsg-form-slot:empty { display: none; }
.lsg-form-slot {
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--lsg-radius);
  background-color: var(--lsg-surface);
  border: 1px solid var(--lsg-line-strong);
}

/* ---------- Footer ---------- */

.lsg-footer {
  background-color: var(--lsg-bg-deep);
  border-top: 1px solid var(--lsg-line);
  padding-block: 48px 40px;
  font-size: 0.9375rem;
}
.lsg-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.lsg-footer__logo {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--lsg-primary);
}
.lsg-footer__logo .lsg-logo__media { height: 44px; }
.lsg-footer__links { display: flex; flex-direction: column; gap: 6px; }
.lsg-footer__link {
  align-self: flex-start;
  text-decoration: none;
  color: var(--lsg-text);
  overflow-wrap: anywhere;
}
.lsg-footer__link:hover { color: var(--lsg-primary); }
.lsg-footer__meta { display: flex; flex-direction: column; gap: 6px; color: var(--lsg-muted); }
.lsg-footer__regions {
  font-family: var(--lsg-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lsg-footer__copyright { font-size: 0.875rem; }
@media (min-width: 768px) {
  .lsg-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: start;
  }
  .lsg-footer__meta { text-align: right; }
}

/* ---------- Edit mode (LDS plugin): nothing moves, nothing jumps ---------- */

html.lds-selection-active .lsg-card,
body.lds-editing .lsg-card,
html.lds-selection-active .lsg-card:hover,
body.lds-editing .lsg-card:hover {
  translate: none;
  transition: none;
}
html.lds-selection-active .lsg-project .lsg-media img,
body.lds-editing .lsg-project .lsg-media img {
  transform: none;
  transition: none;
}
html.lds-selection-active .lsg-dot,
body.lds-editing .lsg-dot { animation: none; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html, html.lsg-motion { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .lsg-card:hover { translate: none !important; }
  .lsg-project:hover .lsg-media img { transform: none !important; }
}

/* ---------- Language switcher (plugin markup, theme style) ---------- */

.lsg-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--lsg-mono);
  font-size: 0.75rem;
  font-weight: 500;
}
.lsg-lang__link {
  display: inline-block;
  padding: 8px 8px;
  color: var(--lsg-muted);
  text-decoration: none;
  pointer-events: auto;
}
.lsg-lang__link:hover,
.lsg-lang__link.lsg-is-current { color: var(--lsg-text); }
.lsg-lang__link.lsg-is-current { text-decoration: underline; text-underline-offset: 4px; }
