/* ==========================================================================
   Lumidust — homepage styles
   Palette: ink / warm off-white / one restrained accent
   ========================================================================== */

:root {
  /* The brand commits to one light ground; don't let the OS repaint controls. */
  color-scheme: light;

  --ink:        #0e1116;
  --ink-soft:   #2b323c;
  --muted:      #5c6674;
  --line:       #e4e2dd;
  --bg:         #fbfaf8;
  --bg-alt:     #f3f1ec;
  --accent:     #b07d3a;
  --accent-dim: rgba(176, 125, 58, 0.14);

  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 40px);
  --section-y: clamp(88px, 12vw, 152px);
  --radius: 14px;

  --sans: "Inter", "Geist", "General Sans", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------- reset -- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.032em; line-height: 1.08; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ------------------------------------------------------------------ nav -- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 250, 248, 0.88);
}

.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.wordmark__mark { color: var(--ink); display: flex; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 15px;
  color: var(--muted);
}

.nav__links a:not(.btn) {
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }

/* --------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.012em;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease),
              box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: 9px 18px; font-size: 14.5px; }

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(14, 17, 22, 0.16);
}
.btn--primary:hover {
  background: #1b212a;
  box-shadow: 0 8px 22px -10px rgba(14, 17, 22, 0.6);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink-soft);
  background: transparent;
}
.btn--ghost:hover { border-color: #c9c5bc; background: rgba(255, 255, 255, 0.7); }

.btn--light {
  background: var(--bg);
  color: var(--ink);
}
.btn--light:hover { background: #fff; box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.8); }

/* --------------------------------------------------------------- shared -- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}
.eyebrow--invert { color: rgba(255, 255, 255, 0.55); }

.section { padding-block: var(--section-y); }
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section__heading { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section__heading--invert { color: #fff; }

.section__intro {
  margin-top: 20px;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
}

.prose {
  font-size: clamp(1.02rem, 1.5vw, 1.14rem);
  color: var(--ink-soft);
  line-height: 1.72;
  max-width: 62ch;
}

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 17vw, 190px) clamp(88px, 14vw, 160px);
}

.hero__glow {
  position: absolute;
  top: -34%;
  left: 50%;
  width: min(1180px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 50%, var(--accent-dim) 0%, rgba(176, 125, 58, 0) 62%);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(14, 17, 22, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 17, 22, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 5%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 5%, transparent 72%);
  pointer-events: none;
}

.hero__inner { position: relative; }

.hero__headline {
  font-size: clamp(2.6rem, 6.6vw, 4.4rem);
  max-width: 15ch;
  letter-spacing: -0.038em;
}

.hero__sub {
  margin-top: 26px;
  max-width: 56ch;
  font-size: clamp(1.08rem, 1.85vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ----------------------------------------------------------- industries -- */

.section__split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.section__lead .section__heading { max-width: 16ch; }

.industry-band {
  margin-top: clamp(56px, 8vw, 88px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.industry-band li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.industry-band li:hover { border-color: var(--accent); color: var(--ink); }

.industry-band__more {
  border-color: transparent !important;
  background: transparent !important;
  color: var(--muted);
  font-style: italic;
  padding-inline: 4px;
}

/* --------------------------------------------------------- capabilities -- */

.section__head { max-width: 60ch; }

.cards {
  margin-top: clamp(48px, 7vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 30px 28px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: #d8d4cb;
  box-shadow: 0 18px 40px -28px rgba(14, 17, 22, 0.45);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border-radius: 11px;
  background: var(--bg-alt);
  color: var(--ink-soft);
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { color: var(--accent); }

.card__title {
  font-size: 1.18rem;
  letter-spacing: -0.024em;
  margin-bottom: 12px;
}

.card__text {
  color: var(--muted);
  font-size: 15.6px;
  line-height: 1.68;
}

/* -------------------------------------------------------------- contact -- */

.section--contact {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.contact__glow {
  position: absolute;
  bottom: -55%;
  left: 50%;
  width: min(1000px, 120vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(176, 125, 58, 0.22) 0%, rgba(176, 125, 58, 0) 63%);
  pointer-events: none;
}

.contact__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section--contact .section__heading { max-width: 18ch; }

.contact__body {
  margin-top: 22px;
  max-width: 52ch;
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  color: rgba(255, 255, 255, 0.66);
}

.contact__email {
  margin-top: 40px;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 4px;
  transition: border-color 0.25s var(--ease);
}
.contact__email:hover { border-bottom-color: var(--accent); }

.contact__inner .btn--light { margin-top: 36px; }

/* --------------------------------------------------------------- footer -- */

.footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-block: 30px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer__wordmark {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer__email { transition: color 0.2s var(--ease); }
.footer__email:hover { color: #fff; }

.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s var(--ease);
}
.footer__social:hover { color: #fff; }

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .section__split { grid-template-columns: 1fr; }
  .section__lead .section__heading { max-width: 22ch; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav__links { gap: 16px; font-size: 14.5px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .nav__links a:not(.btn) { display: none; }
}
