/* ═══════════════════════════════════════════════════════════════
   comet700.css — CIGWELD COMET 700 PRO project page
   Layout matched to reference screenshots
   ═══════════════════════════════════════════════════════════════ */

/* Override the shared .proj-hero-vignette for this page only.
   The base treatment darkens the bottom 70% of the image at up to
   92% opacity, which drowns the product (cinematic for darker
   subjects, but here the welder IS the focus and was disappearing).
   This page's image is hero-product centred, so we keep only a
   light edge-fade at top + bottom for navbar/text contrast and
   leave the middle band of the image completely clean. */
.proj-hero-vignette {
  background:
    linear-gradient(to bottom, rgba(8,12,16,0.55) 0%, transparent 18%),
    linear-gradient(to top,    rgba(8,12,16,0.70) 0%, transparent 28%);
}

/* ─── SECTION 1: HERO ────────────────────────────────────────── */
.c7-hero {
  position: relative;
  min-height: 100svh;
  background: #050508;          /* near-black matching reference */
  display: flex;
  align-items: flex-end;        /* text sits in the lower half */
  overflow: hidden;
}

/* Full-coverage product image — fills the right ~60% */
.c7-hero-img {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.c7-hero-img img {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-52%);
  width: 68%;
  height: auto;
  object-fit: contain;
  /* Left-edge mask: fades the image into the black background */
  -webkit-mask: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 18%, black 42%);
  mask: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 18%, black 42%);
}

/* Cinematic bottom gradient — text readability */
.c7-hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,8,0.92) 0%, rgba(5,5,8,0.4) 35%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

/* Text block — lower-left, matching reference */
.c7-hero-content {
  position: relative;
  z-index: 2;
  padding: var(--nav-h) var(--gutter) 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}


.c7-hero-text {
  padding-bottom: 5rem;
  max-width: 480px;
  margin-top: auto;
  /* Push text to bottom area like the reference */
  padding-top: clamp(35vh, 42vh, 50vh);
}

.c7-title {
  font: 300 clamp(32px, 5vw, 62px)/1.12 var(--sans);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  animation: c7FadeUp .9s var(--ease) .2s both;
}

.c7-hero-body {
  font-size: var(--t-body-lg);
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  max-width: 420px;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(14px);
  animation: c7FadeUp .8s var(--ease) .42s both;
}

.c7-cta {
  align-self: flex-start;
  opacity: 0;
  transform: translateY(10px);
  animation: c7FadeUp .8s var(--ease) .6s both;
}

