/* ==========================================================================
   NEXPATH SOFTWARE — editorial content components and home page v2
   Desktop-first. All visuals are CSS/SVG; no external assets.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header refinements for expanded navigation
   -------------------------------------------------------------------------- */
.header-inner {
  gap: clamp(1.2rem, 1.8vw, 2rem);
}
.main-nav {
  gap: clamp(0.9rem, 1.45vw, 1.55rem);
}
.footer-grid {
  grid-template-columns: 1.5fr 1.1fr 0.85fr 0.85fr 0.75fr;
}
@media (max-width: 1200px) {
  .main-nav {
    gap: 0.85rem;
  }
  .nav-link,
  .nav-toggle {
    font-size: 0.8rem;
  }
  .nav-cta {
    padding-inline: 0.8rem;
    font-size: 0.74rem;
  }
  .brand {
    width: 9rem;
  }
}
@media (max-width: 1120px) {
  .main-nav {
    gap: 0.7rem;
  }
  .nav-link,
  .nav-toggle {
    font-size: 0.77rem;
  }
  .nav-cta {
    min-height: 2.35rem;
    font-size: 0.7rem;
  }
}

/* --------------------------------------------------------------------------
   Shared editorial blocks
   -------------------------------------------------------------------------- */
.page-hero .hero-eyebrow {
  margin-bottom: 1.4rem;
}
.page-hero .hero-actions {
  margin-top: 2rem;
}
.page-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}
.page-meta-row strong {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.84);
}

.content-section {
  padding: clamp(4.5rem, 7vw, 7rem) 0;
}
.content-section--white {
  background: var(--white);
}
.content-section--ice {
  background: var(--ice);
}
.content-section--navy {
  background: var(--navy-950);
  color: var(--white);
}
.content-section--navy p,
.content-section--navy li {
  color: rgba(255, 255, 255, 0.64);
}
.content-section--navy .prose h2,
.content-section--navy .prose h3,
.content-section--navy .section-head h2 {
  color: var(--white);
}
.content-section--navy .kicker {
  color: rgba(255, 255, 255, 0.55);
}
.content-section--navy .kicker span {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.65);
}
.content-section--navy .kicker::after {
  background: rgba(255, 255, 255, 0.18);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: start;
}
.content-grid--reverse {
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
}
.content-grid--equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sticky-title {
  position: sticky;
  top: 8.2rem;
}
.sticky-title h2 {
  max-width: 24rem;
  font-size: clamp(2.35rem, 3.1vw, 3.1rem);
  line-height: 1.02;
}
.sticky-title .section-label {
  margin-bottom: 1.2rem;
}
.sticky-title p {
  max-width: 23rem;
  margin-top: 1.2rem;
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.65;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.section-label::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--cyan);
}

.prose {
  max-width: 48rem;
}
.prose > *:first-child {
  margin-top: 0;
}
.prose h2 {
  margin: 2.8rem 0 1.1rem;
  font-size: clamp(1.9rem, 2.5vw, 2.5rem);
  line-height: 1.08;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin: 2rem 0 0.7rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}
