/**
 * Brand V2: home.css - Homepage visual structures.
 */

/* Hero: finished packaging must carry the first impression. */
.brand-v2-hero {
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
}

.brand-v2-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.brand-v2-hero-copy {
  max-width: 640px;
}

.brand-v2-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.75rem;
}

.brand-v2-proof-row span,
.brand-v2-proof-row strong {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--color-brand-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-brand-text-muted);
  font-size: 0.78rem;
  line-height: 1;
}

.brand-v2-proof-row strong {
  background: #f8f4f1;
  color: var(--color-brand-text-dark);
  font-weight: 700;
}

.brand-v2-hero-visual {
  display: grid;
  gap: 1rem;
}

.brand-v2-hero-frame {
  overflow: hidden;
  border: 1px solid var(--color-brand-border);
  border-radius: 0.5rem;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.brand-v2-hero-main-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f3f5;
}

.brand-v2-hero-main-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-v2-hero-caption {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--color-brand-border);
  color: var(--color-brand-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.brand-v2-hero-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.brand-v2-hero-thumbs figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-brand-border);
  border-radius: 0.5rem;
  background: #ffffff;
}

.brand-v2-hero-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.brand-v2-hero-thumbs figcaption {
  min-height: 2.7rem;
  padding: 0.55rem 0.65rem;
  color: var(--color-brand-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Application Gallery specific layout */
.app-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.app-gallery-card {
  background-color: var(--color-brand-card);
  border: 1px solid var(--color-brand-border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

.app-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.app-gallery-img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background-color: #f1f3f5;
}

.app-gallery-content {
  padding: 1.5rem;
}

/* Timeline/Capability custom steps styles */
.capability-step {
  border-left: 3px solid var(--color-brand-border);
  padding-left: 1.5rem;
  position: relative;
  transition: border-color 0.25s;
}

.capability-step:hover {
  border-left-color: var(--color-brand-primary);
}

.capability-step-num {
  position: absolute;
  left: -10px;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--color-brand-primary);
  border: 3px solid #ffffff;
}

/* Industry gateway overlays and icons */
.industry-gateway-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--color-brand-border);
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.industry-gateway-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.07);
}

.industry-story-card {
  display: flex;
  flex-direction: column;
}

.industry-story-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f3f5;
  border-bottom: 1px solid var(--color-brand-border);
}

.industry-story-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industry-story-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.95rem;
  padding: 1.35rem;
}

.industry-story-kicker {
  margin: 0;
  color: var(--color-brand-primary);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.industry-story-packline,
.industry-story-problem,
.industry-story-response {
  border-top: 1px solid var(--color-brand-border);
  padding-top: 0.75rem;
}

.industry-story-packline span,
.industry-story-problem span,
.industry-story-response span {
  display: block;
  margin-bottom: 0.25rem;
  color: #7c8794;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.industry-story-packline strong {
  color: var(--color-brand-text-dark);
  font-size: 0.86rem;
  line-height: 1.45;
}

.industry-story-problem {
  margin-top: 0.1rem;
}

.industry-story-problem p,
.industry-story-response p {
  margin: 0;
  color: var(--color-brand-text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.industry-story-response {
  margin-top: auto;
  border: 1px solid #ead8cf;
  border-radius: 0.45rem;
  padding: 0.85rem;
  background: #fff8f3;
}

.industry-story-response span {
  color: var(--color-brand-primary);
}

.industry-story-action {
  padding: 0 1.35rem 1.35rem;
}

@media (max-width: 900px) {
  .brand-v2-hero-grid {
    grid-template-columns: 1fr;
  }

  .brand-v2-hero-copy {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .brand-v2-hero-thumbs {
    grid-template-columns: 1fr;
  }
}

/* Background Video, Mask & Typography for Video Hero Mode */
.brand-v2-hero.has-video {
  position: relative;
  overflow: hidden;
  background-color: #0b0f19 !important; /* dark fallback background */
}

.brand-v2-hero-content {
  position: relative !important;
  z-index: 30 !important;
}

.brand-v2-hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0 !important;
  pointer-events: none;
}

.brand-v2-hero-video-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1 !important;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 18%, rgba(11, 15, 25, 0.25) 0%, rgba(11, 15, 25, 0.45) 34%, rgba(11, 15, 25, 0.1) 68%),
    linear-gradient(90deg, rgba(8, 12, 21, 0.65) 0%, rgba(8, 12, 21, 0.45) 42%, rgba(8, 12, 21, 0.15) 100%);
}

/* Vignette border shadow */
.brand-v2-hero.has-video::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.35);
  z-index: 2;
  pointer-events: none;
}

