/* ==================================================
   NEW LANDS
================================================== */

.lands-container {
  width: min(100% - 40px, 1050px);
  margin: 0 auto;
}


/* ==================================================
   HERO
================================================== */

.lands-hero {
  padding: 110px 0 90px;

  text-align: center;
}

.page-label {
  margin: 0 0 15px;

  color: var(--accent);

  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;

  text-align: center;
}

.lands-hero .page-label {
  position: relative;
  z-index: 1;

  display: inline-block;
}

.lands-hero .page-label::before {
  content: "";

  position: absolute;
  z-index: -1;

  top: 50%;
  left: -12px;

  width: 29px;
  height: 29px;

  border-radius: 50%;

  background: white;

  transform: translateY(-50%);
}

.lands-hero h1 {
  margin: 0;

  font-family: "Oswald", sans-serif;

  font-size: clamp(4.5rem, 10vw, 7rem);
  font-weight: 600;
  line-height: 1;

  color: var(--text);
}

.lands-description {
  max-width: 750px;

  margin: 30px auto 0;
  padding-left: 25px;

  border-left: 2px solid var(--accent);

  color: var(--text-muted);

  font-size: 1.15rem;
  line-height: 1.8;

  text-align: left;
}


/* ==================================================
   SECTION HEADINGS
================================================== */

.algorithm-section {
  padding: 50px 0 90px;
}

.project-section {
  padding: 30px 0 120px;
}

.section-heading {
  max-width: 760px;

  margin: 0 auto 50px;

  text-align: center;
}

.section-heading h2 {
  margin: 0;

  font-family: "Oswald", sans-serif;

  font-size: clamp(3rem, 6vw, 4.5rem);

  color: var(--text);
}

.section-heading > p:last-child {
  margin: 20px auto 0;

  color: var(--text-muted);

  font-size: 1.05rem;
  line-height: 1.75;
}


/* ==================================================
   ALGORITHM STEPS
================================================== */

.step-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 20px;
}

.step-card {
  min-height: 250px;

  padding: 28px;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: 12px;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.step-card:hover {
  transform: translateY(-5px);

  border-color: rgba(230, 57, 70, 0.55);
}

.step-number {
  display: block;

  margin-bottom: 24px;

  color: var(--accent);

  font-family: "Oswald", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
}

.step-card h3 {
  margin: 0 0 12px;

  font-family: "Oswald", sans-serif;

  font-size: 1.65rem;
}

.step-card p {
  margin: 0;

  color: var(--text-muted);

  line-height: 1.7;
}

.result-callout {
  display: grid;

  grid-template-columns: auto 1fr;
  align-items: center;

  gap: 24px;

  margin-top: 20px;
  padding: 30px;

  background:
    linear-gradient(
      110deg,
      rgba(230, 57, 70, 0.13),
      rgba(23, 23, 28, 0.9) 45%
    );

  border: 1px solid rgba(230, 57, 70, 0.28);
  border-radius: 12px;
}

.result-icon {
  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--accent);

  color: white;
}

.result-callout .page-label {
  margin-bottom: 5px;

  text-align: left;
}

.result-callout h3 {
  margin: 0 0 5px;

  font-size: 1.6rem;
}

.result-callout p:last-child {
  margin: 0;
}


/* ==================================================
   EMBEDDED PROJECT
================================================== */

.project-frame-card {
  overflow: hidden;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: 12px;
}

.project-frame-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  padding: 28px 30px;

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

.project-type {
  margin: 0 0 6px;

  color: var(--accent);

  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2px;
}

.project-frame-heading h3 {
  margin: 0;

  font-size: 1.8rem;
}

.open-project {
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  padding: 11px 17px;

  border: 1px solid var(--border);
  border-radius: 6px;

  color: var(--text);

  font-size: 0.9rem;
  font-weight: 600;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.open-project:hover {
  transform: translateY(-2px);

  background: var(--accent);

  border-color: var(--accent);

  color: white;
}

.project-frame-wrap {
  min-height: 600px;

  background: #101014;
}

.project-frame-wrap iframe {
  display: block;

  width: 100%;
  height: 650px;

  border: 0;
}


/* ==================================================
   ACTIVE NAV LINK
================================================== */

nav ul li a.active {
  color: var(--text);
}

nav ul li a.active::after {
  width: 100%;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media screen and (max-width: 850px) {

  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media screen and (max-width: 700px) {

  .lands-hero {
    padding: 80px 0 60px;
  }

  .lands-hero h1 {
    font-size: clamp(4rem, 18vw, 6rem);
  }

  .lands-description {
    padding-left: 20px;

    font-size: 1rem;
  }

  .algorithm-section {
    padding-top: 30px;
  }

  .step-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: 0;

    padding: 25px;
  }

  .result-callout {
    grid-template-columns: 1fr;

    padding: 25px;
  }

  .project-frame-heading {
    align-items: flex-start;
    flex-direction: column;

    padding: 25px;
  }

  .project-frame-wrap,
  .project-frame-wrap iframe {
    min-height: 520px;
    height: 520px;
  }

}
