/* ============================================================
   818 Business Solutions — Our Solutions
   Page-specific styles. Loads after 818-home.css + 818-interior.css,
   which already provide: design tokens, .eyebrow, glass-cta, nav/footer,
   mnav, the eclipse cursor, the shared keyframes (navDrop / heroRise /
   ctaIn / marqueeMove), .marquee-track animation, the .svc-card and
   .why-row hover states, and every @media (max-width: 980px) override for
   .hero-main / .hero-shift / .hero-h1 / .h-* / .svc-card / .why-* /
   .grid-2 / .about-ghost / .footer-*.

   What lives here: the desktop base geometry for those shared classes
   (it was inline in the homepage markup, never in a stylesheet), plus
   everything unique to this page — marquee band, detail grid, the pinned
   Private Client panel and the Industries band.
   ============================================================ */

/* ---- Nav overlaid on the video hero (opt-in via $nav_overlay) ---- */
.top-nav--overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  animation: navDrop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ---- Shared gold gradient ring on the glass CTA ---- */
.glass-cta-ring {
  position: absolute; inset: 0;
  border-radius: 999px;
  padding: 1.4px;
  background: linear-gradient(
    rgba(198,168,119,0.95) 0%, rgba(198,168,119,0.4) 22%,
    rgba(198,168,119,0.1) 45%, rgba(198,168,119,0.1) 60%,
    rgba(198,168,119,0.4) 80%, rgba(198,168,119,0.95) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* ============================== HERO ============================== */
.s-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0b1320;
  padding: 84px 24px 0;
  box-sizing: border-box;
}
.s-hero .hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-out;
}
.s-hero-scrim {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11,19,32,0.42) 0%, rgba(11,19,32,0.18) 38%, rgba(11,19,32,0.62) 100%);
}
.s-hero-inner {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  max-width: 960px;
  text-align: center;
}
.s-hero-eyebrow {
  margin: 0 0 28px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #C4A671;
  animation: heroRise 0.8s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}
.s-hero-h1 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  background: linear-gradient(180deg, #ffffff 0%, #faf7f1 55%, rgba(247,243,236,0.72) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-wrap: balance;
  animation: heroRise 1s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}