.brand-v2-hero.has-video .brand-v2-hero-copy,
.brand-v2-hero.has-video .brand-v2-hero-visual {
  position: relative;
  z-index: 31;
}

.brand-v2-hero.has-video .brand-v2-hero-frame,
.brand-v2-hero.has-video .brand-v2-hero-thumbs figure {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.22);
}

.brand-v2-hero.has-video .brand-v2-h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-v2-hero.has-video .brand-v2-lead {
  color: #cbd5e1 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.brand-v2-hero.has-video .brand-v2-badge {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.brand-v2-hero.has-video .brand-v2-proof-row span {
  background: rgba(15, 23, 42, 0.75) !important;
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.brand-v2-hero.has-video .brand-v2-proof-row strong {
  background: rgba(230, 92, 0, 0.18) !important;
  color: #ffa16c !important;
  border-color: rgba(230, 92, 0, 0.35) !important;
}

.brand-v2-hero.has-video .btn-brand-secondary {
  background-color: transparent !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.brand-v2-hero.has-video .btn-brand-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

/* Mobile responsive fixes for Video Hero */
@media (max-width: 900px) {
  .brand-v2-hero-video-mask {
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.85) 60%, rgba(11, 15, 25, 0.7) 100%) !important;
  }
}

@media (max-width: 768px) {
  .brand-v2-hero-video-bg {
    display: none !important;
  }
  .brand-v2-hero.has-video {
    background-size: cover;
    background-position: center;
  }
}

/* Homepage jump navigation: restores non-linear browsing paths. */
.brand-v2-explore-nav {
  position: sticky;
  top: 72px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--color-brand-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand-v2-explore-nav .brand-v2-container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  overflow-x: auto;
  padding-block: 0.7rem;
}

.brand-v2-explore-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid #e3e7eb;
  border-radius: 999px;
  color: var(--color-brand-text-dark);
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.brand-v2-explore-nav a:last-child {
  background: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
  color: #ffffff;
}

.brand-v2-explore-nav a:hover {
  border-color: var(--color-brand-primary);
  color: var(--color-brand-primary);
}

.brand-v2-explore-nav a:last-child:hover {
  color: #ffffff;
  background: #600018;
}

/* Engineer PPT visual evidence wall. */
.ppt-asset-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.ppt-asset-wall figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-brand-border);
  border-radius: 0.55rem;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.ppt-asset-wall-featured {
  grid-column: span 2;
}

.ppt-asset-wall img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef1f4;
}

.ppt-asset-wall-featured img {
  aspect-ratio: 16 / 9;
}

.ppt-asset-wall figcaption {
  min-height: 4.5rem;
  padding: 0.75rem 0.85rem;
  color: var(--color-brand-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

.ppt-asset-wall figcaption span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-brand-primary);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .ppt-asset-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ppt-asset-wall {
    grid-template-columns: 1fr;
  }

  .ppt-asset-wall-featured {
    grid-column: span 1;
  }
}

/* B2B hub pages: line families, application routes and visual proof gallery. */
.b2b-hub-page {
  background: var(--color-brand-bg);
}

