/* Home-specific CSS — extracted from HTML/index.html */

/* Home sections run edge-to-edge. site.css's `section { max-width: 1600px }`
   is correct for sub-pages but the home design explicitly drops that constraint
   (the original HTML/index.html defines its own `section` rule with no max-width).
   We override here so the hero video, services grid, testimonials band, etc.
   span the full viewport on any size. */
section { max-width: none; }

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero video, .hero .video-fallback {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,15,28,.55) 0%, rgba(8,15,28,.25) 30%, rgba(8,15,28,.35) 60%, rgba(8,15,28,.9) 100%),
    radial-gradient(ellipse at 30% 20%, rgba(14,34,64,.35), transparent 60%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 56px 80px;
  width: 100%;
  margin: 0 auto;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 28px;
}
.hero .eyebrow .line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,.5);
}
h1.hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(46px, 7.2vw, 116px);
  line-height: .95;
  letter-spacing: -.035em;
  max-width: 16ch;
}
h1.hero-title em,
h1.hero-title i {
  font-style: normal;
  font-weight: 300;
  color: rgba(255,255,255,.6);
}
.hero-meta {
  margin-top: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-sub {
  max-width: 440px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.78);
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* Logo glow variant for dark backgrounds */
header.nav.dark-bg .logo.white {
  filter: drop-shadow(0 0 6px rgba(255,255,255,.35)) drop-shadow(0 0 14px rgba(255,255,255,.2));
}

/* Hero ticker */
.hero-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  border-top: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(8,15,28,0), rgba(8,15,28,.6));
  padding: 16px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.hero-ticker span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-ticker .dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34,197,94,.6);
  animation: pulse 1.8s infinite;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .3em;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  transition: opacity .4s ease;
  pointer-events: none;
}
body.scrolled-any .scroll-indicator {
  opacity: 0;
}
.scroll-indicator .bar {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, rgba(255,255,255,.7), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-indicator .bar::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: #fff;
  animation: scrollDrop 2s infinite cubic-bezier(.6,.2,.1,1);
}
@keyframes scrollDrop {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* Services */
.services {
  border-top: 1px solid var(--line);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.service {
  background: var(--paper);
  padding: 40px 32px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
  transition: background .5s ease, color .5s ease;
}
/* Subtle pattern layered in the background of each service tile (fades on hover) */
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 92% 8%, rgba(14,34,64,.05), transparent 45%),
    repeating-linear-gradient(135deg, rgba(14,34,64,.035) 0 1px, transparent 1px 14px);
  transition: opacity .5s ease;
  opacity: 1;
}
.service::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(14,34,64,.07);
  border-radius: 50%;
  transition: opacity .5s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.service:hover::before {
  opacity: 0;
}
.service:hover::after {
  opacity: .12;
  border-color: #fff;
  transform: scale(1.15);
}
.service > * {
  position: relative;
  z-index: 1;
}
/* Auto-layout — works for any N services */
.service {
  grid-column: span 4;
  min-height: 320px;
}
.service:nth-child(1), .service:nth-child(2) {
  grid-column: span 6;
  min-height: 420px;
}
.service:hover {
  background: var(--navy);
  color: #fff;
}
.service:hover .service-num, .service:hover .service-arrow {
  color: rgba(255,255,255,.55);
}
.service:hover .service-desc {
  color: rgba(255,255,255,.72);
}
.service-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--steel);
  transition: color .5s;
}
.service-arrow {
  color: var(--steel);
  transition: all .5s;
}
.service:hover .service-arrow {
  transform: translate(4px, -4px);
}
.service-title {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-top: auto;
}
.service-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--steel);
  max-width: 36ch;
  margin-top: 14px;
  transition: color .5s;
}

