/* =========================================================
   LAYOUT B — Sticky Scroll
   Used for: Data Management, Software Architecture
   ========================================================= */

/* Hero */
.layout-b-hero {
  padding: 6rem 0 4rem;
  background: var(--surface);
  border-bottom: 1px solid var(--color-gray-200);
}

.layout-b-hero .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
}

.layout-b-hero h1 {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  line-height: 0.95;
  font-weight: 900;
  color: var(--color-gray-900);
  letter-spacing: -0.05em;
}

.layout-b-hero .lead {
  font-size: 1.25rem;
  color: var(--color-gray-600);
  max-width: 700px;
  border-left: 4px solid var(--color-purple);
  padding-left: 1.5rem;
}

/* Sticky Section */
.sticky-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  padding: 5rem 0;
}

.sticky-sidebar {
  flex: 0 0 350px;
  position: sticky;
  top: 100px; /* Offset for header */
}

.sticky-sidebar h2 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.sticky-sidebar p {
  color: var(--color-gray-600);
  margin-bottom: 2rem;
}

/* Code/Abstract visual generated with CSS */
.css-art-frame {
  background: #111;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  font-family: monospace;
  color: var(--color-mint);
  position: relative;
  overflow: hidden;
}

.css-art-frame::before {
  content: "● ● ●";
  color: #555;
  display: block;
  font-size: 0.6rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.sticky-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.scroll-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}

.scroll-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.scroll-card-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-purple-light);
  color: var(--color-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
}

.scroll-card h3 {
  font-size: 1.8rem;
  margin: 0;
}

@media (max-width: 900px) {
  .sticky-wrapper {
    flex-direction: column;
    gap: 2rem;
  }
  .sticky-sidebar {
    position: static;
    flex: auto;
  }
}