.b2b-hub-hero {
  padding-block: clamp(3rem, 2rem + 5vw, 5.75rem);
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
  border-bottom: 1px solid var(--color-brand-border);
}

.b2b-hub-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.b2b-hub-hero__proof,
.b2b-material-strip,
.b2b-gallery-hero__mosaic {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(88px, 1fr);
  gap: 0.75rem;
}

.b2b-hub-hero__proof img,
.b2b-material-strip img,
.b2b-gallery-hero__mosaic img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  border: 1px solid var(--color-brand-border);
  border-radius: 0.5rem;
  background: #eef1f4;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.b2b-hub-hero__proof img:first-child,
.b2b-material-strip img:first-child,
.b2b-gallery-hero__mosaic img:first-child {
  grid-column: span 4;
  grid-row: span 2;
}

.b2b-hub-hero__proof img:not(:first-child),
.b2b-material-strip img:not(:first-child),
.b2b-gallery-hero__mosaic img:not(:first-child) {
  grid-column: span 2;
}

.b2b-line-grid {
  display: grid;
  gap: 1.25rem;
}

.b2b-line-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid var(--color-brand-border);
  border-radius: 0.65rem;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.b2b-line-card__media,
.b2b-application-card__media {
  position: relative;
  display: block;
  min-height: 100%;
  overflow: hidden;
  background: #eef1f4;
}

.b2b-line-card__media img,
.b2b-application-card__media img,
.b2b-gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.b2b-line-card__media span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 2rem);
  padding: 0.45rem 0.65rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-brand-text-dark);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.35;
}

.b2b-line-card__body,
.b2b-application-card__body {
  padding: clamp(1.25rem, 2vw, 2rem);
}