/* Meta bar — full-width strip anchored to hero bottom */
.c7-meta-bar {
  position: relative;
  z-index: 3;
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(5,5,8,0.8);
  backdrop-filter: blur(12px);
  opacity: 0;
  animation: c7FadeUp .7s var(--ease) .85s both;
}
.c7-meta-item {
  flex: 1;
  padding: 1.1rem var(--gutter);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.c7-meta-item:last-child { border-right: none; }
.c7-meta-label {
  display: block;
  font: 800 var(--t-xs)/1 var(--sans);
  letter-spacing: .3em; text-transform: uppercase;
  color: rgba(55,115,230,0.85);
  margin-bottom: .4rem;
}
.c7-meta-value {
  display: block;
  font: 400 var(--t-sm)/1.3 var(--sans);
  color: rgba(255,255,255,0.75);
}

@keyframes c7FadeUp {
  from { opacity: 0; transform: translateY(var(--ty, 16px)); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ─── SHARED SECTION BASE ────────────────────────────────────── */
.c7-section {
  background: var(--dark);
  border-top: 1px solid var(--rule);
  padding-block: clamp(5rem,10vw,9rem);
}

.c7-body {
  font-size: var(--t-body-lg);
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.1rem;
}
.c7-body strong {
  color: var(--text);
  font-weight: 600;
}


/* ─── SECTION 2: OVERVIEW + GOALS ───────────────────────────── */
.c7-overview { background: var(--dark); }

.c7-overview-inner {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.c7-overview-inner .c7-goals-list {
  text-align: left;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.c7-overview-text .label { margin-bottom: 1.5rem; }

.c7-goals-block { margin-top: 2.5rem; }

.c7-goals-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 0;
}
.c7-goals-list li {
  font-size: var(--t-body-lg);
  line-height: 1.55;
  color: rgba(255,255,255,0.6);
  padding-left: 1.25rem;
  position: relative;
}
.c7-goals-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(55,115,230,0.7);
}

.c7-overview-image {
  overflow: hidden;
  border-radius: 3px;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.c7-overview-image img {
  width: 100%; height: auto;
  display: block;
  transition: transform .8s var(--ease);
}
.c7-overview-image:hover img { transform: scale(1.03); }


/* ─── SECTION 3: CREATIVE DEVELOPMENT ───────────────────────── */
.c7-creative {
  background: var(--dark);
}

/* Pin container — 100vh, locked in place by GSAP during scroll.
   padding-top: var(--nav-h) offsets content below the fixed nav
   when GSAP pins the element at position:fixed top:0. */
.c7-creative-sticky {
  height: 100vh;
  padding-top: var(--nav-h);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--dark);
}

.c7-creative-label {
  padding-top: clamp(1.5rem,3vw,2.5rem);
  padding-bottom: 0;
  flex-shrink: 0;
}

/* Two-column inner grid fills the remaining sticky height */
.c7-creative-inner {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: clamp(2rem,4vw,4rem);
  padding-bottom: clamp(1.5rem,3vw,2.5rem);
  align-items: stretch;
}

/* Left column: clips and fades the scrolling steps.
   margin-left: -12px expands the overflow:hidden boundary leftward so
   dot glows (centred at ~24px from edge) never hard-clip. */
.c7-creative-left {
  display: flex;
  gap: 0;
  align-items: stretch;
  align-self: stretch;
  overflow: hidden;
  min-width: 0;
  margin-left: -12px;
  padding-left: 12px;
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0,0,0,0.6) 8%,
    black 18%,
    black 82%,
    rgba(0,0,0,0.6) 92%,
    transparent 100%);
  mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0,0,0,0.6) 8%,
    black 18%,
    black 82%,
    rgba(0,0,0,0.6) 92%,
    transparent 100%);
}

/* ─── TIMELINE DOTS & TRACK ───────────────────────────────────── */
.c7-tl-node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.14);
  background: transparent;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transform-origin: center center;
  transition:
    width .3s ease,
    height .3s ease,
    border-color .3s ease,
    background .3s ease;
}

/* Reached by the fill — lit but static */
.c7-tl-node.active {
  width: 10px;
  height: 10px;
  border-color: #4ab8ff;
  background: #4ab8ff;
  box-shadow:
    0 0 4px 1px rgba(74,184,255,0.9),
    0 0 10px 2px rgba(74,184,255,0.45);
}

/* Leading edge of the fill — pulses */
.c7-tl-node.current {
  animation: nodePulse 2s ease-in-out infinite;
}

@keyframes nodePulse {
  0%, 100% {
    box-shadow:
      0 0 4px 1px rgba(74,184,255,0.9),
      0 0 10px 2px rgba(74,184,255,0.45);
  }
  50% {
    box-shadow:
      0 0 7px 2px rgba(74,184,255,1),
      0 0 18px 4px rgba(74,184,255,0.65);
  }
}

/* Sonar ring — created and animated by JS on activation */
.c7-tl-ring {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid rgba(74,184,255,0.85);
  pointer-events: none;
  transform-origin: center center;
}

/* Track line — top/height set by JS after layout */
.c7-tl-track {
  position: absolute;
  left: 11px;
  width: 2px;
  top: 0;
  height: 0;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}

/* Fill line — height grows via JS on scroll */
.c7-tl-fill {
  position: absolute;
  left: 11px;
  width: 2px;
  top: 0;
  height: 0;
  background: linear-gradient(to bottom, rgba(74,184,255,0.95), rgba(74,184,255,0.6));
  box-shadow:
    0 0 4px 2px rgba(74,184,255,0.5),
    0 0 10px 3px rgba(74,184,255,0.2);
  pointer-events: none;
  overflow: visible;
}