.prose p {
  margin-bottom: 1.15rem;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--slate);
}
.prose strong {
  font-weight: 500;
  color: var(--ink);
}
.prose a {
  color: var(--cyan-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose ul,
.prose ol {
  margin: 0 0 1.4rem;
}
.prose li {
  position: relative;
  margin: 0.55rem 0;
  padding-left: 1.35rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--slate);
}
.prose ul li::before {
  content: '';
  position: absolute;
  top: 0.7rem;
  left: 0;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--cyan);
  border-radius: 50%;
}
.prose ol {
  counter-reset: li;
}
.prose ol li {
  counter-increment: li;
}
.prose ol li::before {
  content: counter(li, decimal-leading-zero);
  position: absolute;
  top: 0.25rem;
  left: 0;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--cyan-strong);
}
.prose blockquote {
  margin: 2.2rem 0;
  padding: 1.5rem 0 1.5rem 1.7rem;
  border-left: 2px solid var(--cyan);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.prose blockquote p {
  margin: 0;
  font: inherit;
  color: inherit;
}
.prose table {
  width: 100%;
  margin: 1.6rem 0 2rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.prose th,
.prose td {
  padding: 0.85rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--ice);
}
.prose td {
  color: var(--slate);
}

.pull-quote {
  margin: 2.6rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.pull-quote span {
  color: var(--cyan-strong);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Cards, lists, stats
   -------------------------------------------------------------------------- */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.panel-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.panel {
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel--dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}
.panel .panel-num {
  display: block;
  margin-bottom: 1.4rem;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--cyan-strong);
}
.panel h3 {
  margin-bottom: 0.55rem;
  font-size: 1.25rem;
  line-height: 1.15;
}
.panel p {
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--slate);
}
.panel--dark p {
  color: rgba(255, 255, 255, 0.62);
}

.check-list {
  display: grid;
  gap: 0.7rem;
}
.check-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--slate);
}
.check-list li::before {
  content: '';
  position: absolute;
  top: 0.52rem;
  left: 0;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 1.5px solid var(--cyan-strong);
  border-bottom: 1.5px solid var(--cyan-strong);
  transform: rotate(-45deg);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.metric {
  padding: 1.6rem 1.4rem;
  background: var(--white);
}
.metric strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 3.4vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--navy-950);
}
.metric span {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.7rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--slate);
}
.metric-grid--dark {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.12);
}
.metric-grid--dark .metric {
  background: var(--navy-950);
}
.metric-grid--dark .metric strong {
  color: var(--white);
}
.metric-grid--dark .metric span {
  color: rgba(255, 255, 255, 0.55);
}

.step-list {
  counter-reset: step;
  border-top: 1px solid var(--line);
}
.step-item {
  counter-increment: step;
  position: relative;
  padding: 1.65rem 0 1.65rem 5.2rem;
  border-bottom: 1px solid var(--line);
}
.step-item::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1.55rem;
  left: 0;
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--cyan-strong);
}
.step-item h3 {
  margin-bottom: 0.4rem;
  font-size: 1.28rem;
}
.step-item p {
  max-width: 42rem;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--slate);
}

.faq-list {
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: '+';
  font-family: var(--sans);
  font-size: 1.1rem;
  color: var(--cyan-strong);
  transition: transform 0.3s var(--ease);
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list .faq-a {
  padding: 0 0 1.4rem;
  max-width: 46rem;
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--slate);
}

.split-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
}
.split-panel > div {
  padding: clamp(1.8rem, 3vw, 3rem);
}
.split-panel > div + div {
  background: var(--ice);
  border-left: 1px solid var(--line);
}
.split-panel h3 {
  margin-bottom: 0.8rem;
  font-size: 1.55rem;
}
.split-panel p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   Media placeholders
   -------------------------------------------------------------------------- */
.media-frame {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}
.media-canvas {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--m1) 0%, var(--m2) 62%, var(--m1) 100%);
}
.media-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.28) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 80px);
  pointer-events: none;
}
.media-canvas svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* Real photography injected from data-image — replaces the drawn placeholder. */
.media-canvas.has-photo svg {
  display: none;
}
.media-canvas .media-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame--16x10 .media-canvas {
  aspect-ratio: 16 / 10;
}
.media-frame--21x9 .media-canvas {
  aspect-ratio: 21 / 9;
}
.media-frame--4x3 .media-canvas {
  aspect-ratio: 4 / 3;
}
.media-frame--3x2 .media-canvas {
  aspect-ratio: 3 / 2;
}
.media-frame figcaption {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--slate);
}
.media-frame figcaption::before {
  content: 'Visual';
  flex: none;
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-strong);
}
.media-pair {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: start;
}
.media-pair .media-frame:last-child {
  margin-top: 3.2rem;
}