.b2b-hub-kicker {
  margin: 0 0 0.55rem;
  color: var(--color-brand-primary);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.b2b-line-card h2,
.b2b-application-card h2,
.b2b-section-head h2 {
  margin: 0 0 1rem;
  color: var(--color-brand-text-dark);
  font-size: clamp(1.35rem, 1rem + 1vw, 2rem);
  line-height: 1.15;
}

.b2b-line-card h2 a,
.b2b-application-card h2 a {
  color: inherit;
  text-decoration: none;
}

.b2b-proof-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.b2b-proof-list.compact {
  grid-template-columns: 1fr;
}

.b2b-proof-list div {
  padding: 0.85rem;
  border: 1px solid #edf0f2;
  border-radius: 0.45rem;
  background: #fafbfc;
}

.b2b-proof-list span,
.b2b-response-box span,
.b2b-card-topline span,
.b2b-gallery-card span {
  display: block;
  margin-bottom: 0.35rem;
  color: #7a8592;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.b2b-proof-list p,
.b2b-response-box p,
.b2b-card-product {
  margin: 0;
  color: var(--color-brand-text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.b2b-response-box {
  margin: 1rem 0 1.25rem;
  padding: 0.95rem;
  border: 1px solid #ead8cf;
  border-radius: 0.5rem;
  background: #fff8f3;
}

.b2b-response-box span {
  color: var(--color-brand-primary);
}

.b2b-application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.b2b-application-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  min-height: 330px;
  border: 1px solid var(--color-brand-border);
  border-radius: 0.65rem;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.b2b-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.b2b-card-topline strong {
  color: var(--color-brand-primary);
  font-size: 0.75rem;
}

.b2b-text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.9rem;
  color: var(--color-brand-primary);
  font-size: 0.85rem;
  font-weight: 850;
  text-decoration: none;
}

.b2b-text-link::after {
  content: "→";
  margin-left: 0.4rem;
}

.b2b-section-head {
  max-width: 760px;
  margin-bottom: 1.75rem;
}

.b2b-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.b2b-gallery-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-brand-border);
  border-radius: 0.55rem;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}

.b2b-gallery-card.is-wide {
  grid-column: span 2;
}

.b2b-gallery-card img {
  aspect-ratio: 4 / 3;
  background: #eef1f4;
}

.b2b-gallery-card.is-wide img {
  aspect-ratio: 16 / 9;
}

.b2b-gallery-card figcaption {
  min-height: 6rem;
  padding: 0.8rem 0.9rem;
}

.b2b-gallery-card strong,
.b2b-gallery-card small {
  display: block;
  color: var(--color-brand-text-dark);
  font-size: 0.85rem;
  line-height: 1.45;
}

.b2b-gallery-card small {
  margin-top: 0.2rem;
  color: var(--color-brand-text-muted);
  font-size: 0.75rem;
}

@media (max-width: 1020px) {
  .b2b-hub-hero__grid,
  .b2b-line-card,
  .b2b-application-card {
    grid-template-columns: 1fr;
  }

  .b2b-line-card__media,
  .b2b-application-card__media {
    min-height: 280px;
  }

  .b2b-proof-list,
  .b2b-application-grid,
  .b2b-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .b2b-hub-hero__proof,
  .b2b-material-strip,
  .b2b-gallery-hero__mosaic,
  .b2b-proof-list,
  .b2b-application-grid,
  .b2b-gallery-grid {
    grid-template-columns: 1fr;
  }

  .b2b-hub-hero__proof img:first-child,
  .b2b-material-strip img:first-child,
  .b2b-gallery-hero__mosaic img:first-child,
  .b2b-hub-hero__proof img:not(:first-child),
  .b2b-material-strip img:not(:first-child),
  .b2b-gallery-hero__mosaic img:not(:first-child),
  .b2b-gallery-card.is-wide {
    grid-column: span 1;
  }
}

/* Product line detail master page: dense line route proof. */
.line-route-page {
  background: var(--color-brand-bg);
}

.line-route-hero {
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
  border-bottom: 1px solid var(--color-brand-border);
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

.line-route-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.line-route-hero__copy {
  max-width: 660px;
}

.line-route-hero__statement {
  margin: 0.75rem 0 1rem;
  color: var(--color-brand-text-dark);
  font-size: clamp(1.15rem, 1rem + 0.55vw, 1.55rem);
  font-weight: 850;
  line-height: 1.35;
}

.line-route-hero__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-brand-border);
  border-radius: 0.65rem;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.line-route-hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef1f4;
}

.line-route-hero__media figcaption {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--color-brand-border);
  color: var(--color-brand-text-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.line-route-section-head {
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.line-route-section-head h2 {
  margin: 0;
  color: var(--color-brand-text-dark);
  font-size: clamp(1.45rem, 1.1rem + 1vw, 2.2rem);
  line-height: 1.18;
}

.line-route-fit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.line-route-fit-card {
  min-height: 9.5rem;
  padding: 1rem;
  border: 1px solid var(--color-brand-border);
  border-radius: 0.55rem;
  background: #ffffff;
}

.line-route-fit-card.is-source {
  background: #fff8f3;
  border-color: #ead8cf;
}

.line-route-fit-card span,
.line-route-risk-card span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--color-brand-primary);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.line-route-fit-card p,
.line-route-risk-card p,
.line-route-step p,
.line-route-cta p {
  margin: 0;
  color: var(--color-brand-text-muted);
  font-size: 0.86rem;
  line-height: 1.58;
}

.line-route-risk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.line-route-risk-card {
  min-height: 14rem;
  padding: 1.25rem;
  border: 1px solid var(--color-brand-border);
  border-radius: 0.65rem;
  background: #ffffff;
}

.line-route-risk-card h3,
.line-route-step h3,
.line-route-cta h2 {
  margin: 0 0 0.65rem;
  color: var(--color-brand-text-dark);
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.28;
}

.line-route-step-list {
  display: grid;
  gap: 0.85rem;
}

.line-route-step {
  display: grid;
  grid-template-columns: 4rem minmax(0, 0.34fr) minmax(780px, 1.66fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--color-brand-border);
  border-radius: 0.65rem;
  background: #ffffff;
}

.line-route-step__number {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid #ead8cf;
  border-radius: 50%;
  background: #fff8f3;
  color: var(--color-brand-primary);
  font-size: 0.88rem;
  font-weight: 900;
}

.line-route-step img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--color-brand-border);
  border-radius: 0.45rem;
  background: #eef1f4;
}

