.bachelor-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}


/* HERO */

.bachelor-hero {
  min-height: clamp(600px, 68vh, 760px);

  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  align-items: end;
  gap: 6rem;

  padding: 8rem 0 6rem;

  border-bottom: 1px solid var(--border);
}

.back-link {
  display: inline-block;
  margin-bottom: 5rem;

  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--text);
}

.bachelor-label {
  margin: 0 0 1.5rem;

  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bachelor-title {
  margin: 0;

  font-size: clamp(4.5rem, 11vw, 9rem);
  line-height: 0.8;
  letter-spacing: -0.065em;
}

.bachelor-intro {
  max-width: 760px;
  margin: 3rem 0 0;

  color: var(--text-muted);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.5;
}

.bachelor-meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  padding-bottom: 0.5rem;
}

.bachelor-meta div {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.bachelor-meta span,
.bachelor-meta strong {
  display: block;
}

.bachelor-meta span {
  margin-bottom: 0.45rem;

  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bachelor-meta strong {
  font-size: 0.9rem;
  font-weight: 600;
}


/* SHARED SECTION LABELS */

.story-heading > span,
.system-heading > span,
.contribution-heading > span,
.technology-heading > span,
.lesson-heading > span {
  display: block;
  margin-bottom: 2rem;

  color: var(--accent);
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* PROBLEM */

.story-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 7rem;

  padding: 9rem 0;

  border-bottom: 1px solid var(--border);
}

.story-heading h2 {
  margin: 0;

  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.story-copy {
  max-width: 650px;
  padding-top: 2.5rem;
}

.story-copy p,
.lesson-copy p {
  margin: 0;

  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.85;
}

.story-copy p + p,
.lesson-copy p + p {
  margin-top: 2rem;
}


/* SYSTEM */

.system-section {
  padding: 10rem 0;

  border-bottom: 1px solid var(--border);
}

.system-heading {
  max-width: 760px;
}

.system-heading h2 {
  margin: 0;

  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.system-heading p {
  max-width: 600px;
  margin: 2.5rem 0 0;

  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.system-flow {
  display: grid;
  grid-template-columns:
    minmax(150px, 1fr)
    60px
    minmax(150px, 1fr)
    60px
    minmax(150px, 1fr)
    60px
    minmax(150px, 1fr);

  align-items: center;

  margin-top: 7rem;
}

.system-node {
  min-height: 190px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 1.5rem;

  border: 1px solid var(--border);
  border-radius: 1.5rem;

  background: rgba(255, 255, 255, 0.015);
}

.system-node-accent {
  border-color: rgba(138, 180, 248, 0.4);
  background: rgba(138, 180, 248, 0.055);
}

.system-node-alert {
  border-color: rgba(255, 130, 130, 0.25);
}

.node-number {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.7rem;
}

.system-node strong {
  display: block;
  margin-bottom: 0.5rem;

  font-size: 1.05rem;
}

.system-node p {
  margin: 0;

  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.system-connector {
  height: 1px;

  overflow: hidden;

  background: var(--border);
}

.system-connector span {
  display: block;

  width: 35%;
  height: 100%;

  background: var(--accent);

  animation: heartbeat-travel 2.4s linear infinite;
}

.system-connector-alert span {
  background: rgba(255, 130, 130, 0.8);
  animation-delay: 1.2s;
}

@keyframes heartbeat-travel {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(400%);
  }
}


/* CONTRIBUTION */

.contribution-section {
  padding: 10rem 0;

  border-bottom: 1px solid var(--border);
}

.contribution-heading {
  max-width: 820px;
}

.contribution-heading h2 {
  margin: 0;

  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.contribution-heading p {
  max-width: 600px;
  margin: 2.5rem 0 0;

  color: var(--text-muted);
  line-height: 1.75;
}

.contribution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  margin-top: 6rem;

  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.contribution-grid article {
  min-height: 280px;

  padding: 2rem;

  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contribution-grid article > span {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.7rem;
}

.contribution-grid h3 {
  margin: 4rem 0 1rem;

  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.contribution-grid p {
  max-width: 440px;
  margin: 0;

  color: var(--text-muted);
  line-height: 1.7;
}


/* TECHNOLOGY */

.technology-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 7rem;

  padding: 10rem 0;

  border-bottom: 1px solid var(--border);
}

.technology-heading h2 {
  margin: 0;

  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.technology-list {
  border-top: 1px solid var(--border);
}

.technology-list > div {
  display: grid;
  grid-template-columns: 100px 180px 1fr;
  gap: 1.5rem;

  padding: 1.5rem 0;

  border-bottom: 1px solid var(--border);
}

.technology-list span {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.technology-list strong {
  font-size: 0.95rem;
}

.technology-list p {
  margin: 0;

  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}


/* LESSON */

.lesson-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 7rem;

  padding: 10rem 0;

  border-bottom: 1px solid var(--border);
}

.lesson-heading h2 {
  margin: 0;

  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.lesson-copy {
  max-width: 650px;
  padding-top: 2.5rem;
}


/* CLOSING */

.bachelor-closing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;

  padding: 5rem 0 7rem;
}

.bachelor-closing > span {
  color: var(--accent);

  font-family: monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bachelor-closing p {
  margin: 0;

  color: var(--text-muted);
}
.bachelor-closing-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.bachelor-closing-copy a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.bachelor-closing-copy a span {
  color: var(--accent);
}

.bachelor-closing-copy a:hover {
  color: var(--accent);
}

/* MOBILE */

@media (max-width: 700px) {
  .bachelor-page {
    padding: 0 1.25rem;
  }
  .bachelor-closing-copy {
    align-items: flex-start;
    gap: 1.25rem;
  }

  .bachelor-hero {
    min-height: auto;

    grid-template-columns: 1fr;
    gap: 4rem;

    padding: 5rem 0;
  }

  .back-link {
    margin-bottom: 4rem;
  }

  .bachelor-title {
    font-size: clamp(4rem, 21vw, 7rem);
  }

  .story-section,
  .technology-section,
  .lesson-section {
    grid-template-columns: 1fr;
    gap: 3rem;

    padding: 6rem 0;
  }

  .story-copy,
  .lesson-copy {
    padding-top: 0;
  }

  .system-section,
  .contribution-section {
    padding: 6rem 0;
  }

  .system-flow {
    grid-template-columns: 1fr;

    margin-top: 4rem;
  }

  .system-node {
    min-height: 160px;
  }

  .system-connector {
    width: 1px;
    height: 55px;

    margin-left: 2rem;
  }

  .system-connector span {
    width: 100%;
    height: 35%;

    animation-name: heartbeat-travel-mobile;
  }

  @keyframes heartbeat-travel-mobile {
    from {
      transform: translateY(-100%);
    }

    to {
      transform: translateY(400%);
    }
  }

  .contribution-grid {
    grid-template-columns: 1fr;
    margin-top: 4rem;
  }

  .contribution-grid article {
    min-height: auto;
  }

  .contribution-grid h3 {
    margin-top: 3rem;
  }

  .technology-list > div {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .bachelor-closing {
    align-items: flex-start;
    flex-direction: column;

    padding: 4rem 0 6rem;
  }
}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  .system-connector span {
    animation: none;
    width: 100%;
    opacity: 0.5;
  }

  @media (max-width: 700px) {
    .system-connector span {
      width: 100%;
      height: 100%;
    }
  }
}
