/* ============================================================================
   Scopeture — shared site styles. Builds on Stripi tokens (tokens.css).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--canvas);
  font-feature-settings: var(--feat-ss01);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgba(83,58,253,.16); }

/* ---- layout primitives --------------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }
.section { padding: 104px 0; }
.section-sm { padding: 72px 0; }
.section-tight { padding: 56px 0; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.eyebrow {
  font-size: 11px; font-weight: 400; line-height: 1.15; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--primary-deep);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--primary);
  display: inline-block; opacity: .55;
}
.eyebrow.eyebrow-center::before { display: none; }
.eyebrow.on-dark { color: #b9b3ff; }
.lead { color: var(--ink-secondary); }
.muted { color: var(--ink-mute); }

/* gradient-text accent used sparingly on big display heads */
.ink-soft { color: var(--ink-mute); }

/* ---- buttons (extend tokens) -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--font-sans); font-weight: 400; font-size: 15px;
  padding: 11px 20px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  text-decoration: none; line-height: 1;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-deep); }
.btn-primary:active { background: var(--primary-press); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); padding-left: 4px; padding-right: 4px; }
.btn-ghost:hover { color: var(--primary); }
.btn-on-dark { background: #fff; color: var(--brand-dark-900); }
.btn-on-dark:hover { background: #eceaff; }
.btn-on-dark-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.24); }
.btn-on-dark-ghost:hover { border-color: #fff; }
.btn-lg { font-size: 16px; padding: 14px 26px; }

/* arrow-link */
.arrow-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--primary); text-decoration: none; font-weight: 400; font-size: 15px;
  transition: gap .15s ease, color .15s ease;
}
.arrow-link svg { width: 15px; height: 15px; transition: transform .15s ease; }
.arrow-link:hover { color: var(--primary-deep); }
.arrow-link:hover svg { transform: translateX(3px); }
.arrow-link.on-dark { color: #b9b3ff; }
.arrow-link.on-dark:hover { color: #fff; }

/* ---- pill / tag ---------------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--canvas-soft); color: var(--ink-secondary);
  border: 1px solid var(--hairline);
  font-size: 12px; font-weight: 400; letter-spacing: .2px;
  padding: 5px 12px; border-radius: var(--radius-pill);
}
.tag.on-dark { background: rgba(255,255,255,.06); color: #c9d4e3; border-color: rgba(255,255,255,.12); }

/* ============================================================================
   NAVBAR
   ========================================================================== */
.site-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-nav.scrolled { border-bottom-color: var(--hairline); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 16px 32px;
}
.nav-left { display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .mark { width: 26px; height: 26px; flex: none; }
.brand .wordmark { font-size: 19px; font-weight: 400; letter-spacing: -.4px; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 15px; font-weight: 300; color: var(--ink-mute-2); text-decoration: none;
  transition: color .15s ease; position: relative; padding: 4px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--primary); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-signin { font-size: 15px; font-weight: 300; color: var(--ink); text-decoration: none; }
.nav-signin:hover { color: var(--primary); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 6px;
  color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* mobile menu */
.mobile-menu { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-signin { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    display: block; position: fixed; inset: 0 0 0 0; top: 0; z-index: 70;
    background: rgba(255,255,255,.98); backdrop-filter: blur(8px);
    padding: 24px 32px; opacity: 0; pointer-events: none; transition: opacity .2s ease;
  }
  .mobile-menu.open { opacity: 1; pointer-events: auto; }
  .mobile-menu .mm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
  .mobile-menu a { display: block; font-size: 28px; font-weight: 300; letter-spacing: -.6px; color: var(--ink); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
  .mobile-menu .mm-cta { margin-top: 32px; }
}

/* ============================================================================
   IMAGE SLOTS — styling for the <image-slot> placeholder shell
   ========================================================================== */
image-slot {
  --slot-bg: var(--canvas-soft);
  background: var(--slot-bg);
  border: 1px solid var(--hairline);
  display: block;
}

/* ============================================================================
   CARDS
   ========================================================================== */
.card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 32px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card-hover:hover { border-color: #d2d9e3; box-shadow: var(--shadow-2); transform: translateY(-3px); }
.icon-chip {
  width: 44px; height: 44px; border-radius: 11px; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 20px;
  background: var(--canvas-soft); border: 1px solid var(--hairline); color: var(--primary-deep);
}
.icon-chip svg { width: 21px; height: 21px; stroke-width: 1.6; }
.icon-chip.on-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #b9b3ff; }

/* divider */
.hr { height: 1px; background: var(--hairline); border: 0; }

/* ---- stat ---------------------------------------------------------------- */
.stat-num { font-size: 44px; font-weight: 300; letter-spacing: -1px; line-height: 1; color: var(--ink); font-feature-settings: var(--feat-ss01), var(--feat-tnum); }
.stat-label { font-size: 14px; color: var(--ink-mute); margin-top: 8px; }
.stat-num.on-dark { color: #fff; }
.stat-label.on-dark { color: #8c97c4; }

/* ============================================================================
   DARK SECTIONS (deep navy + mesh atmosphere)
   ========================================================================== */
.dark-section { position: relative; background: var(--brand-dark-900); color: #fff; overflow: hidden; }
.dark-section::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: rgba(16,15,44,0.70); /* contrast scrim: keeps light text AA over the bright mesh */
}
.dark-section .container, .dark-section .container-narrow { position: relative; z-index: 1; }
.dark-section h1, .dark-section h2, .dark-section h3 { color: #fff; }
.dark-section .lead { color: #b8c4d8; }
.dark-mesh {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 68% 50%;
  opacity: .34; filter: saturate(1.2); z-index: 0; pointer-events: none;
  mix-blend-mode: screen; transform: scale(1.15);
}
.dark-grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ============================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--brand-dark-900); color: #c9d4e3; position: relative; overflow: hidden; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 80px 32px 40px; position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .wordmark { color: #fff; font-size: 20px; font-weight: 400; letter-spacing: -.4px; }
.footer-blurb { color: #8c97c4; margin: 18px 0 24px; max-width: 280px; font-size: 15px; line-height: 1.55; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #6b7794; margin: 0 0 18px; font-weight: 400; }
.footer-col a { display: block; color: #c9d4e3; text-decoration: none; font-size: 15px; font-weight: 300; padding: 6px 0; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; flex-wrap: wrap; gap: 16px; }
.footer-bottom span { color: #6b7794; font-size: 13px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: #8c97c4; transition: color .15s ease; }
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-newsletter { display: flex; gap: 8px; margin-top: 4px; }
.footer-newsletter input {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff;
  border-radius: var(--radius-pill); padding: 9px 16px; font-size: 14px; font-family: var(--font-sans);
  outline: none; min-width: 0; flex: 1; transition: border-color .15s ease;
}
.footer-newsletter input::placeholder { color: #6b7794; }
.footer-newsletter input:focus { border-color: var(--primary-soft); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ============================================================================
   FORMS
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 400; color: var(--ink-secondary); letter-spacing: .1px; }
.field label .req { color: var(--ruby); }
.input, .textarea, .select {
  background: var(--canvas); color: var(--ink); font-family: var(--font-sans);
  font-weight: 300; font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--hairline-input); border-radius: var(--radius-sm);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease; width: 100%;
}
.textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(83,58,253,.12); }
.input.invalid, .textarea.invalid, .select.invalid { border-color: var(--ruby); box-shadow: 0 0 0 3px rgba(234,34,97,.1); }
.field-error { font-size: 12.5px; color: var(--ruby); min-height: 16px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748d' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer; }

/* choice chips (project type) */
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 9px 16px; border-radius: var(--radius-pill); border: 1px solid var(--hairline-input);
  font-size: 14px; color: var(--ink-secondary); background: var(--canvas);
  transition: all .15s ease; user-select: none;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { border-color: var(--ink-mute); }
.choice.checked { border-color: var(--primary); background: #f3f1ff; color: var(--primary-deep); }

/* ---- reveal-on-scroll ---------------------------------------------------
   Default state is VISIBLE — so no-JS, offscreen-capture, and above-fold
   content always render. JS "arms" (hides) only below-fold elements and
   animates them in on scroll; removing .armed always restores visibility. */
.reveal { opacity: 1; transform: none; }
.reveal.armed { opacity: 0; transform: translateY(18px); }
.reveal.armed.in { animation: revealIn .72s cubic-bezier(.16,1,.3,1) both; }
@keyframes revealIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal.armed { opacity: 1; transform: none; }
  .reveal.armed.in { animation: none; }
}

/* ---- responsive type helpers -------------------------------------------- */
@media (max-width: 760px) {
  .container, .container-narrow { padding: 0 22px; }
  .section { padding: 72px 0; }
  .display-xxl { font-size: 40px !important; letter-spacing: -1px !important; }
  .display-xl { font-size: 34px !important; letter-spacing: -.7px !important; }
  .display-lg { font-size: 27px !important; }
}

/* utility grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