/* Bright spark at the advancing tip of the fill */
.c7-tl-fill::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(74,184,255,1);
  box-shadow:
    0 0 5px 2px rgba(74,184,255,0.9),
    0 0 12px 3px rgba(74,184,255,0.45);
}

/* Dot column — first grid column, centers the node */
.c7-step-dot-col {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ─── STEPS LIST ──────────────────────────────────────────────── */
.c7-steps-list {
  flex: 1;
  position: relative;
  will-change: transform;
}

/* Each step: [dot col] [number col] [text body] */
.c7-step {
  display: grid;
  grid-template-columns: 24px 3rem 1fr;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(2rem,6vh,5rem);
  align-items: start;
  opacity: 0.35;
  transition: opacity .4s ease;
}
.c7-step:last-child { border-bottom: none; }
.c7-step.active     { opacity: 1; }

.c7-step-num-col {
  align-self: start;
}

.c7-step-num {
  font: 300 clamp(32px,4vw,56px)/1 var(--sans);
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.18);
  display: block;
  transition: color .35s ease;
}
.c7-step.active .c7-step-num { color: rgba(255,255,255,0.72); }

.c7-step-title {
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

/* ─── RIGHT IMAGE COLUMN ──────────────────────────────────────── */
/* Centers the image wrap vertically within the column */
.c7-creative-img-col {
  display: flex;
  align-items: center;
  align-self: stretch;
  padding-block: clamp(1rem, 2.5vh, 2rem);
  margin-right: calc(-1 * var(--gutter));
}

/* Width-driven square image — matches live site proportions */
.c7-creative-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 2px 12px rgba(0,0,0,0.4);
}

.c7-creative-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
}
.c7-creative-img.active { opacity: 1; }

.c7-creative-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



/* ─── SECTION 4: FINAL FILM ──────────────────────────────────── */
.c7-film {
  background: var(--dark);
  padding-bottom: 0;
}

.c7-film-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #050508;
  overflow: hidden;
}

.c7-film-cover {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: opacity .4s;
}
.c7-film-cover.gone { opacity: 0; pointer-events: none; }

.c7-film-thumb {
  position: absolute; inset: 0;
}
.c7-film-bg {
  position: absolute; inset: 0;
}
.c7-film-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .55;
  filter: brightness(.7) saturate(1.1);
}

/* The CIGWELD branding overlay matching the video thumbnail reference */
.c7-film-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(to bottom, rgba(5,5,8,0.4) 0%, rgba(5,5,8,0.1) 40%, rgba(5,5,8,0.4) 100%);
}
.c7-film-branding {
  text-align: center;
  user-select: none;
}
.c7-film-brand-text {
  display: block;
  font: 800 clamp(24px,4vw,56px)/1 var(--sans);
  letter-spacing: .25em;
  color: #3ba0f0;           /* CIGWELD brand blue */
  margin-bottom: .35em;
  text-shadow: 0 0 40px rgba(59,160,240,0.5);
}
.c7-film-product-name {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .15em;
}
.c7-fn-comet {
  font: 300 clamp(36px,7vw,100px)/1 var(--sans);
  letter-spacing: .05em;
  color: #ffffff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.8);
}
.c7-fn-700 {
  font: 300 clamp(28px,5.5vw,80px)/1 var(--sans);
  color: #ffffff;
}
.c7-fn-pro {
  font: 700 clamp(10px,1.5vw,20px)/1 var(--sans);
  letter-spacing: .15em;
  color: #a0a8b8;
  align-self: flex-start;
  margin-top: .4em;
  padding: .2em .4em;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 2px;
}

