:root {
  --ink: #0c0f14;
  --ink-2: #1a2030;
  --mist: #e8edf2;
  --mist-2: #d5dde6;
  --lime: #d6ff3c;
  --lime-deep: #b8e000;
  --frost: #f4f7fa;
  --muted: #5c6b7a;
  --line: rgba(12, 15, 20, 0.12);
  --max: 1180px;
  --display: "Unbounded", system-ui, sans-serif;
  --sans: "Syne", system-ui, sans-serif;
  --body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(214, 255, 60, 0.18), transparent 55%),
    radial-gradient(700px 400px at -5% 30%, rgba(100, 140, 180, 0.16), transparent 50%),
    var(--mist);
  line-height: 1.55;
  font-size: 1.05rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  mix-blend-mode: difference;
  color: #fff;
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.15;
}

.logo span { display: block; }

.nav { display: none; gap: 1.4rem; }
.nav a {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav a:hover { opacity: 1; }

.header-cta {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 2px;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: #0c0f14;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide.is-active img,
.hero-slide.is-active video {
  animation: drift 22s ease-out forwards;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(115deg, rgba(8, 10, 14, 0.78) 0%, rgba(8, 10, 14, 0.35) 42%, rgba(8, 10, 14, 0.55) 100%),
    linear-gradient(180deg, transparent 35%, rgba(8, 10, 14, 0.88) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(var(--max), calc(100% - 2.2rem));
  margin: 0 auto 4rem;
  padding-top: 7rem;
}

.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 7.5vw, 5.2rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  max-width: 11ch;
  animation: rise 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero h1 {
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  max-width: 22ch;
  margin-bottom: 0.85rem;
  animation: rise 0.85s 0.12s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lede {
  font-family: var(--body);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36ch;
  margin-bottom: 1.6rem;
  animation: rise 0.85s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  animation: rise 0.85s 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-scroll {
  position: absolute;
  right: 1.25rem;
  bottom: 1.6rem;
  z-index: 3;
  font-family: var(--display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
  animation: scrollPulse 2.4s ease-in-out infinite;
}

.hero-scroll:hover {
  color: var(--lime);
}

.btn-clear {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn-clear:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.4rem;
  border: none;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn:active { transform: scale(0.97); }

.btn-lime {
  background: var(--lime);
  color: var(--ink);
}

.btn-lime:hover { background: #e2ff6a; }

.btn-ink {
  background: var(--ink);
  color: var(--lime);
}

.btn-ink:hover { background: #1c2433; }

.btn-full { width: 100%; }

/* —— Services / Industries —— */
.services {
  padding: 5.5rem 0 5rem;
  background:
    linear-gradient(180deg, #f4f7fa 0%, var(--mist) 100%);
}

.section-rail {
  width: min(var(--max), calc(100% - 2.2rem));
  margin: 0 auto 2.5rem;
}

.eyebrow {
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.eyebrow.light { color: rgba(255,255,255,0.55); }
.eyebrow.lime { color: #a8c92a; }

.section-rail h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 14ch;
}

.section-lead {
  margin-top: 0.9rem;
  font-family: var(--body);
  color: var(--muted);
  font-weight: 400;
  line-height: 1.55;
  max-width: 44ch;
  font-size: 1.08rem;
}

.industry-grid {
  list-style: none;
  width: min(var(--max), calc(100% - 2.2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.industry-grid li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.2s ease;
}

.industry-grid li:last-child { border-bottom: none; }

.industry-grid li.visible {
  opacity: 1;
  transform: none;
}

.industry-grid li:hover {
  background: rgba(214, 255, 60, 0.22);
}

.industry-grid .idx {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.industry-grid h3 {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* —— Clients marquee —— */
.clients {
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(700px 320px at 10% 0%, rgba(214, 255, 60, 0.12), transparent 55%),
    #0c0f14;
  color: #fff;
}

.clients-head {
  width: min(var(--max), calc(100% - 2.2rem));
  margin: 0 auto 2rem;
}

.clients-head h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 16ch;
  color: #fff;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 1.6rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
}

.client-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.client-logo .mark {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.4rem;
  border-radius: 8px;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  background: var(--lime);
}

.client-logo .name {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.logo-lottery .mark { background: #ffd200; }
.logo-loreto .mark { background: var(--lime); color: var(--ink); }
.logo-dental .mark { background: #7ec8e3; }
.logo-clinic .mark { background: #b8e0d2; }
.logo-office .mark { background: #c5c9d1; font-size: 0.9rem; }
.logo-mfg .mark { background: #f0a05a; }

.clients-note {
  width: min(var(--max), calc(100% - 2.2rem));
  margin: 1.25rem auto 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

/* —— Process —— */
.process {
  padding: 5.5rem 0 5.5rem;
  background:
    linear-gradient(135deg, rgba(214, 255, 60, 0.28) 0%, rgba(214, 255, 60, 0.08) 40%, #eef3f0 100%);
}

.process .section-rail {
  margin-bottom: 2.75rem;
}

.process-steps {
  list-style: none;
  width: min(var(--max), calc(100% - 2.2rem));
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.process-steps li {
  padding: 1.5rem 1.35rem 1.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(12, 15, 20, 0.08);
  border-left: 4px solid var(--lime);
  border-radius: 0 14px 14px 0;
}

.process-steps .step-num {
  display: block;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #6a7a20;
  margin-bottom: 0.55rem;
}

.process-steps h3 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.process-steps p {
  color: var(--muted);
  font-weight: 500;
  max-width: 36ch;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* —— Promise —— */
.promise {
  background:
    radial-gradient(600px 400px at 90% 20%, rgba(214, 255, 60, 0.14), transparent 60%),
    var(--ink);
  color: #fff;
  padding: 5.5rem 0;
  clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%);
  margin-top: -1vw;
}

.promise-frame {
  width: min(var(--max), calc(100% - 2.2rem));
  margin: 0 auto;
  padding-top: 2rem;
}

.billboard {
  font-family: var(--display);
  font-size: clamp(2.4rem, 8vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 0.5rem 0 1.25rem;
  text-wrap: balance;
}

.billboard em {
  font-style: normal;
  color: var(--lime);
}

.billboard-sub {
  font-size: 1.08rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  max-width: 42ch;
  margin-bottom: 2rem;
}

/* —— Contact —— */
.contact {
  padding: 5rem 0 4rem;
  background:
    linear-gradient(180deg, var(--mist) 0%, var(--frost) 100%);
}

.contact-shell {
  width: min(var(--max), calc(100% - 2.2rem));
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

.contact-copy h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 12ch;
  margin-bottom: 0.9rem;
}

.lede-dark {
  color: var(--muted);
  font-weight: 500;
  max-width: 34ch;
  margin-bottom: 0.85rem;
}

.service-area {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.35rem;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid var(--lime);
  width: fit-content;
}

.contact-lines {
  display: grid;
  gap: 0.4rem;
}

.contact-lines a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  width: fit-content;
  border-bottom: 2px solid var(--lime);
  transition: color 0.2s;
}

.contact-lines a:hover { color: #3a4a1a; }

.quote-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.4rem;
  box-shadow: 12px 20px 0 rgba(12, 15, 20, 0.06);
}

.form-row {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.quote-form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.form-row label { margin-bottom: 0; }

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--frost);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}

.quote-form textarea {
  resize: vertical;
  min-height: 110px;
  font-weight: 400;
  line-height: 1.5;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}

.quote-form .invalid {
  border-color: #d64545 !important;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.65rem;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  cursor: pointer;
}

.check input {
  width: auto;
  margin-top: 0.15rem;
  accent-color: var(--ink);
}

.form-note {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.trust-line {
  margin-top: 0.95rem;
  text-align: center;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.form-status {
  margin-top: 0.75rem;
  text-align: center;
  font-weight: 700;
  min-height: 1.3em;
}

.form-status.success { color: #2f6b1a; }
.form-status.error { color: #d64545; }

/* —— Footer —— */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2.2rem));
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.footer-main {
  display: grid;
  gap: 0.2rem;
}

.footer-brand {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.footer-area {
  font-weight: 700;
  color: var(--ink);
}

.footer-meta {
  font-size: 0.82rem;
}

/* —— Motion —— */
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes drift {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

@media (min-width: 760px) {
  .nav { display: flex; }
  .site-header { padding: 1.15rem 1.75rem; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .quote-form { padding: 1.75rem; }
  .industry-grid {
    grid-template-columns: 1fr 1fr;
  }
  .industry-grid li:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
  .industry-grid li:nth-last-child(-n+2) {
    border-bottom: none;
  }
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .process-steps li {
    padding: 1.6rem 1.4rem;
  }
}

@media (min-width: 960px) {
  .contact-shell {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: 3.5rem;
  }
  .hero-content { margin-bottom: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand, .hero h1, .lede, .hero-actions,
  .hero-scroll,
  .hero-slide.is-active img,
  .hero-slide.is-active video,
  .industry-grid li {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .marquee-track {
    animation: none !important;
    flex-wrap: wrap;
    width: min(var(--max), calc(100% - 2.2rem));
    margin: 0 auto;
    justify-content: center;
    gap: 1.5rem;
  }
  .marquee-group:last-child { display: none; }
  .marquee-group {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
    gap: 1.5rem;
  }
}
