/* LumaSign home v3: "Big type, soft media" prototype.
   Plain local CSS. Fonts: Archivo (display + body), JetBrains Mono (small labels). Prefix lsg-.
   The page is complete without JavaScript: every dimmed / hidden "from" state is set at runtime by JS. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo/archivo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo/archivo-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@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; }

:root {
  --lsg-black: #05060C;
  --lsg-navy: #0A0D24;
  --lsg-navy-lift: #10143A;
  --lsg-text: #F4F5FA;
  --lsg-muted: #D3D6EA;
  --lsg-rule: rgba(244, 245, 250, 0.16);
  --lsg-gold: #C0AD69;
  --lsg-diode-r: #ED1F24;
  --lsg-diode-g: #69BD45;
  --lsg-diode-b: #3853A4;
  --lsg-font: "Archivo", system-ui, sans-serif;
  --lsg-mono: "JetBrains Mono", ui-monospace, monospace;
  --lsg-gutter: clamp(20px, 4vw, 64px);
  --lsg-section-y: clamp(64px, 7.5vw, 112px);
  --lsg-radius: 22px;
  --lsg-overlap: clamp(24px, 3.4vw, 48px);
  --lsg-header-h: 120px;   /* header bar height on small screens (logo row + menu row) */
  --lsg-hero-gap: 40px;
  --lsg-hero-bottom: clamp(28px, 5vh, 88px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--lsg-black); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--lsg-black);
  color: var(--lsg-text);
  font-family: var(--lsg-font);
  font-size: 1rem;
  line-height: 1.5;
}
/* page regions only (zero specificity): nothing WordPress, the LDS editor or Fluent Forms add to <body> is affected.
   overflow: clip (not hidden) keeps position: sticky working. */
:where(.lsg-header, #main, .lsg-footer) { overflow-x: clip; }
:where(.lsg-header, #main, .lsg-footer) :is(img, video, svg) { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lsg-gold); outline-offset: 3px; }

.lsg-skip { position: absolute; left: 16px; top: -100px; z-index: 1200; padding: 10px 18px; border-radius: 999px; background: var(--lsg-gold); color: var(--lsg-navy); font-weight: 600; text-decoration: none; }
.lsg-skip:focus { top: 12px; }
.lsg-container { width: 100%; padding-inline: var(--lsg-gutter); }

/* ---------- Header (floats over the hero) ---------- */
.lsg-header { position: absolute; inset: 0 0 auto 0; z-index: 60; background: linear-gradient(180deg, rgba(5, 6, 12, 0.72) 0%, rgba(5, 6, 12, 0) 100%); }
.lsg-header__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 18px; }
.lsg-logo { display: block; text-decoration: none; }
.lsg-logo__media { display: block; aspect-ratio: 1000 / 292; height: 36px; }
.lsg-logo__media img { width: 100%; height: 100%; object-fit: cover; }
.lsg-nav { order: 3; width: 100%; }
.lsg-nav__list { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.lsg-nav__link { font-size: 0.9375rem; font-weight: 600; text-decoration: none; color: var(--lsg-text); opacity: 0.85; }
.lsg-nav__link:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--lsg-gold); text-underline-offset: 6px; }
.lsg-lang-slot { margin-left: auto; order: 2; }
.lsg-btn.lsg-header__cta { display: none; order: 2; }
@media (min-width: 560px) { .lsg-btn.lsg-header__cta { display: inline-flex; } }
@media (min-width: 1100px) {
  :root { --lsg-header-h: 84px; }
  .lsg-logo__media { height: 42px; }
  .lsg-nav { order: 1; width: auto; margin-left: auto; }
  .lsg-lang-slot { margin-left: 0; order: 2; }
  .lsg-btn.lsg-header__cta { order: 3; }
}

/* ---------- Buttons (pills) ---------- */
.lsg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--lsg-font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.lsg-btn--lg { padding: 18px 34px; font-size: 1.0625rem; }
.lsg-btn--primary { background: var(--lsg-gold); color: var(--lsg-black); border-color: var(--lsg-gold); }
.lsg-btn--primary:hover { background: var(--lsg-text); border-color: var(--lsg-text); }
.lsg-btn--ghost { background: transparent; color: var(--lsg-text); border-color: rgba(244, 245, 250, 0.55); }
.lsg-btn--ghost:hover { border-color: var(--lsg-gold); color: var(--lsg-gold); }

