/* =====================================================================
   Hartnell Group — Home landing page
   Design-System faithful: square corners, hairlines, no drop shadows.
   ===================================================================== */

/* ---------- Sticky header ---------- */
.lp-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--border); }

/* ---------- Video hero ---------- */
.hero-video {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  min-height: 86vh; background: #00121d;
}
.hero-video-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-video-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(0,18,29,0.18) 0%, rgba(0,18,29,0) 28%,
    rgba(0,18,29,0.45) 70%, rgba(0,18,29,0.80) 100%);
}
.hero-video-content { position: relative; z-index: 2; padding: 96px 20px 60px; width: 100%; }
.hero-video .eyebrow { color: rgba(255,255,255,0.86); }
.hero-video-title {
  font-family: var(--display); font-weight: 400; color: #fff;
  font-size: 40px; line-height: 1.03; letter-spacing: -0.5px; margin: 14px 0 20px; max-width: 16ch;
}
.hero-video-title .vhline { display: block; }

/* ---------- Statement with side image ---------- */
.home-statement { padding: 48px 20px; }
.home-statement .statement { padding: 0; }
.home-statement-media { margin-top: 32px; }
.home-statement-media .lp-img,
.home-statement-media img {
  width: 100%; height: 100%; min-height: 300px;
  background: var(--surface); border: 1px solid var(--border);
}
.home-statement-media img { object-fit: cover; display: block; }
@media (min-width: 768px) {
  .home-statement {
    display: grid; grid-template-columns: 1.8fr 1fr; gap: 48px;
    align-items: center; padding: 80px 20px;
  }
  .home-statement-media { margin-top: 0; }
  .home-statement-media .lp-img,
  .home-statement-media img { min-height: 300px; max-height: 340px; }
}

/* ---------- Our Role: stack so body aligns under the title ---------- */
@media (min-width: 768px) {
  .block.block-stack { display: block; }
  .block.block-stack .block-head { margin-bottom: 24px; }
  .block.block-stack .block-body { max-width: 760px; }
}

/* ---------- Closing CTA: photographic band ---------- */.cta-photo {
  position: relative;
  background: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(0,18,29,0.92) 0%, rgba(0,18,29,0.74) 45%, rgba(0,18,29,0.42) 100%),
    linear-gradient(180deg, rgba(0,18,29,0.45) 0%, rgba(0,18,29,0.72) 100%),
    url('cta-london.png');
  background-size: cover;
  background-position: center 40%;
  border-top: 1px solid var(--border);
}
.cta-photo .cta-band { position: relative; z-index: 1; }
.cta-photo .cta-band h2 { color: #fff; }
.cta-photo .cta-band p { color: rgba(255,255,255,0.88); }
@media (min-width: 768px) {
  .cta-photo { background-attachment: fixed; }
}
.hero-video .lede { color: rgba(255,255,255,0.92); max-width: 560px; margin: 0 0 28px; }
.hero-video .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-glasslight {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.btn-glasslight:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (min-width: 760px) {
  .hero-video-content { padding: 120px 20px 72px; }
  .hero-video-title { font-size: 56px; }
  .hero-video .lede { font-size: 19px; }
}
@media (min-width: 1024px) {
  .hero-video-title { font-size: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video-bg { /* video still shows first frame */ }
}

/* ---------- old top bar (unused) ---------- */
.lp-topbar { border-bottom: 1px solid var(--border); }
.lp-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 42px; gap: 16px;
}
.lp-contactstrip {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 13px; color: var(--muted);
}
.lp-contactstrip a { color: var(--muted); text-decoration: none; }
.lp-contactstrip a:hover { color: var(--ink); text-decoration: none; }
.lp-dot { color: var(--border); }
.lp-utility { display: flex; gap: 8px; flex: none; }
.lp-util-btn {
  font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: 0.5px;
  text-transform: uppercase; padding: 8px 14px; border: 1px solid var(--ink);
  color: var(--ink); text-decoration: none; transition: background-color .25s ease, color .25s ease;
}
.lp-util-btn:hover { background: var(--ink); color: #fff; text-decoration: none; }
.lp-util-solid { background: var(--ink); color: #fff; }
.lp-util-solid:hover { background: var(--primary); }

.lp-mainbar-inner {
  display: flex; align-items: center; justify-content: space-between; min-height: 66px;
}
.lp-logo {
  font-family: var(--display); font-size: 24px; color: var(--primary);
  letter-spacing: -0.4px; text-decoration: none;
}
.lp-logo:hover { text-decoration: none; }
.lp-nav { display: none; gap: 30px; }
.lp-nav a {
  font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--ink); text-decoration: none; position: relative;
}
.lp-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--accent); transition: width .3s ease;
}
.lp-nav a:hover { text-decoration: none; }
.lp-nav a:hover::after { width: 100%; }
.lp-nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: none; border: none; cursor: pointer;
}
.lp-nav-toggle span { display: block; height: 2px; background: var(--ink); }