.s-hero-lead {
  margin: 0 0 44px;
  max-width: 540px;
  font-size: 16px; line-height: 1.62;
  color: rgba(235,231,216,0.7);
  text-wrap: pretty;
  animation: heroRise 0.9s cubic-bezier(0.22,1,0.36,1) 0.35s both;
}
.s-hero-cta {
  min-height: 54px;
  display: flex; align-items: center; justify-content: center;
  animation: heroRise 0.9s cubic-bezier(0.22,1,0.36,1) 0.5s both;
}
.s-hero-cta .glass-cta {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center;
  padding: 15px 42px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  color: rgba(247,243,236,0.92);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: none; border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.12);
  text-decoration: none;
}
.s-hero-explore {
  margin-top: 36px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  color: rgba(247,243,236,0.66);
  text-decoration: none;
  transition: color 0.3s;
  animation: heroRise 0.9s cubic-bezier(0.22,1,0.36,1) 0.7s both;
}
.s-hero-explore:hover { color: var(--gold-400, #C6A877); }

/* ============================== MARQUEE ============================== */
.s-marquee {
  position: relative;
  overflow: hidden;
  background: #0E1929;
  border-top: 1px solid rgba(198,168,119,0.28);
  border-bottom: 1px solid rgba(198,168,119,0.28);
  padding: 22px 0;
}
.s-marquee-track { display: flex; width: max-content; }
.s-marquee-copy {
  display: flex; align-items: center;
  gap: 42px; padding-right: 42px;
  white-space: nowrap;
}
.s-marquee-item { display: flex; align-items: center; gap: 42px; }
.s-marquee-item span {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(235,231,216,0.5);
}

/* ================= SOLUTIONS — pinned horizontal track ================= */
/* Desktop base geometry. 818-home.js reads .h-wrap/.h-track/.h-bar; the
   980px overrides in 818-home.css unpin it into a swipeable row. */
.h-wrap { position: relative; height: 380vh; background: #05080F; }
.h-sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.h-head {
  padding: 0 6vw 48px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px;
  max-width: 1400px; width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.h-note {
  margin: 0;
  max-width: 340px;
  font-size: 15px; line-height: 1.6;
  color: rgba(235,231,216,0.5);
  text-wrap: pretty;
}
.h-track {
  display: flex; gap: 24px;
  padding: 0 6vw;
  width: max-content;
  will-change: transform;
}
.h-progress {
  margin: 48px 6vw 0;
  max-width: 1400px;
  width: calc(100% - 12vw);
  align-self: center;
}
.h-progress-rail { position: relative; height: 1px; background: rgba(235,231,216,0.1); }
.h-bar {
  position: absolute; left: 0; top: -0.5px;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, rgba(198,168,119,0.4), #C6A877);
}

/* ---- Solution cards ---- */
.svc-card {
  flex-shrink: 0;
  width: 380px; min-height: 420px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-sizing: border-box;
  padding: 36px 32px;
  background: #0E1929;
  border: 1px solid rgba(235,231,216,0.1);
  border-radius: 8px;
}
.svc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.svc-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border: 1px solid rgba(198,168,119,0.35);
  border-radius: 8px;
  color: #C6A877;
}
.svc-num { font-family: var(--font-display); font-size: 20px; color: rgba(235,231,216,0.28); }
.svc-title {
  margin: 0 0 14px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 27px; line-height: 1.2;
  color: #EBE7D8;
}
.svc-desc {
  margin: 0;
  font-size: 15px; line-height: 1.6;
  color: rgba(235,231,216,0.6);
  text-wrap: pretty;
}
.svc-items {
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid rgba(235,231,216,0.1);
  font-size: 13px; letter-spacing: 0.04em; line-height: 1.7;
  color: rgb(98,109,118);
}
.svc-card--cta {
  align-items: flex-start; justify-content: center;
  background: linear-gradient(160deg, #0E1929 0%, #05080F 100%);
  border-color: rgba(198,168,119,0.4);
}
.svc-cta-title {
  margin: 0 0 26px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 30px; line-height: 1.2;
  color: #EBE7D8;
  text-wrap: balance;
}
.svc-card--cta .glass-cta {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 30px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ivory-200);
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.12);
  text-decoration: none;
}

/* ============================ SHARED SECTION ============================ */
.s-section {
  position: relative;
  padding: 150px 6vw;
  background: #05080F;
  border-top: 1px solid rgba(235,231,216,0.08);
  overflow: hidden;
}
.s-inner { max-width: 1240px; margin: 0 auto; }
.s-inner--rel { position: relative; z-index: 2; }
.s-ghost {
  position: absolute; top: 30px; left: -1vw;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(140px, 20vw, 300px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(235,231,216,0.05);
  user-select: none; pointer-events: none;
  white-space: nowrap;
}
.s-h2 {
  margin: 0 0 16px;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.14;
  color: #EBE7D8;
  text-wrap: balance;
}
.s-h2--narrow { max-width: 640px; }
.s-h2--sm { font-size: clamp(30px, 3vw, 42px); line-height: 1.15; }
.s-lead {
  margin: 0 0 56px;
  max-width: 520px;
  font-size: 16px; line-height: 1.62;
  color: rgba(235,231,216,0.6);
  text-wrap: pretty;
}
.s-lead--tight { margin-bottom: 0; max-width: 420px; }

/* ---- diamond bullet ---- */
.diamond {
  width: 5px; height: 5px;
  border: 1px solid rgba(198,168,119,0.8);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.diamond--lg { width: 6px; height: 6px; }

/* ============================== IN DETAIL ============================== */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.detail-card {
  position: relative;
  background: #0E1929;
  border: 1px solid rgba(235,231,216,0.1);
  border-top: 2px solid #C6A877;
  border-radius: 8px;
  padding: 40px 36px;
  box-sizing: border-box;
  transition: border-color 0.45s cubic-bezier(0.22,1,0.36,1),
              transform 0.45s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.45s cubic-bezier(0.22,1,0.36,1);
}
.detail-card:hover {
  border-color: rgba(198,168,119,0.6);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 22px 56px rgba(0,0,0,0.5), 0 0 46px rgba(198,168,119,0.24);
}
.detail-num {
  position: absolute; top: 22px; right: 30px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 52px; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(198,168,119,0.25);
  user-select: none;
}
.detail-title {
  margin: 0 0 8px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 26px; line-height: 1.25;
  color: #EBE7D8;
  max-width: 380px;
}
.detail-desc {
  margin: 0 0 24px;
  font-size: 15px; line-height: 1.6;
  color: rgba(235,231,216,0.6);
  max-width: 440px;
  text-wrap: pretty;
}
.detail-list { display: flex; flex-direction: column; border-top: 1px solid rgba(235,231,216,0.1); }
.detail-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(235,231,216,0.07);
  font-size: 14px; line-height: 1.5;
  color: rgba(235,231,216,0.66);
}

/* ============================ LAUNCH FRAMEWORK ============================ */
/* 818-home.css scopes the blob reveal to the homepage's #why — this page's
   section is #framework, so it needs its own hover trigger. */
#framework:hover .why-bg-layer { opacity: 1; }

#framework .why-bg-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#framework .why-blob {
  position: absolute; left: 0; top: 0;
  width: 520px; height: 520px;
  will-change: transform;
  background-repeat: no-repeat;
}
/* .grid-2 gets its display:grid from an inline style on the homepage, and in
   818-home.css it exists only inside the 980px media query — so this has to
   declare the grid itself, or the two columns collapse to blocks and the
   sticky left column lands on top of the first row. */
.s-framework-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
.why-left { position: sticky; top: 120px; }
.s-framework-rows { display: flex; flex-direction: column; }
.why-row {
  display: grid; grid-template-columns: 96px 1fr;
  gap: 28px; align-items: baseline;
  padding: 34px 24px 34px 28px;
  border-top: 1px solid rgba(235,231,216,0.1);
  border-radius: 6px;
}
.why-num {
  font-family: var(--font-display);
  font-size: 52px; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(198,168,119,0.55);
}
.why-title {
  margin: 0 0 8px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 24px; line-height: 1.25;
  color: #EBE7D8;
}
.why-desc {
  margin: 0;
  font-size: 15px; line-height: 1.6;
  color: rgba(235,231,216,0.55);
  text-wrap: pretty;
}

/* ========================= PRIVATE CLIENT & PRO ========================= */
/* Pinned: the panel starts flat navy, the photo fades in while pinned.
   818-solutions.js drives .pv-img opacity from scroll progress. */
.pv-wrap {
  position: relative;
  height: 220vh;
  background: #0E1929;
  border-top: 1px solid rgba(235,231,216,0.08);
}
.pv-sticky {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex; align-items: center;
  padding: 0 6vw;
  box-sizing: border-box;
}
.pv-img {
  position: absolute; inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: opacity;
}
.pv-scrim {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(14,25,41,0.94) 0%, rgba(14,25,41,0.7) 46%, rgba(14,25,41,0.28) 100%);
}
.pv-inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; width: 100%; }
.pv-col { max-width: 640px; }
.pv-mark { display: block; width: 276px; height: 144px; object-fit: contain; margin: 0 0 8px -6px; opacity: 0.9; }
.pv-body {
  margin: 0 0 28px;
  max-width: 480px;
  font-size: 16px; line-height: 1.62;
  color: rgba(235,231,216,0.72);
  text-wrap: pretty;
}
.pv-note {
  margin: 0 0 36px;
  max-width: 480px;
  font-size: 15px; line-height: 1.6;
  color: rgba(235,231,216,0.5);
}
.pv-items { display: flex; flex-wrap: wrap; border-top: 1px solid rgba(235,231,216,0.14); }
.pv-item {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 26px 0 0;
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  color: rgba(235,231,216,0.66);
}