/* --------------------------------------------------------------------------
   Project cards
   -------------------------------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 50px -38px rgba(6, 21, 40, 0.5);
}
.project-card .media-frame {
  border: 0;
}
.project-card .media-frame figcaption {
  display: none;
}
.project-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}
.project-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  font-size: 0.57rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.project-card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.55rem;
  line-height: 1.08;
}
.project-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--slate);
}
.project-card .project-result {
  margin-top: auto;
  padding-top: 1.2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--slate-light);
}
.project-card .project-result strong {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--cyan-strong);
}

/* --------------------------------------------------------------------------
   Insight cards
   -------------------------------------------------------------------------- */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.insight-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.35s var(--ease), transform 0.45s var(--ease);
}
.insight-card .media-frame {
  border: 0;
}
.insight-card .media-frame figcaption {
  display: none;
}
.insight-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.6rem;
}
.insight-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.insight-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.insight-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.5rem;
  line-height: 1.1;
}
.insight-card p {
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--slate);
}
.insight-card .insight-link {
  margin-top: auto;
  padding-top: 1.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-strong);
}

/* --------------------------------------------------------------------------
   Article pages
   -------------------------------------------------------------------------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.article-body {
  max-width: 46rem;
}
.article-body > p:first-of-type {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--ink);
}
.article-aside {
  position: sticky;
  top: 8rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  background: var(--white);
}
.article-aside h3 {
  margin-bottom: 0.8rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.article-aside a {
  display: block;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
  line-height: 1.4;
  color: var(--slate);
}
.article-aside a:hover {
  color: var(--cyan-strong);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
  margin-bottom: 2.2rem;
  font-size: 0.6rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--slate-light);
}

/* --------------------------------------------------------------------------
   Quote page
   -------------------------------------------------------------------------- */
.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.quote-form {
  padding: clamp(1.8rem, 3vw, 2.6rem);
  background: var(--white);
  border: 1px solid var(--line);
}
.quote-form h2 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
}
.quote-form > p {
  margin-bottom: 1.7rem;
  font-size: 0.88rem;
  color: var(--slate);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}
.form-grid .field--full {
  grid-column: 1 / -1;
}
.quote-form textarea {
  min-height: 9rem;
}
.quote-form .field-check {
  margin-top: 0.4rem;
}
.quote-steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.quote-step {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.quote-step span {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--cyan-strong);
}
.quote-step h3 {
  margin-bottom: 0.25rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
}
.quote-step p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--slate);
}
.price-note {
  padding: 1.3rem 1.5rem;
  background: var(--ice);
  border-left: 2px solid var(--cyan);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   Home page v2
   -------------------------------------------------------------------------- */
.home-v2 {
  background: var(--paper);
}
.home-hero-v2 {
  position: relative;
  overflow: hidden;
  min-height: clamp(40rem, calc(100vh - 7.4rem), 50rem);
  display: flex;
  align-items: stretch;
  background: var(--navy-950);
  color: var(--white);
  isolation: isolate;
}
.home-hero-v2 .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.home-hero-v2 .page-photo {
  opacity: 0.94;
}
.home-hero-v2 .hero-grid {
  opacity: 0.5;
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
}
.hero-watermark {
  position: absolute;
  right: -0.06em;
  bottom: -0.22em;
  z-index: 0;
  font-family: var(--serif);
  font-size: clamp(22rem, 38vw, 42rem);
  line-height: 0.7;
  letter-spacing: -0.1em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.065);
  pointer-events: none;
  user-select: none;
}
.hero-v2-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-top: clamp(3.5rem, 6vw, 6rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}
.hero-v2-copy {
  position: relative;
  z-index: 3;
}
.hero-v2 .hero-eyebrow {
  margin-bottom: 1.6rem;
}
.hero-title-v2 {
  max-width: 48rem;
  font-size: clamp(3.8rem, 4.8vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: #f8fbfd;
}
.hero-title-v2 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.hero-title-v2 .line > span {
  display: block;
  transform: translateY(112%);
  animation: heroLineUp 1.05s var(--ease) forwards;
}
.hero-title-v2 .line:nth-child(2) > span {
  animation-delay: 0.12s;
}
.hero-title-v2 .line:nth-child(3) > span {
  animation-delay: 0.24s;
}
.hero-title-v2 em {
  font-style: italic;
  color: var(--cyan);
}
@keyframes heroLineUp {
  to {
    transform: translateY(0);
  }
}
.hero-v2-lede {
  max-width: 34rem;
  margin-top: 1.8rem;
  font-size: 1.04rem;
  line-height: 1.68;
  color: rgba(247, 251, 253, 0.66);
}
.hero-v2 .hero-actions {
  margin-top: 2rem;
}
.hero-v2-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-v2-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.hero-v2-stats strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--white);
}
.hero-v2-stats span {
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
}