/* ---------- Shared: sections slide over the previous one with a rounded top edge ---------- */
.lsg-section { padding-block: var(--lsg-section-y); }
main > .lsg-section:not(.lsg-hero) {
  position: relative;
  margin-top: calc(var(--lsg-overlap) * -1);
  padding-top: calc(var(--lsg-section-y) + var(--lsg-overlap));
  border-radius: var(--lsg-overlap) var(--lsg-overlap) 0 0;
}
.lsg-h2 { font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; font-size: clamp(2.6rem, 8vw, 8.5rem); }
.lsg-h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
.lsg-lead { font-size: clamp(1.125rem, 1.6vw, 1.5rem); line-height: 1.4; color: var(--lsg-text); max-width: 40rem; }
.lsg-lead p { margin: 0; }
.lsg-text { color: var(--lsg-muted); line-height: 1.45; }
.lsg-section-head { display: grid; gap: 24px; margin-bottom: clamp(32px, 4.5vw, 64px); }
.lsg-split { display: block; }
.lsg-split__head { display: grid; gap: 24px; margin-bottom: clamp(32px, 4.5vw, 64px); align-content: start; }
@media (min-width: 1100px) {
  /* big title pinned to the left (CSS sticky), the list scrolls on the right: no empty half-screens */
  .lsg-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 clamp(32px, 5vw, 96px); align-items: start; }
  .lsg-split__head { position: sticky; top: clamp(72px, 11vh, 120px); margin-bottom: 0; }
  .lsg-split .lsg-h2 { font-size: clamp(2.6rem, 5.4vw, 6.25rem); }
}

/* runtime text splitting (created and reverted by JS only) */
.lsg-w { display: inline-block; }
.lsg-wm { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.08em 0.04em 0.16em; margin: -0.08em -0.04em -0.16em; }
.lsg-line { display: block; overflow: hidden; padding: 0.06em 0 0.12em; margin: -0.06em 0 -0.12em; }
.lsg-line__in { display: block; }
/* scroll-scrubbed words (statement): --word-progress 0..1 is written by JS from scroll */
.lsg-sw {
  display: inline-block;
  --word-progress: 0;
  --lsg-sw-min: 0.24;
  --lsg-sw-blur: 5px;
  --lsg-sw-rise: 0.12em;
  opacity: calc(var(--lsg-sw-min) + (1 - var(--lsg-sw-min)) * var(--word-progress));
  filter: blur(calc((1 - var(--word-progress)) * var(--lsg-sw-blur)));
  transform: translate3d(0, calc((1 - var(--word-progress)) * var(--lsg-sw-rise)), 0);
}
@media (prefers-reduced-motion: reduce) { .lsg-sw { opacity: 1; filter: none; transform: none; } }

/* ---------- Hero ---------- */
.lsg-hero { position: relative; overflow: hidden; background: var(--lsg-navy); padding-block: 0; }
.lsg-hero__media { position: absolute; inset: 0 0 auto 0; height: 100vh; height: 100svh; z-index: 0; background: var(--lsg-black); }
.lsg-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 6, 12, 0.5) 0%, rgba(5, 6, 12, 0) 32%, rgba(5, 6, 12, 0.72) 100%); }
.lsg-hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 18% 50%; background: var(--lsg-black); }
@media (min-width: 768px) { .lsg-hero__video { object-position: 50% 50%; } }
.lsg-hero__body { position: relative; z-index: 2; padding-inline: var(--lsg-gutter); }
.lsg-hero__screen {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  /* top space = header + breathing room, so the h1 never meets the logo and menu */
  padding-top: calc(var(--lsg-header-h) + var(--lsg-hero-gap));
  padding-bottom: var(--lsg-hero-bottom);
}
.lsg-hero__title {
  font-weight: 800;
  letter-spacing: -0.05em;
  /* capped by width and by height: three lines (0.88 each) + header + gaps always fit in the first screen */
  font-size: clamp(2.6rem, min(11.4vw, calc((100vh - var(--lsg-header-h) - var(--lsg-hero-gap) - var(--lsg-hero-bottom)) / 3.3)), 14rem);
  font-size: clamp(2.6rem, min(11.4vw, calc((100svh - var(--lsg-header-h) - var(--lsg-hero-gap) - var(--lsg-hero-bottom)) / 3.3)), 14rem);
  line-height: 0.88;
  color: var(--lsg-text);
}
.lsg-hero__copy { display: grid; gap: 28px; padding-block: clamp(40px, 6vw, 96px) var(--lsg-section-y); }
.lsg-hero__text { font-size: clamp(1.125rem, 1.8vw, 1.625rem); line-height: 1.4; max-width: 44rem; }
.lsg-hero__text p { margin: 0; }
.lsg-hero__actions { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .lsg-hero__actions { flex-direction: row; flex-wrap: wrap; } }
@media (min-width: 900px) { .lsg-hero__copy { margin-left: 41.66%; } }