.line-route-step .video-proof-container {
  width: 100%;
  min-height: 300px;
}

.line-route-step .video-proof-container.aspect-4-3 {
  aspect-ratio: 16 / 10;
}

.line-route-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.line-route-proof-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-brand-border);
  border-radius: 0.55rem;
  background: #ffffff;
}

.line-route-proof-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef1f4;
}

.line-route-proof-grid figcaption {
  min-height: 4.4rem;
  padding: 0.75rem 0.85rem;
  color: var(--color-brand-text-muted);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.45;
}

.line-route-cta {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
  background: #ffffff;
}

.line-route-cta__panel {
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 3rem);
  border: 1px solid #ead8cf;
  border-radius: 0.75rem;
  background: #fff8f3;
  text-align: center;
}

.line-route-cta p {
  max-width: 680px;
  margin: 0 auto 1.5rem;
}

@media (max-width: 1080px) {
  .line-route-hero__grid,
  .line-route-fit-grid,
  .line-route-risk-grid,
  .line-route-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .line-route-step {
    grid-template-columns: 3.5rem minmax(0, 1fr);
  }

  .line-route-step img {
    grid-column: 2;
    max-width: 280px;
  }
}

@media (max-width: 640px) {
  .line-route-hero__grid,
  .line-route-fit-grid,
  .line-route-risk-grid,
  .line-route-proof-grid,
  .line-route-step {
    grid-template-columns: 1fr;
  }

  .line-route-step img {
    grid-column: auto;
    max-width: none;
  }
}

/* Scroll margin for anchor targets to prevent sticky header overlap */
#Clam, #Iwash, #Blow, #Gbpackery, #Arrange, #Screw, #Printer, #Sticker, #DBcollet {
  scroll-margin-top: 130px !important;
}

/* Premium 9-Step Flow component styling */
.flowline-steps-section {
  max-width: 1280px;
  margin-inline: auto;
  width: 100%;
  padding-inline: 1.5rem;
  padding-block: clamp(4rem, 2rem + 8vw, 6rem);
  border-bottom: 1px solid var(--color-brand-border);
}

.flowline-steps-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.flowline-steps-title {
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.5rem);
  font-weight: 800;
  color: var(--color-brand-text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.flowline-steps-subtitle {
  font-size: 1rem;
  color: var(--color-brand-text-muted);
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.6;
}

.flowline-steps-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.flowline-step-card {
  background-color: var(--color-brand-card);
  border: 1px solid var(--color-brand-border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.flowline-step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(128, 0, 32, 0.06);
  border-color: var(--color-brand-primary);
}

.flowline-step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-brand-border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.flowline-step-card-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.flowline-step-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #fff8f3;
  border: 1px solid #ead8cf;
  color: var(--color-brand-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.flowline-step-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.flowline-step-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-brand-text-dark);
  margin: 0;
  line-height: 1.2;
}

.flowline-step-node-id {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--color-brand-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flowline-step-status {
  font-family: monospace;
  font-size: 0.75rem;
  color: #10b981;
  background-color: rgba(16, 185, 129, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.flowline-step-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.flowline-step-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.flowline-step-label {
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #5a626a;
  letter-spacing: 0.05em;
  font-family: monospace;
}

.flowline-step-value {
  font-size: 0.85rem;
  color: var(--color-brand-text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .flowline-step-details-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .flowline-step-card-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .flowline-step-status {
    align-self: flex-start;
  }
}