/* Animated system stack */
.system-stack {
  position: relative;
  min-height: 31rem;
  perspective: 1200px;
}
.system-stack::before {
  content: '';
  position: absolute;
  inset: 8% 5% 12%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.system-stack::after {
  content: '';
  position: absolute;
  inset: 18% 14% 20%;
  border: 1px dashed rgba(28, 198, 226, 0.28);
  border-radius: 50%;
  animation: orbitSpin 28s linear infinite;
}
@keyframes orbitSpin {
  to {
    transform: rotate(342deg);
  }
}
.stack-card {
  position: absolute;
  left: 8%;
  right: 4%;
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: rgba(9, 31, 52, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 40px -30px rgba(0, 0, 0, 0.7);
  animation: stackFloat 8s ease-in-out infinite;
}
.stack-card:nth-of-type(1) {
  top: 7%;
  left: 4%;
  right: 18%;
  animation-delay: 0s;
}
.stack-card:nth-of-type(2) {
  top: 34%;
  left: 16%;
  right: 8%;
  animation-delay: 1.4s;
}
.stack-card:nth-of-type(3) {
  top: 61%;
  left: 7%;
  right: 22%;
  animation-delay: 2.8s;
}
@keyframes stackFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.35deg);
  }
}
.stack-num {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--cyan);
}
.stack-card h3 {
  margin-bottom: 0.25rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.stack-card p {
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}
.stack-status {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(28, 198, 226, 0.5);
  animation: statusPulse 2.4s ease-out infinite;
}
@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(28, 198, 226, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(28, 198, 226, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(28, 198, 226, 0);
  }
}
.stack-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
}
.stack-svg path {
  stroke-dasharray: 6 10;
  animation: signalDash 4s linear infinite;
}
@keyframes signalDash {
  to {
    stroke-dashoffset: -32;
  }
}

.home-manifesto {
  padding: clamp(6rem, 9vw, 9rem) 0;
  background: var(--white);
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.manifesto-grid h2 {
  max-width: 33rem;
  font-size: clamp(3rem, 4.6vw, 4.6rem);
  line-height: 0.98;
}
.manifesto-grid h2 em {
  font-style: italic;
  color: var(--cyan-strong);
}
.manifesto-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  align-content: start;
  padding-top: 0.6rem;
}
.manifesto-copy p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--slate);
}
.manifesto-copy p:first-child {
  grid-column: 1 / -1;
  font-size: 1.12rem;
  color: var(--ink);
}

.home-ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.home-ticker .marquee-track {
  animation-duration: 32s;
}
.home-ticker span {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--slate);
}

/* Home "What we do" — white 4-card section (1:1 clone of reference layout) */
.home-whatwedo {
  background: #ffffff;
  color: #16263d;
  padding: 5.5rem 0 6rem;
}
.wwd-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6c5ce7;
  margin: 0 0 0.9rem;
}
.wwd-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #16263d;
  margin: 0 0 2.6rem;
  max-width: 38rem;
}
.wwd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.wwd-card {
  background: #ffffff;
  border: 1px solid #eef1f6;
  border-radius: 18px;
  padding: 1.6rem 1.5rem 1.9rem;
  box-shadow: 0 10px 30px rgba(20, 38, 61, 0.06);
  transition: transform 0.35s var(--ease, ease), box-shadow 0.35s var(--ease, ease);
}
.wwd-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(20, 38, 61, 0.13);
}
.wwd-illo {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1.2rem;
}
.wwd-card h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  color: #16263d;
  margin: 0 0 0.5rem;
}
.wwd-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #5a6b7b;
  margin: 0;
}
@media (max-width: 900px) {
  .wwd-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .wwd-grid {
    grid-template-columns: 1fr;
  }
}