/* ---------- Steps: a typographic sequence, no boxes ---------- */
.lsg-how { background: var(--lsg-black); }
/* particle fields (JS creates the wrappers): a decorative layer behind the content; the host is a sticky window, at most one viewport tall */
.lsg-pf-on > .lsg-container { position: relative; z-index: 1; }
.lsg-pf { position: absolute; inset: 0; z-index: 0; overflow: clip; border-radius: inherit; pointer-events: none; }
.lsg-pf__host { position: sticky; top: 0; height: 100vh; height: min(100svh, 100%); pointer-events: none; }
.lsg-how .lsg-h2 { max-width: 20ch; }
.lsg-how__text { margin-top: 36px; }
@media (min-width: 900px) { .lsg-how__text { margin-left: 41.66%; } }
.lsg-steps { counter-reset: lsg-step; margin-top: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--lsg-rule); }
.lsg-step {
  counter-increment: lsg-step;
  position: relative;
  display: grid;
  gap: 8px 40px;
  align-items: start;
  padding-block: clamp(24px, 3.6vw, 52px);
  border-top: 1px solid var(--lsg-rule);
}
.lsg-step::before {
  content: counter(lsg-step, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-weight: 800;
  font-size: clamp(4.5rem, 14vw, 13rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(192, 173, 105, 0.85);
}
.lsg-step::after {
  content: "";
  position: absolute;
  right: 0;
  top: clamp(24px, 3.6vw, 52px);
  width: 40px;
  height: 8px;
  background-image: linear-gradient(var(--lsg-diode-r), var(--lsg-diode-r)), linear-gradient(var(--lsg-diode-g), var(--lsg-diode-g)), linear-gradient(var(--lsg-diode-b), var(--lsg-diode-b));
  background-size: 8px 8px;
  background-repeat: no-repeat;
  background-position: 0 50%, 16px 50%, 32px 50%;
}
.lsg-step__title { font-weight: 800; letter-spacing: -0.035em; line-height: 1; font-size: clamp(1.9rem, 4.6vw, 4.25rem); align-self: end; }
.lsg-step__text { color: var(--lsg-muted); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.4; max-width: 34rem; }
.lsg-step:last-child::before { color: var(--lsg-gold); -webkit-text-stroke: 0; }
.lsg-step:last-child .lsg-step__title { color: var(--lsg-gold); }
@media (min-width: 720px) {
  .lsg-step { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
@media (max-width: 719px) {
  .lsg-step::before { grid-row: auto; margin-bottom: 8px; }
  .lsg-step::after { top: clamp(24px, 3.6vw, 52px); }
}

/* Desktop >= 1024px (JS adds html.lsg-hs): the four steps travel left to right on ONE sticky stage while the page
   scrolls vertically. Native scroll is the only input; JS writes transform/opacity from scroll position only.
   Without JS, or below 1024px, this is the plain vertical sequence above. */
.lsg-hs__bar { display: none; }
html.lsg-hs .lsg-steps-track { position: relative; margin-inline: calc(var(--lsg-gutter) * -1); margin-top: clamp(24px, 3vw, 48px); height: calc(var(--lsg-hs-units, 4.5) * 100vh); height: calc(var(--lsg-hs-units, 4.5) * 100svh); }
html.lsg-hs .lsg-steps-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
html.lsg-hs .lsg-steps { display: flex; width: calc(var(--lsg-hs-n, 4) * 100%); height: 100%; margin: 0; border-bottom: 0; will-change: transform; }
html.lsg-hs .lsg-step {
  flex: 0 0 calc(100% / var(--lsg-hs-n, 4));
  min-width: 0;
  padding: 0 var(--lsg-gutter);
  border-top: 0;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 20px clamp(32px, 5vw, 96px);
  align-content: center;
  will-change: opacity;
}
html.lsg-hs .lsg-step::before { font-size: clamp(9rem, 26vw, 24rem); transform: translate3d(calc(var(--lsg-d, 0) * -12vw), 0, 0); }
html.lsg-hs .lsg-step::after { top: clamp(24px, 7vh, 64px); right: var(--lsg-gutter); }
html.lsg-hs .lsg-step__title { font-size: clamp(2.2rem, 5vw, 5rem); }
html.lsg-hs .lsg-step__text { font-size: clamp(1.125rem, 1.5vw, 1.5rem); }
html.lsg-hs .lsg-hs__bar { display: block; position: absolute; left: var(--lsg-gutter); right: var(--lsg-gutter); bottom: clamp(24px, 5vh, 56px); }
.lsg-hs__nums { display: flex; justify-content: space-between; margin-bottom: 12px; font-family: var(--lsg-mono); font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.08em; }
.lsg-hs__nums span { opacity: 0.5; transition: opacity 0.3s ease, color 0.3s ease; }
.lsg-hs__nums span.is-on { opacity: 1; color: var(--lsg-gold); }
.lsg-hs__rail { display: block; height: 2px; background: var(--lsg-rule); overflow: hidden; }
.lsg-hs__fill { display: block; height: 100%; background: var(--lsg-gold); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Statement (was the x-ray section) ---------- */
.lsg-xray { background: var(--lsg-navy); text-align: center; display: flex; align-items: center; min-height: 88vh; min-height: 88svh; }
.lsg-xray__head { display: grid; gap: clamp(24px, 3.4vw, 48px); justify-items: center; }
.lsg-xray .lsg-h2 { font-size: clamp(2.8rem, 9vw, 9.5rem); max-width: 15ch; line-height: 0.96; }
.lsg-xray__text { max-width: 34rem; }

/* ---------- Numbers ---------- */
.lsg-numbers { background: var(--lsg-black); }
.lsg-number { display: grid; gap: 8px 40px; align-items: end; padding-block: clamp(18px, 2.6vw, 38px); border-top: 1px solid var(--lsg-rule); }
.lsg-numbers__list { border-bottom: 1px solid var(--lsg-rule); }
.lsg-number__value { --lsg-num-fs: clamp(4rem, 10.5vw, 9rem); font-weight: 800; font-size: var(--lsg-num-fs); line-height: 0.85; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; color: var(--lsg-text); }
.lsg-number:first-child .lsg-number__value { color: var(--lsg-gold); }
.lsg-number:nth-child(2) .lsg-number__value { color: var(--lsg-text); }
/* the infinity sign: real text, gold; a light travels along it (background-clip:text, driven by --lsg-shine 100 -> 0).
   Archivo (latin subset) has no U+221E, so only this value gets a symbol-font fallback stack. */
.lsg-number__value[data-edit-id="home.numbers.n3.value"] {
  justify-self: start;
  /* the fallback glyph is small and light: scale it up to the width of the other values, keep the row height
     (line-height + paired padding / negative margin), and thicken the stroke to the weight of Archivo 800 */
  font-size: calc(var(--lsg-num-fs) * 2.2);
  line-height: 0.386;
  padding: 0.2em 0.04em 0.2em;
  margin: -0.2em -0.04em -0.2em;
  -webkit-text-stroke: 0.04em transparent;
  paint-order: stroke fill;
  font-family: var(--lsg-font), "Cambria Math", "Noto Sans Math", "DejaVu Sans", "Segoe UI Symbol", "Apple Symbols", sans-serif;
  --lsg-shine: 0;
  --lsg-shine-a: 0.95;
  color: var(--lsg-gold);
  background-image:
    linear-gradient(105deg, rgb(255 246 207 / 0) 41%, rgb(255 246 207 / var(--lsg-shine-a)) 50%, rgb(255 246 207 / 0) 59%),
    linear-gradient(var(--lsg-gold), var(--lsg-gold));
  background-repeat: no-repeat;
  background-size: 250% 100%, 100% 100%;
  background-position: calc(var(--lsg-shine) * 1%) 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* odometer digits (created and reverted by JS only) */
.lsg-od { display: inline-block; overflow: hidden; vertical-align: top; box-sizing: content-box; height: 0.85em; padding: 0.08em 0.02em 0.16em; margin: -0.08em -0.02em -0.16em; }   /* one digit tall: the stack rolls inside it without growing the row */
.lsg-od__st { display: block; }
.lsg-od__d { display: block; }
.lsg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lsg-number__label { max-width: 30ch; color: var(--lsg-muted); font-size: clamp(1.0625rem, 1.5vw, 1.375rem); line-height: 1.35; }
@media (min-width: 860px) { .lsg-number { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* ---------- Services and displays: big names, the active one lights up ---------- */
.lsg-services { background: var(--lsg-navy); }
.lsg-displays { background: var(--lsg-black); }
.lsg-rows { border-bottom: 1px solid var(--lsg-rule); }
.lsg-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-block: clamp(18px, 2.4vw, 34px);
  border-top: 1px solid var(--lsg-rule);
}
.lsg-row__body { display: grid; gap: 12px; align-content: start; justify-items: start; }
.lsg-row__body .lsg-text { justify-self: stretch; }
/* masked underline: a gold line drawn through a clip-path mask under the name, on hover / focus (fine pointers) */
.lsg-row .lsg-h3 { position: relative; }
.lsg-row .lsg-h3::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.12em; height: 3px; background: var(--lsg-gold); clip-path: inset(0 100% 0 0); transition: clip-path 0.55s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) and (pointer: fine) {
  .lsg-row:hover .lsg-h3::after, .lsg-row:focus-within .lsg-h3::after { clip-path: inset(0 0 0 0); }
}
.lsg-icon { width: 44px; aspect-ratio: 1 / 1; padding-top: 0; }
.lsg-icon img { width: 100%; height: 100%; object-fit: contain; }
.lsg-services .lsg-h3 { font-size: clamp(1.9rem, 4.2vw, 4.5rem); text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.95; }
.lsg-services .lsg-text { max-width: 40rem; font-size: clamp(1rem, 1.3vw, 1.1875rem); }
.lsg-displays .lsg-h3 { font-size: clamp(1.5rem, 3vw, 3rem); letter-spacing: -0.035em; line-height: 1; }
.lsg-displays .lsg-text { max-width: 40rem; }
.lsg-displays .lsg-icon { width: 36px; }
.lsg-displays .lsg-row { grid-template-columns: 36px minmax(0, 1fr); }
@media (min-width: 720px) {
  .lsg-row { grid-template-columns: 72px minmax(0, 1fr); gap: 28px; }
  .lsg-icon { width: 72px; }
  .lsg-displays .lsg-row { grid-template-columns: 56px minmax(0, 1fr); }
  .lsg-displays .lsg-icon { width: 56px; }
}

/* cursor preview (created by JS, desktop only, decorative) */
.lsg-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 900;
  width: 300px;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: var(--lsg-navy-lift);
}
.lsg-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Projects: image reveal, no boxes ---------- */
.lsg-projects { background: var(--lsg-navy); }
.lsg-projects__list { display: grid; gap: clamp(48px, 6vw, 96px); }
.lsg-project { display: grid; gap: 24px 56px; align-items: center; }
.lsg-media { width: 100%; overflow: hidden; border-radius: var(--lsg-radius); background: var(--lsg-navy-lift); }
.lsg-media--4x3 { aspect-ratio: 16 / 10; }
.lsg-media img { width: 100%; height: 100%; object-fit: cover; }
/* subtle hover zoom inside the frame (individual `scale` property, so it composes with the JS parallax transform) */
@media (hover: hover) and (pointer: fine) {
  .lsg-media img { transition: scale 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
  .lsg-project:hover .lsg-media img { scale: 1.03; }
}
.lsg-project__body { display: grid; gap: 14px; align-content: start; }
.lsg-project .lsg-h3 { font-size: clamp(2.2rem, 4.6vw, 4.5rem); letter-spacing: -0.045em; line-height: 0.96; }
.lsg-badge { justify-self: start; padding-left: 12px; border-left: 2px solid var(--lsg-gold); font-family: var(--lsg-mono); font-size: 0.75rem; line-height: 1.4; color: var(--lsg-muted); }
.lsg-project__city { display: flex; align-items: center; gap: 8px; color: var(--lsg-gold); font-size: 0.9375rem; font-weight: 600; }
.lsg-project .lsg-text { max-width: 34rem; }
/* Projects layout axis (studio only; the theme swaps the class on the list through lds_layout). Desktop only: below 900px every
   project is stacked the same way, picture on top. Only the position of the two containers changes: no font, colour or spacing.
   --left: every photo left.  --right: every photo right.  --zigzag (default): even items have the photo on the right.
   The :nth-child(even) rule is the documented exception to contract 11.4 for home.projects only (decision 0039). */
@media (min-width: 900px) {
  .lsg-project { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
  .lsg-project__body { align-self: center; }   /* text block vertically centred against its photo, in every item and option */
  .lsg-pl--right .lsg-project,
  .lsg-pl--zigzag .lsg-project:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }   /* decision 0039 */
  .lsg-pl--right .lsg-project .lsg-media,
  .lsg-pl--zigzag .lsg-project:nth-child(even) .lsg-media { grid-column: 2; grid-row: 1; }
  .lsg-pl--right .lsg-project .lsg-project__body,
  .lsg-pl--zigzag .lsg-project:nth-child(even) .lsg-project__body { grid-column: 1; grid-row: 1; }
}

/* ---------- Calculator teaser ---------- */
.lsg-calc-teaser { background: var(--lsg-black); }
.lsg-calc-teaser__layout { display: grid; gap: 40px; align-items: center; }
.lsg-calc-teaser__head { display: grid; gap: 24px; justify-items: start; }
.lsg-calc-teaser__visual { --lsg-cube-box: 180px; --s: calc(var(--lsg-cube-box) * 0.56); /* cube edge: a rotating cube stays inside the box */ position: relative; width: var(--lsg-cube-box); height: var(--lsg-cube-box); pointer-events: none; }
/* WebGL cube (assets/js/lsg-cube-3d.js, lazy): the canvas fades in over the CSS cube, which is then hidden.
   The canvas is transparent (alpha), so the section background shows through. */
.lsg-cube-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity 0.6s ease; }
.lsg-cube-gl.is-on { opacity: 1; }
.lsg-calc-teaser__visual.has-gl .lsg-cube-core { opacity: 0; visibility: hidden; }
.lsg-calc-teaser__visual.has-gl .lsg-cube-scene { opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0s 0.6s; }

/* Glass cube: pure CSS 3D (decorative, aria-hidden). The CSS pose below is the static 3/4 pose used with JS off,
   reduced motion and edit mode; JS only writes an inline transform while it runs. */
.lsg-cube-scene {
  position: relative; width: 100%; height: 100%;
  perspective: calc(var(--lsg-cube-box) * 3.2);
  display: grid; place-items: center;
  pointer-events: none;
}
.lsg-cube-scene::before {   /* soft outer glow (a sibling layer: filters on the 3D element would flatten it) */
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(70, 120, 255, 0.34) 0%, rgba(120, 60, 255, 0.16) 42%, rgba(0, 0, 0, 0) 70%);
}
.lsg-cube { position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(38deg) rotateZ(7deg); will-change: transform; }
.lsg-cube__face { position: absolute; inset: 0; display: block; }
.lsg-cube__face {
  --a: 0deg;
  border: 1.5px solid rgba(190, 228, 255, 0.9);
  border-image: conic-gradient(from var(--a), #38e8ff, #ff2bd6, #ffe44d, #38e8ff) 1;   /* iridescent edge */
  background:
    radial-gradient(circle at 50% 50%, rgba(5, 10, 60, 0) 52%, rgba(90, 170, 255, 0.28) 100%),
    conic-gradient(from var(--a) at 28% 18%, rgba(0, 235, 255, 0.34), rgba(255, 0, 200, 0.26), rgba(255, 232, 0, 0.2), rgba(0, 235, 255, 0.34)),
    linear-gradient(145deg, rgba(20, 44, 200, 0.5) 0%, rgba(3, 8, 70, 0.66) 100%);
  box-shadow: inset 0 0 22px rgba(90, 170, 255, 0.5), inset 0 0 2px rgba(255, 255, 255, 0.8), 0 0 14px rgba(60, 120, 255, 0.35);
}
.lsg-cube__face::after {   /* LED-dot texture, strongest towards the edges */
  content: ""; position: absolute; inset: 5%;
  background: radial-gradient(circle, rgba(220, 240, 255, 0.55) 0.9px, transparent 1.4px) 0 0 / 9px 9px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 52%, #000 100%);
  mask-image: radial-gradient(circle at 50% 50%, transparent 52%, #000 100%);
  opacity: 0.8;
}
.lsg-cube__face--front  { --a: 20deg;  transform: translateZ(calc(var(--s) / 2)); }
.lsg-cube__face--back   { --a: 140deg; transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.lsg-cube__face--right  { --a: 260deg; transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.lsg-cube__face--left   { --a: 80deg;  transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.lsg-cube__face--top    { --a: 200deg; transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.lsg-cube__face--bottom { --a: 320deg; transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
/* inner white-hot cubes: flat, crisp squares that always face the viewer (nested preserve-3d cores flattened into wedges and
   slivers in browsers with software compositing). They sit above the 3D scene (a sibling, not inside its perspective); JS moves them to the
   projected position of two points inside the cube. The CSS positions below are the static pose. */
.lsg-cube-core {
  --c: calc(var(--s) * 0.26); --x: -0.0855; --y: -0.0918; --k: 1.0350; --r: 12deg;
  position: absolute; left: 50%; top: 50%; z-index: 1; display: block;
  width: var(--c); height: var(--c); margin: calc(var(--c) / -2) 0 0 calc(var(--c) / -2);
  border-radius: 2px;
  background: linear-gradient(135deg, #fff 0%, #fff 62%, #ffeefc 100%);
  box-shadow: -2px 0 0 rgba(40, 230, 255, 0.75), 2px 0 0 rgba(255, 43, 214, 0.75), 0 0 12px 3px rgba(255, 255, 255, 0.9), 0 0 28px 8px rgba(255, 0, 200, 0.42), 0 0 44px 12px rgba(0, 225, 255, 0.3);
  transform: translate(calc(var(--s) * var(--x)), calc(var(--s) * var(--y))) rotate(var(--r)) scale(var(--k));
  pointer-events: none;
}
.lsg-cube-core::before {   /* offset ghost square: reads as the cube's back edge */
  content: ""; position: absolute; inset: 0; transform: translate(-24%, -24%); z-index: -1;
  border: 1.5px solid rgba(255, 190, 250, 0.85); border-radius: 2px; background: rgba(255, 120, 235, 0.18);
}
.lsg-cube-core--b { --c: calc(var(--s) * 0.18); --x: 0.0779; --y: 0.1038; --k: 0.9662; --r: -20deg; }
@media (min-width: 900px) {
  .lsg-calc-teaser__layout { grid-template-columns: minmax(0, 1fr) auto; gap: 80px; }
  .lsg-calc-teaser__visual { --lsg-cube-box: 300px; }
}

/* ---------- FAQ: big rows, every answer visible ---------- */
.lsg-faq { background: var(--lsg-navy); }
.lsg-faq__list { border-bottom: 1px solid var(--lsg-rule); }
.lsg-faq__item { display: grid; gap: 12px 40px; padding-block: clamp(18px, 2.4vw, 34px); border-top: 1px solid var(--lsg-rule); }
.lsg-faq .lsg-h3 { font-size: clamp(1.4rem, 2.4vw, 2.2rem); letter-spacing: -0.035em; line-height: 1.02; }
.lsg-faq__answer { color: var(--lsg-muted); line-height: 1.45; font-size: clamp(1rem, 1.3vw, 1.1875rem); max-width: 40rem; }
.lsg-faq__answer p { margin: 0; }
.lsg-faq__answer p + p { margin-top: 0.75em; }
@media (min-width: 900px) { .lsg-faq__item { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; } }

/* ---------- Contact ---------- */
.lsg-contact { background: var(--lsg-black); }
.lsg-contact__grid { display: grid; gap: 40px; }
.lsg-contact__info { display: grid; gap: 32px; align-content: start; max-width: 56rem; }
.lsg-contact__list { display: grid; gap: 18px; }
.lsg-contact__item { display: flex; align-items: center; gap: 16px; }
.lsg-contact__icon { color: var(--lsg-gold); display: inline-flex; }
.lsg-contact__link { font-weight: 800; letter-spacing: -0.03em; font-size: clamp(1.5rem, 4.2vw, 3.5rem); line-height: 1.05; text-decoration: none; overflow-wrap: anywhere; }
.lsg-contact__link:hover { text-decoration: underline; text-decoration-color: var(--lsg-gold); text-underline-offset: 8px; }
.lsg-contact__note { display: flex; gap: 12px; align-items: flex-start; color: var(--lsg-muted); max-width: 34rem; }
.lsg-contact__note svg { flex: none; margin-top: 3px; color: var(--lsg-gold); }
.lsg-form-slot:empty { display: none; }
@media (min-width: 1024px) {
  .lsg-contact__grid:has(.lsg-form-slot:not(:empty)) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; }
}

/* ---------- Footer ---------- */
.lsg-footer { background: var(--lsg-navy); padding-block: clamp(48px, 6vw, 88px); position: relative; margin-top: calc(var(--lsg-overlap) * -1); padding-top: calc(clamp(48px, 6vw, 88px) + var(--lsg-overlap)); border-radius: var(--lsg-overlap) var(--lsg-overlap) 0 0; }
.lsg-footer__grid { display: grid; gap: 28px; align-items: start; }
.lsg-footer__logo .lsg-logo__media { height: 48px; }
.lsg-footer__links { display: grid; gap: 8px; justify-items: start; }
.lsg-footer__link { font-family: var(--lsg-mono); text-decoration: none; overflow-wrap: anywhere; }
.lsg-footer__link:hover { text-decoration: underline; text-decoration-color: var(--lsg-gold); text-underline-offset: 5px; }
.lsg-footer__meta { display: grid; gap: 6px; color: var(--lsg-muted); font-size: 0.9375rem; }
@media (min-width: 768px) {
  .lsg-footer__grid { grid-template-columns: 1fr 1fr 1fr; align-items: center; }
  .lsg-footer__meta { justify-items: end; text-align: right; }
}

/* Title cut (JS adds .lsg-cut): the section clips its own content, so the held title only shows inside the rising section.
   overflow: clip (not hidden) does not make a scroll container, so the sticky steps and the sticky head keep working. */
.lsg-cut { overflow: clip; }
/* The wrapper (added once by JS) reaches --lsg-cut-x above the section top; the ::after spacer gives the height back, so the layout
   is unchanged. The title is sticky inside it: held at 42% of the small viewport while the section rises, released at its natural place. */
@media (prefers-reduced-motion: no-preference) {
  @supports (position: sticky) and (top: 42svh) {
    .lsg-cutwrap { --lsg-cut-x: 100vh; margin-top: calc(-1 * var(--lsg-cut-x)); }
    .lsg-cutwrap::after { content: ""; display: block; height: var(--lsg-cut-x); }
    .lsg-cutwrap > * { position: sticky; top: 42svh; }
  }
}

/* ---------- Quote form (PREVIEW markup inside the slot; the theme replaces the slot content with Fluent Forms, which must be
   styled with these same classes: .lsg-form, .lsg-field, .lsg-field--req, .lsg-field--wide, .lsg-check, .lsg-form__*) ---------- */
.lsg-form { display: grid; gap: 22px 24px; align-content: start; }
.lsg-form__title { grid-column: 1 / -1; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
.lsg-field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.lsg-field > label { font-size: 0.9375rem; font-weight: 600; color: var(--lsg-text); }
.lsg-field--req > label::after { content: " *"; color: var(--lsg-gold); }
.lsg-optional { font-weight: 400; color: var(--lsg-muted); }
.lsg-field input, .lsg-field select, .lsg-field textarea {
  width: 100%; min-height: 48px; padding: 12px 16px;
  font: inherit; font-size: 1rem; line-height: 1.4; color: var(--lsg-text);
  background: rgba(244, 245, 250, 0.05); border: 1.5px solid rgba(244, 245, 250, 0.45); border-radius: 14px;
}
.lsg-field textarea { min-height: 140px; resize: vertical; }
.lsg-field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--lsg-gold) 50%), linear-gradient(135deg, var(--lsg-gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.lsg-field select option { background: var(--lsg-navy); color: var(--lsg-text); }
.lsg-field input:hover, .lsg-field select:hover, .lsg-field textarea:hover { border-color: rgba(244, 245, 250, 0.75); }
.lsg-field input:focus-visible, .lsg-field select:focus-visible, .lsg-field textarea:focus-visible { outline: 2px solid var(--lsg-gold); outline-offset: 2px; border-color: var(--lsg-gold); }
.lsg-form__hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lsg-form__consent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.lsg-check { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; color: var(--lsg-text); line-height: 1.4; cursor: pointer; }
.lsg-check input { flex: none; width: 24px; height: 24px; min-height: 0; margin: 0; accent-color: var(--lsg-gold); }
.lsg-check input:focus-visible { outline: 2px solid var(--lsg-gold); outline-offset: 3px; }
.lsg-form__policy { color: var(--lsg-gold); font-weight: 600; text-underline-offset: 5px; padding-block: 12px; }   /* 44px touch target */
.lsg-form__policy:hover { color: var(--lsg-text); }
.lsg-form__actions { display: flex; }
.lsg-form .lsg-btn { cursor: pointer; font-family: var(--lsg-font); }
.lsg-form__status { color: var(--lsg-muted); font-size: 0.9375rem; padding-left: 12px; border-left: 2px solid var(--lsg-gold); }
.lsg-form__status:empty { display: none; }
.lsg-field--wide, .lsg-form__consent, .lsg-form__actions { grid-column: 1 / -1; }
@media (min-width: 640px) { .lsg-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .lsg-form { grid-template-columns: minmax(0, 1fr); } }
/* with the form beside it, the phone and e-mail links are smaller so the address stays on one line */
.lsg-contact__grid:has(.lsg-form-slot:not(:empty)) .lsg-contact__link { font-size: clamp(1.2rem, 5vw, 2.4rem); }
@media (min-width: 1024px) { .lsg-contact__grid:has(.lsg-form-slot:not(:empty)) .lsg-contact__link { font-size: clamp(1.4rem, 2.4vw, 2.4rem); } }

/* ---------- Portfolio button under the projects list (round 3) ---------- */
.lsg-projects__more { margin-top: clamp(48px, 6vw, 96px); }