/* About section */
.about {
  background: var(--ink);
  color: #fff;
  padding: 160px 56px;
  margin: 0;
  max-width: none;
}
.about-inner {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 100px;
  align-items: start;
}
.about h2 {
  color: #fff;
}
.about h2 em,
.about h2 i {
  color: rgba(255,255,255,.4);
}
.about p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,.72);
  max-width: 52ch;
  margin-bottom: 24px;
}
.about-visual {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(14,34,64,.6), rgba(107,117,131,.4)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px);
  border: 1px solid rgba(255,255,255,.08);
}
.about-visual::after {
  content: "[ crew on site, placeholder ]";
  position: absolute;
  bottom: 18px;
  left: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.about-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,.85);
}
.about-bolt {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  opacity: .22;
  mix-blend-mode: screen;
}

/* Testimonials */
.t-stage {
  position: relative;
  background:
    linear-gradient(135deg, rgba(20,42,77,.55), rgba(107,117,131,.25)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 14px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 2px;
  padding: 64px 56px 56px;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.t-ring {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.t-ring svg {
  transform: rotate(-90deg);
}
.t-ring .bg {
  stroke: rgba(255,255,255,.15);
}
.t-ring .fg {
  stroke: #fff;
  stroke-dasharray: 150.8;  /* 2 * PI * 24 */
  stroke-dashoffset: 150.8;
  transition: stroke-dashoffset .12s linear;
}
.t-ring .num {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.9);
}
.t-quote-mark {
  position: absolute;
  top: -10px;
  left: 32px;
  font-family: Georgia, serif;
  font-size: 180px;
  line-height: 1;
  color: rgba(255,255,255,.08);
  font-weight: 400;
  pointer-events: none;
}
.t-track {
  position: relative;
  width: 100%;
  min-height: 320px;
}
.t-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.t-slide.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.t-body {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 300;
  letter-spacing: -.01em;
  color: rgba(255,255,255,.92);
  max-width: 50ch;
}
.t-meta {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.t-name {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -.005em;
}
.t-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.t-controls {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.t-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.85);
  transition: all .3s ease;
}
.t-btn:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.t-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .18em;
  color: rgba(255,255,255,.7);
  min-width: 70px;
}
.t-counter .slash {
  color: rgba(255,255,255,.3);
  margin: 0 4px;
}
.t-bar {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.15);
  position: relative;
  overflow: hidden;
  max-width: 220px;
}
.t-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #fff;
  width: 25%;
  transition: width .5s cubic-bezier(.2,.8,.2,1);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 100px;
  padding-top: 60px;
}
.stat {
  padding: 0 32px;
  border-left: 1px solid rgba(255,255,255,.12);
  position: relative;
}
.stat:first-child {
  border-left: 0;
  padding-left: 0;
}
.stat .num {
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1;
  color: #fff;
}
.stat .label {
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

/* Process */
.process {
  border-top: 1px solid var(--line);
}
.process-list {
  border-top: 1px solid var(--line);
}
.p-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr 120px;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: padding .4s ease, background .4s ease;
  cursor: default;
}
.p-row:hover {
  padding-left: 20px;
  padding-right: 20px;
}
.p-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--steel);
}
.p-title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--navy);
}
.p-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--steel);
  max-width: 50ch;
}
.p-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--steel);
  text-align: right;
}

/* Responsive overrides for 960px and below */
@media (max-width: 960px) {
  .hero-inner {
    padding: 0 24px 100px;
  }
  .hero-ticker {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 10px;
    padding: 12px 24px;
  }
  .hero-ticker span:nth-child(4) {
    display: none;
  }
  .service {
    grid-column: span 12 !important;
  }
  .about {
    padding: 100px 24px;
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 0;
  }
  .stat {
    border-left: 0;
    padding: 0;
  }
  .t-stage {
    padding: 48px 28px 36px;
    min-height: 520px;
  }
  .t-body {
    font-size: 18px;
  }
  .t-quote-mark {
    font-size: 120px;
    top: -6px;
    left: 16px;
  }
  .p-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .p-time {
    text-align: left;
  }
}
