@import url("variables.css");

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--bg);
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 12% 8%, rgba(21, 154, 153, .08), transparent 28rem),
    radial-gradient(circle at 82% 0%, rgba(198, 154, 74, .12), transparent 26rem),
    linear-gradient(180deg, var(--bg), var(--bg));
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.menu-open,
body.modal-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.mouse-sparkles-glow-point {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9998;
  width: 10px;
  height: 10px;
  pointer-events: none;
  border-radius: 999px;
  background: rgba(5, 47, 68, .64);
  box-shadow: 0 0 16px rgba(15, 107, 118, .32);
  translate: -50% -50%;
  animation: cursor-glow-fade 380ms ease-out forwards;
}

.mouse-sparkles-glow-point:nth-child(2n) {
  width: 8px;
  height: 8px;
  background: rgba(15, 107, 118, .5);
  box-shadow: 0 0 14px rgba(5, 47, 68, .22);
}

[data-theme="dark"] .mouse-sparkles-glow-point {
  background: rgba(72, 236, 229, .78);
  box-shadow: 0 0 18px rgba(72, 236, 229, .4);
}

[data-theme="dark"] .mouse-sparkles-glow-point:nth-child(2n) {
  background: rgba(232, 190, 106, .66);
  box-shadow: 0 0 16px rgba(232, 190, 106, .28);
}

@keyframes cursor-glow-fade {
  to {
    opacity: 0;
    scale: .36;
  }
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--surface-dark);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 999px;
}
.skip-link:focus { transform: translateY(0); }

.container,
.wide {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}
.wide { width: min(100% - (var(--gutter) * 2), var(--container-wide)); }
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(36px, 5vw, 64px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 16px;
  min-height: 40px;
  padding: 0 22px;
  border-inline: 1px solid color-mix(in srgb, var(--gold) 68%, transparent);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface-solid) 48%, transparent), transparent);
  color: color-mix(in srgb, var(--text) 72%, var(--teal-700));
  font-family: var(--font-display);
  font-size: clamp(.78rem, 1.3vw, 1rem);
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.eyebrow::before { display: none; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: .94;
  letter-spacing: 0;
}
h1 {
  font-size: clamp(3rem, 9vw, 7rem);
  max-width: 1040px;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 5.5vw, 4.8rem);
  max-width: 920px;
  text-wrap: balance;
}
h3 { font-size: clamp(1.05rem, 1.8vw, 1.45rem); line-height: 1.15; }
.lead {
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  color: var(--muted);
  max-width: 720px;
}
.measure { max-width: 760px; }
.muted { color: var(--muted); }

.grid { display: grid; gap: 18px; }
.two-col { grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr); align-items: center; }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four-col { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(18px);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  overflow-x: clip;
  background: transparent;
}
main { flex: 1; }
main > section:not(.hero):not(.page-hero):not(.industry-detail-hero),
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--bg);
}
body.has-page-hero main > section:nth-child(2) {
  margin-top: -1px;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .68s ease, transform .78s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.scene-line,
.scene-visual {
  opacity: 0;
  will-change: opacity, transform;
}

.scene-line {
  transform: translate3d(-54px, 0, 0);
  transition:
    opacity .62s ease var(--scene-delay, 0ms),
    transform .78s cubic-bezier(.16, 1, .3, 1) var(--scene-delay, 0ms);
}

.scene-visual {
  transform: translate3d(64px, 0, 0) scale(.985);
  transition:
    opacity .68s ease var(--scene-delay, 0ms),
    transform .84s cubic-bezier(.16, 1, .3, 1) var(--scene-delay, 0ms);
}

.scene-line.is-visible,
.scene-visual.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.reveal.scene-visual,
.reveal.scene-line {
  transform: translate3d(64px, 0, 0) scale(.985);
}

.reveal.scene-line {
  transform: translate3d(-54px, 0, 0);
}

.reveal.scene-visual.is-visible,
.reveal.scene-line.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .reveal,
  .scene-line,
  .scene-visual {
    opacity: 1;
    transform: none;
  }
}