/* ============================== INDUSTRIES ============================== */
.s-industries {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.s-industries-scrim {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5,8,15,0.82) 0%, rgba(5,8,15,0.62) 45%, rgba(5,8,15,0.88) 100%);
}
.s-industries-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 40px; margin-bottom: 56px;
  flex-wrap: wrap;
}
.ind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  border-top: 1px solid rgba(235,231,216,0.1);
}
.ind-item {
  display: flex; align-items: center; gap: 14px;
  padding: 26px 28px 26px 4px;
  border-bottom: 1px solid rgba(235,231,216,0.07);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.ind-item:hover { transform: translateX(6px); }
.ind-label {
  font-family: var(--font-display);
  font-size: 21px; line-height: 1.25;
  color: rgba(235,231,216,0.78);
}

/* ============================== MOBILE ============================== */
@media (max-width: 980px) {
  .s-hero { height: 100svh; min-height: 620px; padding: 96px 24px 0; }

  #detail,
  #framework,
  #industries { padding: 96px 24px !important; }

  .detail-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .detail-card { padding: 34px 28px !important; }
  .detail-num  { font-size: 44px !important; top: 18px !important; right: 22px !important; }

  .s-framework-grid { gap: 48px !important; }

  /* Unpin the Private Client panel: photo always on, normal flow. */
  #private     { padding: 0 !important; }
  .pv-wrap     { height: auto !important; }
  .pv-sticky   { position: relative !important; height: auto !important; padding: 110px 24px !important; }
  .pv-img      { opacity: 1 !important; }
  .pv-inner    { padding: 0 !important; max-width: 100% !important; }
  .pv-mark     { width: 200px !important; height: 104px !important; }

  .s-marquee-item span { font-size: 12px; letter-spacing: 0.18em; }
  .ind-grid { grid-template-columns: 1fr !important; }
  .ind-label { font-size: 19px !important; }
}