/* ---------- Hero carousel ---------- */
.lp-hero { position: relative; background: var(--bg); border-bottom: 1px solid var(--border); }
.lp-slides { display: grid; }
.lp-slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .7s ease, visibility .7s ease;
}
.lp-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.lp-slide-inner {
  display: grid; gap: 32px; align-items: center; padding: 48px 20px 36px;
}
.lp-slide-text .eyebrow { color: var(--muted); }
.lp-slide-text h1 {
  font-family: var(--display); font-weight: 400; color: var(--primary);
  font-size: 36px; line-height: 1.04; letter-spacing: -0.5px; margin: 12px 0 18px;
}
.lp-slide-line {
  font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--ink);
  max-width: 520px; margin: 0 0 26px;
}
.lp-slide-text > *, .lp-slide-media {
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.lp-slide.is-active .lp-slide-text > *, .lp-slide.is-active .lp-slide-media {
  opacity: 1; transform: none;
}
.lp-slide.is-active .lp-slide-text > *:nth-child(1) { transition-delay: .05s; }
.lp-slide.is-active .lp-slide-text > *:nth-child(2) { transition-delay: .15s; }
.lp-slide.is-active .lp-slide-text > *:nth-child(3) { transition-delay: .25s; }
.lp-slide.is-active .lp-slide-text > *:nth-child(4) { transition-delay: .35s; }
.lp-slide.is-active .lp-slide-media { transition-delay: .1s; }

.lp-img {
  background: var(--cream); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; width: 100%; height: 280px;
}
.lp-img span {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--muted);
}
.lp-img-wide { height: 320px; }

.lp-hero-controls { display: flex; align-items: center; gap: 16px; padding: 0 20px 28px; }
.lp-arrow {
  width: 44px; height: 44px; border: 1px solid var(--ink); background: transparent;
  color: var(--ink); cursor: pointer; font-size: 16px; line-height: 1;
  transition: background-color .25s ease, color .25s ease;
}
.lp-arrow:hover { background: var(--ink); color: #fff; }
.lp-dots { display: flex; gap: 8px; }
.lp-dot-btn { width: 30px; height: 3px; background: var(--border); border: none; padding: 0; cursor: pointer; transition: background-color .25s ease; }
.lp-dot-btn.is-active { background: var(--accent); }

/* ---------- Section heads ---------- */
.lp-section-head { max-width: 720px; margin-bottom: 36px; }
.lp-section-head h2 { font-size: 30px; line-height: 1.1; margin: 4px 0 0; }
.lp-section-sub {
  font-family: var(--serif); font-size: 18px; line-height: 1.55;
  color: var(--muted); margin: 14px 0 0;
}

/* ---------- Stats bar ---------- */
.lp-stats-inner {
  display: grid; grid-template-columns: 1fr;
  border: 1px solid var(--border); background: var(--border); gap: 1px;
}
.lp-stat { background: var(--cream); padding: 30px 24px; text-align: center; }
.lp-stat-num {
  display: block; font-family: var(--display); font-size: 48px; color: var(--primary); line-height: 1;
}
.lp-stat-label {
  display: block; margin-top: 10px; font-family: var(--sans); font-size: 13px;
  letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted);
}

/* ---------- Stakeholders ---------- */
.lp-stake {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  padding: 28px 0; border-top: 1px solid var(--border);
}
.lp-stakeholder-list .lp-stake:last-child { border-bottom: 1px solid var(--border); }
.lp-stake-num { font-family: var(--display); font-size: 22px; color: var(--accent); line-height: 1.3; }
.lp-stake-body h3 { font-family: var(--display); font-size: 25px; color: var(--primary); margin: 0 0 10px; }
.lp-stake-body p { max-width: 640px; margin: 0 0 14px; }
.lp-learn {
  font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--accent); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; transition: gap .25s ease;
}
.lp-learn:hover { text-decoration: none; gap: 12px; }

/* ---------- Solutions (alternating) ---------- */
.lp-solution {
  display: grid; gap: 24px; align-items: center; padding: 36px 0;
  border-top: 1px solid var(--border);
}
.lp-solution:first-child { border-top: none; }
.lp-solution-media .lp-img { height: 260px; }
.lp-kicker {
  font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--accent); margin: 0 0 10px;
}
.lp-solution-text h3 { font-family: var(--display); font-size: 28px; color: var(--primary); margin: 0 0 12px; }
.lp-solution-text p { max-width: 520px; margin: 0 0 16px; }