/* Play button */
.c7-play-btn {
  position: relative;
  z-index: 2;
  width: 80px; height: 80px;
  background: none; border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.c7-play-circle {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(5,5,8,0.5);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.c7-play-circle svg { width: 20px; height: 20px; margin-left: 3px; }
.c7-play-ring {
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color .4s, transform .4s var(--ease);
}
.c7-play-btn:hover .c7-play-circle {
  border-color: rgba(55,115,230,0.8);
  background: rgba(55,115,230,0.15);
  box-shadow: 0 0 30px rgba(55,115,230,0.4);
}
.c7-play-btn:hover .c7-play-ring {
  border-color: rgba(55,115,230,0.35);
  transform: scale(1.2);
}

.c7-film-embed {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.c7-film-embed iframe { width: 100%; height: 100%; border: 0; }

/* Meta line above film */
.c7-film .container { padding-bottom: 1.5rem; }


/* ─── SECTION 5: TESTIMONIAL ─────────────────────────────────── */
.c7-testimonial { background: var(--dark); }

.c7-quote-block {
  max-width: 860px;
}

/* CIGWELD logo — colour wordmark sits directly on the dark
   testimonial bg with a soft drop-shadow for lift (no white plate).
   Same treatment as .card-logo on the work-hub project cards. */
.c7-cigweld-logo {
  display: inline-block;
  margin-bottom: 2.5rem;
  line-height: 0;
}
.c7-cigweld-logo img {
  display: block;
  width: clamp(80px, 9vw, 130px);
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5));
}

/* Client logo badge — pinned to bottom-right of the hero media,
   mirroring the title text at bottom-left. No white plate; drop-shadow
   lifts the colour wordmark off the cinematic product render. */
.proj-client-badge {
  position: absolute;
  right: clamp(1.5rem, 3vw, 3rem);
  bottom: calc(clamp(1.5rem, 3vw, 3rem) + 72px);
  z-index: 3;
  line-height: 0;
  pointer-events: none;
}
.proj-client-badge img {
  display: block;
  width: clamp(100px, 11vw, 160px);
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .65));
}

.c7-quote {
  font: 300 clamp(22px,3.5vw,44px)/1.25 var(--sans);
  letter-spacing: -0.01em;
  color: var(--text);
  quotes: none;
  margin-bottom: 2rem;
  max-width: 820px;
}

.c7-cite {
  font: 400 var(--t-body)/1 var(--sans);
  color: rgba(255,255,255,0.45);
  font-style: normal;
}


/* ─── PROJ CTA (reuse global styles) ─────────────────────────── */
.proj-cta-section {
  background: var(--dark);
  border-top: 1px solid var(--rule);
  padding-block: clamp(7rem, 15vw, 13rem);
  text-align: center;
}
.proj-cta {
  max-width: 900px;
  margin: 0 auto;
}
.proj-cta-title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: var(--fw-h1);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
  margin-top: 1rem;
}


/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Hero */
  .c7-hero-img img { width: 100%; right: 0; transform: translateY(-50%); }
  .c7-hero-content { padding-bottom: 0; }
  .c7-hero-text { padding-top: 30vh; }

  /* Meta bar */
  .c7-meta-bar { flex-wrap: wrap; }
  .c7-meta-item { width: 50%; border-right: none; }

  /* Overview — single centered column on all viewports, no grid override needed */

  /* Creative steps — disable sticky scroll on tablet/mobile */
  .c7-creative-sticky { height: auto; overflow: visible; }
  .c7-creative-inner { grid-template-columns: 1fr; align-items: start; }
  .c7-creative-left {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
    flex-direction: column;
  }
  .c7-creative-img-col {
    order: -1;
    padding-block: 0;
    margin-bottom: 2rem;
    align-items: flex-start;
  }
  .c7-step { opacity: 1; }

  /* Film */
  .c7-film-player { aspect-ratio: 16/10; }
}

@media (max-width: 600px) {
  .c7-step-dot-col,
  .c7-tl-track,
  .c7-tl-fill { display: none; }
  .c7-step { grid-template-columns: 2.5rem 1fr; }
  .c7-step-num { font-size: 36px; }
  .c7-step-num-col { position: relative; top: 0; }
  .c7-meta-item { width: 100%; }
}
