/* Northspan Commercial - home sacred DNA */

/* Preloader */
.loader {
  position: fixed;
  inset: 0;
  background: #171717;
  z-index: var(--z-loader);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.loader-text {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 3vw);
  letter-spacing: -0.05em;
  font-weight: 500;
  text-transform: uppercase;
}

.loader-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #fff;
  width: 0%;
}

@media (max-width: 768px) {
  .loader-text {
    font-size: 8vw;
  }
}

/* Word reveal */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
}

.word-inner {
  display: inline-block;
  transform: translateY(110%);
}

/* Hero */
.hero {
  height: 100vh;
  min-height: 560px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  width: 100%;
  padding: 0 1rem;
}

.hero-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8vw);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.hero-title span {
  display: block;
  transform: translateY(110%);
}

.hero-sub {
  margin: 2rem auto 0;
  max-width: 28rem;
  font-size: 0.95rem;
  font-weight: 300;
  color: #d4d4d4;
  line-height: 1.7;
}

.hero-iso {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.iso-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a3a3a3;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  animation: bounce 1.6s infinite;
}

.hero-fade {
  opacity: 0;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll {
    animation: none;
  }
  .hero-title span,
  .word-inner {
    transform: none;
  }
  .hero-fade {
    opacity: 1;
  }
}

/* About sticky split */
.about-section {
  padding: 8rem 1.5rem;
  display: grid;
  gap: 3rem;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  background: var(--c-bg);
}

@media (min-width: 768px) {
  .about-section {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 8rem 5rem;
  }
}

.about-sticky {
  position: sticky;
  top: 8rem;
  align-self: start;
}

.about-sticky h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
  color: var(--c-text);
}

.about-sticky h2 .muted {
  color: #a3a3a3;
}

.about-chips {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #737373;
}

.about-chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.about-body {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 300;
  line-height: 1.75;
  color: #525252;
}

.about-body p + p {
  margin-top: 1.75rem;
}

/* Stack section */
.stack-section {
  padding: 10vh 0;
  background: #111;
  color: #f5f5f5;
  position: relative;
}

.stack-header {
  text-align: center;
  margin-bottom: 5rem;
  padding: 0 1.5rem;
}

.stack-header .eyebrow {
  color: #737373;
}

.stack-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
}

.stack-container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  padding-bottom: 10vh;
}

.card-item {
  position: sticky;
  top: 10vh;
  height: 80vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5vh;
}

.card-inner {
  width: 90%;
  height: 100%;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  border-radius: 4px;
}

.card-content {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #1a1a1a;
  z-index: 2;
}

.card-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
}

.card-content .card-tag {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.card-content .card-copy {
  color: #a3a3a3;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-content .card-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 1.5s ease, filter 0.5s ease;
}

.card-inner:hover .card-img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .card-inner {
    grid-template-columns: 1fr;
  }
  .card-item {
    top: 5vh;
    height: 85vh;
  }
  .card-img-wrap {
    height: 40%;
    order: -1;
  }
  .card-content {
    padding: 2rem;
    height: 60%;
  }
}

/* CTA band */
.cta-band {
  padding: 8rem 1.5rem;
  background: var(--c-bg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid #e5e5e5;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  margin-bottom: 1.25rem;
}

.cta-band p {
  max-width: 32rem;
  color: #525252;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.cta-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.cta-scroll-cue .line {
  height: 3rem;
  width: 1px;
  background: rgba(0, 0, 0, 0.2);
}

.cta-scroll-cue span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a3a3a3;
}
