/* ==========================================================================
   Luminary Digital Group — Site-wide design system
   White canvas, orange as a precise signal color, confident type,
   metrics-led project cards. Shared across every page.
   ========================================================================== */

:root{
  /* --- color --- */
  --paper:        #ffffff;
  --paper-rgb:    255,255,255;
  --paper-warm:   #faf9f6;
  --card:         #f4f1ea;
  --ink:          #14110d;
  --ink-soft:     #57524a;
  --ink-faint:    #928c80;
  --line:         #e9e4d9;
  --line-strong:  #dcd5c6;

  /* Always-dark surface — footer band, primary buttons — stays constant
     in both themes on purpose, it's a brand accent, not themed text. */
  --ink-solid:    #14110d;

  --orange:       #ff6a2b;
  --orange-soft:  #ff8a4d;
  --amber:        #ffb627;
  --grad-brand:   linear-gradient(120deg, var(--orange) 0%, var(--amber) 100%);

  /* --- type --- */
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body:    "Inter", sans-serif;
  --font-mono:    "IBM Plex Mono", monospace;

  /* --- layout --- */
  --maxw: 1180px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --ease: cubic-bezier(.16,.8,.28,1);
}

html[data-theme="dark"]{
  --paper:        #0d0b09;
  --paper-rgb:    13,11,9;
  --paper-warm:   #161310;
  --card:         #1c1812;
  --ink:          #f7f2ea;
  --ink-soft:     #c9c2b4;
  --ink-faint:    #8f877a;
  --line:         rgba(250,243,235,0.1);
  --line-strong:  rgba(250,243,235,0.18);
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p{ margin: 0; color: var(--ink-soft); }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
img{ max-width: 100%; display: block; }
button{ font-family: inherit; }

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

.accent-text{
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--paper-rgb), 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand-word{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  margin-right: auto;
  white-space: nowrap;
}
.brand-word-light{ color: var(--ink-soft); font-weight: 500; margin-left: 4px; }

.nav-links{ display: flex; gap: 30px; align-items: center; }
.nav-links a{
  font-size: 14px;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.nav-links a:hover{ color: var(--ink); }

.nav-cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink-solid);
  color: #fff;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.nav-cta:hover{ background: var(--orange); transform: translateY(-1px); }

.theme-toggle{
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover{ border-color: var(--orange); transform: translateY(-1px); }

.nav-toggle{ display: none; }

@media (max-width: 860px){
  .nav-links{ display: none; }
  .nav-toggle{ display: block; background: none; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; }
}

/* ==========================================================================
   Section shell
   ========================================================================== */

.section{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 28px;
}
.section.tight{ padding: 64px 28px; }
.section-alt{ background: var(--paper-warm); }

.section-head{ max-width: 640px; margin-bottom: 52px; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }

.section-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.section-eyebrow::before{
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.section-head h2{ font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.section-lede{ font-size: 16.5px; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  border-radius: 100px;
  padding: 15px 26px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s var(--ease), filter .2s var(--ease), background .2s var(--ease);
}
.btn-primary{ background: var(--ink-solid); color: #fff; }
.btn-primary:hover{ background: var(--orange); transform: translateY(-2px); }
.btn-outline{ background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-outline:hover{ border-color: var(--orange); color: var(--orange); }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer{
  border-top: 1px solid var(--line);
  background: var(--ink-solid);
  color: rgba(255,255,255,0.7);
}
.footer-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 28px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px){ .footer-inner{ grid-template-columns: 1fr; gap: 32px; } }

.footer-brand{ font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; margin-bottom: 10px; }
.footer p{ color: rgba(255,255,255,0.55); font-size: 14px; max-width: 320px; }
.footer-col-title{ font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 14px; }
.footer-col a{ display: block; font-size: 14px; color: rgba(255,255,255,0.75); padding: 6px 0; transition: color .2s var(--ease); }
.footer-col a:hover{ color: var(--orange-soft); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 28px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Stat strip — shared across any page that shows the 4+/46+/20+ numbers
   ========================================================================== */

.stat-strip{
  max-width: var(--maxw); margin: 60px auto 0; padding: 0 28px 90px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  border-bottom: 1px solid var(--line);
}
.stat{ text-align: center; padding-bottom: 40px; }
.stat-num{ font-family: var(--font-display); font-size: clamp(34px, 5vw, 50px); font-weight: 700; }
.stat-label{ font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 640px){ .stat-strip{ grid-template-columns: 1fr; } }

.focus-line{
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint);
  text-align: center; padding: 0 28px 90px; letter-spacing: 0.02em;
}

/* ==========================================================================
   Our process
   ========================================================================== */

.process-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  position: relative;
}
@media (max-width: 860px){ .process-grid{ grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 560px){ .process-grid{ grid-template-columns: 1fr; } }

.process-step{
  padding: 26px 22px 0; border-top: 2px solid var(--line-strong); position: relative;
}
.process-step:hover{ border-top-color: var(--orange); }
.process-num{ font-family: var(--font-mono); font-size: 12.5px; color: var(--orange); }
.process-step h3{ font-size: 18px; margin: 10px 0 8px; }
.process-step p{ font-size: 13.5px; }
.process-link{ display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--ink); }
.process-link:hover{ color: var(--orange); }

/* ==========================================================================
   3D social orbit — soft, slow-rolling ring of social icons
   ========================================================================== */

.orbit-wrap{ display: flex; justify-content: center; padding: 20px 0 10px; }
.orbit-stage{ perspective: 1000px; width: 100%; max-width: 420px; height: 240px; }
.orbit-ring{
  position: relative; width: 1px; height: 1px; margin: 120px auto 0;
  transform-style: preserve-3d;
  animation: orbit-spin 28s linear infinite;
}
@keyframes orbit-spin{
  from{ transform: rotateY(0deg); }
  to{ transform: rotateY(360deg); }
}
.orbit-item{
  position: absolute; top: 0; left: 0; width: 60px; height: 60px; margin: -30px;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
  box-shadow: 0 14px 34px -16px rgba(20,17,13,0.25);
  backface-visibility: hidden;
}
.orbit-item svg{ width: 24px; height: 24px; }
.orbit-item.is-linked{ cursor: pointer; }
.orbit-item.is-linked:hover{ color: var(--orange); border-color: var(--orange); }
.orbit-wrap:hover .orbit-ring{ animation-play-state: paused; }

@media (prefers-reduced-motion: reduce){
  .orbit-ring{ animation: none; }
}
@media (max-width: 640px){
  .orbit-stage{ height: 200px; }
  .orbit-ring{ margin-top: 100px; }
}

/* ==========================================================================
   Subtle grain texture — adds tactile depth without fighting the white
   canvas. Works in both themes.
   ========================================================================== */

.grain{
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .grain{ mix-blend-mode: overlay; opacity: 0.05; }

/* ==========================================================================
   Infinite marquee — "businesses we've worked with," looping seamlessly
   ========================================================================== */

.marquee-wrap{
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin: 0 auto 90px;
  max-width: var(--maxw);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track{
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  animation: marquee-scroll 26s linear infinite;
}
.marquee-wrap:hover .marquee-track{ animation-play-state: paused; }
.marquee-item{
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink-faint);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.marquee-wrap:hover .marquee-item{ color: var(--ink-soft); }
.marquee-dot{ color: var(--orange); font-size: 19px; }
@keyframes marquee-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
}

/* ==========================================================================
   Responsive helpers
   ========================================================================== */

@media (max-width: 640px){
  .section{ padding: 64px 20px; }
  .nav-inner{ padding: 14px 20px; }
}