.home-capabilities {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: var(--navy-950);
  color: var(--white);
}
.home-capabilities .section-head h2 {
  color: var(--white);
}
.home-capabilities .section-head p {
  color: rgba(255, 255, 255, 0.56);
}
.cap-feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}
.cap-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 24rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(28, 198, 226, 0.09), rgba(255, 255, 255, 0.015));
  overflow: hidden;
}
.cap-feature::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 20rem;
  height: 20rem;
  border: 1px solid rgba(28, 198, 226, 0.25);
  border-radius: 50%;
  transition: transform 0.8s var(--ease);
}
.cap-feature:hover::after {
  transform: scale(1.15);
}
.cap-feature .cap-num {
  color: rgba(255, 255, 255, 0.35);
}
.cap-feature h3 {
  max-width: 18rem;
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  line-height: 1;
}
.cap-feature p {
  max-width: 25rem;
  margin-top: 0.8rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.58);
}
.cap-feature .cap-link {
  margin-top: 1.4rem;
  color: var(--cyan);
}
.cap-stack {
  display: grid;
  gap: 1rem;
}
.cap-mini {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.025);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.cap-mini:hover {
  background: rgba(28, 198, 226, 0.08);
  border-color: rgba(28, 198, 226, 0.4);
}
.cap-mini span {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.4);
}
.cap-mini h3 {
  margin-bottom: 0.2rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
}
.cap-mini p {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.48);
}
.cap-mini i {
  font-style: normal;
  color: var(--cyan);
}

.home-projects {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: var(--paper);
}
.home-projects .project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-projects .project-card:nth-child(2) {
  margin-top: 2.2rem;
}

.home-approach {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: var(--white);
}
.approach-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 3rem;
  background: var(--line);
  border: 1px solid var(--line);
}
.approach-step {
  position: relative;
  min-height: 17rem;
  padding: 1.5rem;
  background: var(--white);
}
.approach-step::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 1.1s var(--ease);
}
.js .approach-rail.is-in .approach-step::before {
  width: 100%;
}
.approach-step span {
  display: block;
  margin-bottom: 2.8rem;
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--cyan-strong);
}
.approach-step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}
.approach-step p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--slate);
}

.home-insights {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: var(--ice);
}
.home-insights .insight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-insights .insight-card {
  padding: 1.6rem;
}

.home-industries {
  padding: clamp(4.5rem, 7vw, 7rem) 0;
  background: var(--navy-950);
  color: var(--white);
}
.industry-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 2.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.industry-strip a {
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.72);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.industry-strip a:last-child {
  border-right: 0;
}
.industry-strip a:hover {
  background: rgba(28, 198, 226, 0.08);
  color: var(--white);
}
.industry-strip a span {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
}

.home-principles {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: var(--white);
}
.principle-rows {
  border-top: 1px solid var(--line);
}
.principle-row {
  display: grid;
  grid-template-columns: 4.5rem 0.9fr 1.1fr;
  gap: 2rem;
  align-items: baseline;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
}
.principle-row span {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--slate-light);
}
.principle-row h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}
.principle-row p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--slate);
}

