/* Site-wide styles shared across all pages */

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

html {
  scroll-behavior: smooth;
  background: #0E0E0F;
}

body {
  margin: 0;
  background: #0E0E0F;
  color: #F4F1EC;
  font-family: 'Inter', system-ui, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@keyframes ldoMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

@keyframes ldoFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ldo-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 96px);
}

.ldo-sec-head {
  padding: 128px 0 64px;
}

.ldo-sec-eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ldo-accent-live, #C9A86A);
  margin-bottom: 28px;
}

.ldo-sec-title {
  font-size: clamp(48px, 7vw, 112px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}

.ldo-rule {
  border: 0;
  border-top: 1px solid rgba(244,241,236,0.08);
  margin: 0;
}

/* Tweaks panel */
.tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 300px;
  background: rgba(20,20,22,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(244,241,236,0.12);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  font-family: 'Inter', sans-serif;
  color: #F4F1EC;
  display: none;
}
.tweaks-panel.visible { display: block; }
.tweaks-panel h6 {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7A7874;
  margin: 0 0 12px;
  font-weight: 500;
}
.tweaks-panel .tweak-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 16px 0 8px;
  color: #F4F1EC;
}
.tweaks-panel .tweak-title:first-child { margin-top: 0; }
.tweaks-panel .tweak-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tweaks-panel button.opt {
  padding: 6px 10px;
  font-size: 12px;
  background: transparent;
  color: #B6B3AE;
  border: 1px solid rgba(244,241,236,0.14);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all .16s;
}
.tweaks-panel button.opt:hover { color: #F4F1EC; border-color: rgba(244,241,236,0.3); }
.tweaks-panel button.opt.active {
  background: #F4F1EC;
  color: #0E0E0F;
  border-color: #F4F1EC;
}
.tweaks-panel .tweak-desc {
  font-size: 11px;
  color: #7A7874;
  margin: 6px 0 0;
  line-height: 1.5;
}

/* Services — alternating list: sibling-dim on hover.
   Rows are dimmed when the list is being hovered, except the one under the cursor. */
.svc-alt-list:hover .svc-alt-row { opacity: 0.4; }
.svc-alt-list:hover .svc-alt-row:hover { opacity: 1; }
.svc-alt-row { opacity: 1; }

/* Work — case-study grid/list: same sibling-dim pattern. */
.work-hover-group:hover .work-hover-item { opacity: 0.4; }
.work-hover-group:hover .work-hover-item:hover { opacity: 1; }
.work-hover-item { opacity: 1; }

/* Accent OFF mode — neutralise all accent usages */
body.accent-off {
  --ldo-accent-live: #F4F1EC;
}
body:not(.accent-off) {
  --ldo-accent-live: #C9A86A;
}

/* Case study prose — matches inline-styled paragraphs in CaseSection */
.case-prose {
  max-width: 680px;
}
.case-prose p {
  font-size: 19px;
  line-height: 1.6;
  color: #B6B3AE;
  margin: 0;
  text-wrap: pretty;
}
.case-prose p + p {
  margin-top: 28px;
}
.case-prose strong {
  color: #F4F1EC;
  font-weight: 500;
}
.case-prose em {
  font-style: italic;
}
.case-prose a {
  color: var(--ldo-accent-live, #C9A86A);
  text-decoration: underline;
  text-decoration-color: rgba(201, 168, 106, 0.4);
  text-underline-offset: 3px;
}
.case-prose a:hover {
  text-decoration-color: var(--ldo-accent-live, #C9A86A);
}
.case-prose ul, .case-prose ol {
  margin: 28px 0 0;
  padding-left: 24px;
  color: #B6B3AE;
  font-size: 19px;
  line-height: 1.6;
}
.case-prose li + li {
  margin-top: 8px;
}