/* ---------- Principles ---------- */
.lp-principle-grid { display: grid; gap: 28px; }
.lp-principle { padding-top: 24px; border-top: 2px solid var(--ink); }
.lp-principle h3 { font-family: var(--display); font-size: 40px; color: var(--primary); margin: 0; }
.lp-principle p { font-family: var(--serif); font-size: 16px; color: var(--ink); margin: 14px 0 0; max-width: 340px; }

/* ---------- Platform ---------- */
.lp-platform-head { max-width: 720px; margin-bottom: 32px; }
.lp-platform-head h2 { font-size: 30px; line-height: 1.1; margin: 4px 0 0; }
.lp-screenshot .lp-img { height: 300px; }
.lp-timing {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border); margin: 32px 0;
}
.lp-time { background: var(--cream); padding: 28px 24px; text-align: center; }
.lp-time-num { display: block; font-family: var(--display); font-size: 38px; color: var(--primary); line-height: 1; }
.lp-time-label {
  display: block; margin-top: 10px; font-family: var(--sans); font-size: 13px;
  letter-spacing: 0.4px; text-transform: uppercase; color: var(--muted);
}
.lp-platform-cta { margin-top: 4px; }

/* ---------- Contact ---------- */
.lp-contact-head { max-width: 720px; margin-bottom: 32px; }
.lp-contact-head h2 { font-size: 30px; line-height: 1.1; margin: 4px 0 0; }
.lp-form { max-width: 760px; }
.lp-consent {
  display: flex; align-items: flex-start; gap: 10px; margin: 8px 0 22px;
  font-family: var(--sans); font-size: 14px; color: var(--muted);
}
.lp-consent input {
  width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid var(--ink);
  border-radius: 0; accent-color: var(--ink); flex: none;
}