.cta-v2 {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  background: var(--cyan);
  color: var(--navy-950);
}
.cta-v2::before {
  content: 'N';
  position: absolute;
  right: -0.05em;
  bottom: -0.42em;
  font-family: var(--serif);
  font-size: 42rem;
  line-height: 0.7;
  color: transparent;
  -webkit-text-stroke: 1px rgba(6, 21, 40, 0.14);
  pointer-events: none;
}
.cta-v2 .cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: end;
}
.cta-v2 h2 {
  max-width: 42rem;
  font-size: clamp(3.1rem, 4.8vw, 4.8rem);
  line-height: 0.94;
}
.cta-v2 p {
  max-width: 31rem;
  margin-top: 1.4rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(6, 21, 40, 0.7);
}
.cta-v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}
.cta-v2 .btn-dark {
  background: var(--navy-950);
  border-color: var(--navy-950);
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 0%;
  height: 2px;
  background: var(--cyan);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Responsive additions
   -------------------------------------------------------------------------- */

@media (min-width: 1100px) and (max-height: 820px) {
  .hero-v2-inner {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }
  .hero-title-v2 {
    font-size: clamp(3.2rem, 4.2vw, 4.2rem);
  }
  .hero-v2-lede {
    margin-top: 1rem;
    font-size: 0.96rem;
    line-height: 1.55;
  }
  .hero-v2 .hero-actions {
    margin-top: 1.2rem;
  }
  .hero-v2-stats {
    margin-top: 1.8rem;
    padding-top: 1rem;
  }
  .system-stack {
    min-height: 25rem;
  }
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr;
  }
  .footer-grid .footer-col:last-child {
    grid-column: 2 / -1;
  }
  .project-grid,
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .approach-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .industry-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .industry-strip a:nth-child(3n) {
    border-right: 0;
  }
}
@media (max-width: 900px) {
  .content-grid,
  .content-grid--reverse,
  .content-grid--equal,
  .article-layout,
  .quote-layout,
  .manifesto-grid,
  .cta-v2 .cta-inner {
    grid-template-columns: 1fr;
  }
  .sticky-title,
  .article-aside {
    position: static;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel-grid,
  .panel-grid--3 {
    grid-template-columns: 1fr;
  }
  .media-pair {
    grid-template-columns: 1fr;
  }
  .media-pair .media-frame:last-child {
    margin-top: 0;
  }
  .home-hero-v2 {
    min-height: 0;
  }
  .hero-v2-inner {
    grid-template-columns: 1fr;
  }
  .system-stack {
    min-height: 26rem;
  }
  .cap-feature-grid {
    grid-template-columns: 1fr;
  }
  .cap-stack {
    grid-template-columns: 1fr;
  }
  .manifesto-copy {
    grid-template-columns: 1fr;
  }
  .cta-v2-actions {
    justify-content: flex-start;
  }
  .industry-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .industry-strip a:nth-child(3n) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }
  .industry-strip a:nth-child(2n) {
    border-right: 0;
  }
}
@media (max-width: 620px) {
  .form-grid,
  .project-grid,
  .insight-grid,
  .metric-grid,
  .approach-rail,
  .industry-strip {
    grid-template-columns: 1fr;
  }
  .industry-strip a {
    border-right: 0;
  }
  .principle-row {
    grid-template-columns: 2.5rem 1fr;
  }
  .principle-row p {
    grid-column: 2;
  }
  .hero-title-v2 {
    font-size: clamp(3.4rem, 13vw, 4.6rem);
  }
  .hero-v2-stats {
    grid-template-columns: 1fr 1fr;
  }
  .home-projects .project-card:nth-child(2) {
    margin-top: 0;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-title-v2 .line > span {
    transform: none;
    animation: none;
  }
  .hero-system,
  .system-stack::after,
  .stack-card,
  .stack-status,
  .stack-svg path {
    animation: none !important;
  }
}


/* Legal readability */
.legal-inner {
  max-width: 54rem;
}
.legal p,
.legal li {
  font-size: 0.98rem;
}
.legal h2 {
  margin-top: 3rem;
}

.legal h2:first-of-type {
  margin-top: 3rem;
}

/* Taller interior page banners (all pages except home) */
.page-hero:not(.page-hero--compact) {
  min-height: 56rem;
  display: flex;
  align-items: center;
  padding-top: 6.5rem;
  padding-bottom: 5.5rem;
}
.page-hero--compact {
  min-height: 37rem;
  display: flex;
  align-items: center;
  padding-top: 4.5rem;
  padding-bottom: 4rem;
}
.page-hero .container {
  width: 100%;
}
@media (max-width: 900px) {
  .page-hero:not(.page-hero--compact),
  .page-hero--compact {
    min-height: 0;
    display: block;
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }
}