/* ---------- Navy footer ---------- */
.lp-footer { background: var(--ink); color: #fff; }
.lp-footer-top { display: grid; gap: 32px; padding: 56px 20px 40px; }
.lp-footer-logo { font-family: var(--display); font-size: 26px; color: #fff; }
.lp-tagline { font-family: var(--sans); font-size: 14px; color: rgba(255,255,255,0.72); max-width: 300px; margin: 14px 0 0; }
.lp-social { display: flex; gap: 10px; margin-top: 18px; }
.lp-social a {
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.3); border-radius: 9999px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: background-color .25s ease, color .25s ease;
}
.lp-social a:hover { background: #fff; color: var(--ink); text-decoration: none; }
.lp-footer-col h4 {
  font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0.6px;
  text-transform: uppercase; color: #fff; margin: 0 0 16px;
}
.lp-footer-col a, .lp-footer-addr {
  display: block; font-family: var(--sans); font-size: 14px; color: rgba(255,255,255,0.72);
  text-decoration: none; margin-bottom: 11px;
}
.lp-footer-col a:hover { color: #fff; text-decoration: none; }
.lp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); padding: 18px 20px;
  font-family: var(--sans); font-size: 12px; color: rgba(255,255,255,0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .lp-contactstrip { font-size: 12px; gap: 7px; }
  .lp-util-btn { padding: 7px 10px; }
}

@media (min-width: 760px) {
  .lp-nav { display: flex; }
  .lp-nav-toggle { display: none; }
  .lp-slide-inner { grid-template-columns: 1.05fr 0.95fr; padding: 72px 20px 52px; min-height: 480px; }
  .lp-slide-text h1 { font-size: 52px; }
  .lp-img { height: 380px; }
  .lp-stats-inner { grid-template-columns: repeat(3, 1fr); }
  .lp-solution { grid-template-columns: 1fr 1fr; gap: 44px; padding: 52px 0; }
  .lp-solution:nth-child(even) .lp-solution-media { order: 2; }
  .lp-solution-media .lp-img { height: 320px; }
  .lp-principle-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .lp-timing { grid-template-columns: repeat(3, 1fr); }
  .lp-screenshot .lp-img { height: 440px; }
  .lp-footer-top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .lp-section-head h2, .lp-platform-head h2, .lp-contact-head h2 { font-size: 40px; }
}

@media (min-width: 1024px) {
  .lp-slide-text h1 { font-size: 60px; }
  .lp-stake { grid-template-columns: 0.5fr 4fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-slide, .lp-slide-text > *, .lp-slide-media { transition: none; }
}

/* ---------- Stakeholders: pinned scroll deck ---------- */
.lp-stake-pin { position: relative; height: 320vh; }
.lp-stake-sticky {
  position: sticky; top: 0; height: 100vh; min-height: 720px;
  display: flex; align-items: center; overflow: hidden;
  background: var(--bg);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.lp-stake-stage { display: grid; grid-template-columns: 1fr; gap: 36px; width: 100%; align-items: center; }
.lp-stake-title { font-family: var(--display); font-weight: 400; color: var(--primary); font-size: 32px; line-height: 1.08; margin: 0; }
.lp-stake-meta { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.lp-stake-count { font-family: var(--display); font-size: 20px; color: var(--muted); white-space: nowrap; }
.lp-stake-count b { color: var(--primary); font-weight: 400; font-size: 30px; }
.lp-stake-bars { display: flex; gap: 8px; flex: 1; max-width: 240px; }
.lp-stake-bars span { height: 3px; flex: 1; background: var(--border); transition: background-color .4s ease; }
.lp-stake-bars span.is-active { background: var(--accent); }

.lp-stake-deck { position: relative; height: 600px; }
.lp-stake-card {
  position: absolute; left: 0; right: 0; top: 0; min-height: 380px;
  background: var(--surface); border: 1px solid var(--border); padding: 30px;
  transform-origin: top center; will-change: transform, opacity;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), opacity .45s ease;
  display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center;
}
.lp-stake-media .lp-img { width: 100%; height: 100%; min-height: 180px; background: var(--cream); border: 1px solid var(--border); }
.lp-stake-media img { width: 100%; height: 100%; object-fit: cover; display: block; border: 1px solid var(--border); min-height: 180px; }
.lp-stake-card .lp-stake-num {
  display: block; font-family: var(--display); font-size: 22px;
  color: var(--accent); margin-bottom: 10px;
}
.lp-stake-card h3 { font-family: var(--display); font-size: 26px; color: var(--primary); margin: 0 0 12px; }
.lp-stake-card p { max-width: 540px; margin: 0 0 12px; font-size: 15px; line-height: 1.55; }
.lp-stake-card p:last-child { margin-bottom: 0; }
/* keep Services sub-lede / subhead styles inside deck cards */
.lp-stake-card .sub-lede {
  font-family: var(--display); color: var(--primary); font-weight: 400;
  font-size: 21px; line-height: 1.2; margin: 0 0 12px; max-width: none;
}
.lp-stake-card .subhead {
  font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: 0.3px;
  text-transform: none; color: var(--ink); margin: 20px 0 10px; max-width: none;
}
/* Services deck: 6 cards — longer scroll, taller deck, scrollable card body if needed */
.lp-stake-pin.lp-svc { height: 560vh; }

@media (min-width: 768px) {
  .lp-stake-stage { grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
  .lp-stake-title { font-size: 38px; }
  .lp-stake-deck { height: 560px; }
  .lp-stake-card { padding: 30px; min-height: 360px; grid-template-columns: 1.25fr 1fr; gap: 32px; }
  .lp-stake-card h3 { font-size: 28px; }
  .lp-stake-card p { font-size: 16px; }
  .lp-stake-media .lp-img, .lp-stake-media img { min-height: 300px; }
}

@media (min-width: 768px) {
  .lp-svc .lp-stake-stage { display: block; }
  .lp-svc .lp-stake-deck { height: 740px; }
  .lp-svc .lp-stake-card { display: flex; flex-direction: column; align-items: stretch; height: 740px; min-height: 0; padding: 0; overflow: hidden; }
  .lp-svc .lp-stake-media { order: -1; margin: 0 0 26px; }
  .lp-svc .lp-stake-media .lp-img,
  .lp-svc .lp-stake-media img { height: 300px; min-height: 300px; width: 100%; border: none; border-bottom: 1px solid var(--border); object-position: center 42%; }
  .lp-svc .lp-stake-text { padding: 0 38px 38px; column-count: 2; column-gap: 48px; }
  .lp-svc .lp-stake-text > .lp-stake-num,
  .lp-svc .lp-stake-text > h3,
  .lp-svc .lp-stake-text > .sub-lede { column-span: all; }
  .lp-svc .lp-stake-text > p,
  .lp-svc .lp-stake-text > .subhead { break-inside: avoid; }
  .lp-svc .lp-stake-card p { font-size: 15px; line-height: 1.5; margin: 0 0 10px; }
  .lp-svc .lp-stake-card .sub-lede { margin-bottom: 14px; }
}

@media (max-width: 767px) {
  .lp-stake-pin { height: auto; }
  .lp-stake-sticky { position: static; height: auto; min-height: 0; padding: 48px 0; }
  .lp-stake-deck { position: static; height: auto; }
  .lp-stake-card {
    position: relative; transform: none !important; opacity: 1 !important;
    margin-bottom: 16px; min-height: 0;
  }
  .lp-stake-card:last-child { margin-bottom: 0; }
}
