/* Homepage architecture refinements */

.homepage-hero-reworked {
  min-height: 720px;
  align-items: center;
}

.hero-sketch-picture {
  display: grid;
  place-items: center;
}

.hero-sketch-picture svg,
.future-callout-art svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-sketch-picture svg path,
.hero-sketch-picture svg rect,
.hero-sketch-picture svg circle,
.future-callout-art svg path,
.future-callout-art svg rect,
.future-callout-art svg circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-sketch-picture svg {
  animation: sketchFloat 8s ease-in-out infinite;
}

@keyframes sketchFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.approach-section {
  padding-top: clamp(90px, 11vw, 150px);
  padding-bottom: clamp(90px, 11vw, 150px);
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: clamp(35px, 8vw, 130px);
  align-items: end;
}

.approach-intro {
  max-width: 430px;
  margin: 0 0 8px auto;
}

.approach-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 58px 0 44px;
  border-top: 1px solid var(--rule);
  border-left: 0;
}

.approach-flow::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 1.4s cubic-bezier(.2,.7,.2,1);
}

.approach-flow.is-active::before {
  width: 100%;
}

/* Minimalist process layout. The visual emphasis comes from the icon, not a box. */
.approach-step {
  position: relative;
  min-height: 250px;
  padding: 18px 24px 24px 0;
  margin-right: 24px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: transparent;
  transition: color .45s ease, border-color .45s ease;
}

.approach-step:last-child {
  margin-right: 0;
}

.approach-step::before {
  content: "";
  width: 64px;
  height: 64px;
  margin: 18px 0 28px;
  border: 1px solid rgba(212,173,104,.42);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(246,240,229,.58);
  font-family: "DM Sans", sans-serif;
  font-size: 27px;
  line-height: 1;
  transition: color .45s ease, border-color .45s ease, background .45s ease, box-shadow .45s ease, transform .45s ease;
}

.approach-step:nth-child(1)::before { content: "▤"; }
.approach-step:nth-child(2)::before { content: "⌁"; }
.approach-step:nth-child(3)::before { content: "⌕"; }
.approach-step:nth-child(4)::before { content: "◌"; }
.approach-step:nth-child(5)::before { content: "✓"; }

.approach-step::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .65s cubic-bezier(.2,.7,.2,1);
}

.approach-step.is-highlighted {
  background: transparent;
}

.approach-step.is-highlighted::before {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(212,173,104,.09);
  box-shadow: 0 0 0 8px rgba(212,173,104,.035), 0 0 28px rgba(212,173,104,.12);
  transform: translateY(-3px);
}

.approach-step.is-highlighted::after {
  transform: scaleX(1);
}

.approach-step b {
  order: -1;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .16em;
}

.approach-step h3 {
  margin: 0 0 10px;
  font-size: clamp(25px, 2.5vw, 38px);
}

.approach-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 190px;
}

.tool-card-grid {
  gap: 18px;
}

.tool-card {
  min-height: 390px;
  border-radius: 18px;
  padding: 28px 22px 30px;
}

.tool-card h3 {
  font-size: clamp(28px, 2.6vw, 43px);
}

.tool-card p {
  font-size: 15px;
}

.tool-icon {
  width: 112px;
  height: 112px;
  margin-bottom: 34px;
}

.tool-icon svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-arrow {
  display: none;
}

.future-callout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr);
  gap: clamp(30px, 7vw, 100px);
  align-items: center;
  overflow: hidden;
  padding-right: clamp(35px, 8vw, 130px);
}

.future-callout-copy {
  position: relative;
  z-index: 1;
}

.future-callout-copy h2 {
  font-size: clamp(44px, 6vw, 88px);
  max-width: 720px;
}

.future-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

.future-actions .button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.future-callout-art {
  position: relative;
  min-width: 0;
  opacity: .96;
}

.future-callout-art::before,
.future-callout-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(212,173,104,.26);
  border-radius: 50%;
  pointer-events: none;
}

.future-callout-art::before {
  width: 240px;
  height: 240px;
  top: 12%;
  left: 17%;
}

.future-callout-art::after {
  width: 340px;
  height: 340px;
  top: -1%;
  left: 3%;
}

.future-callout-art svg {
  position: relative;
  z-index: 1;
  animation: sketchFloat 9s ease-in-out infinite;
}

/* Mobile-first footer alignment */
footer {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 36px 56px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer-brand p {
  max-width: 230px;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 12px 24px;
  line-height: 1.5;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.footer-bottom small {
  max-width: 430px;
  line-height: 1.6;
}

.footer-bottom em {
  max-width: 90px;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .approach-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .approach-step {
    min-height: 205px;
    margin-right: 18px;
  }

  .future-callout {
    grid-template-columns: 1fr;
    padding-right: clamp(24px, 5vw, 55px);
  }

  .future-callout-art {
    max-width: 420px;
    margin: -35px auto 0;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links:last-of-type {
    justify-content: flex-start;
  }
}

@media (max-width: 800px) {
  .homepage-hero-reworked,
  .section-heading-row {
    grid-template-columns: 1fr;
  }

  .homepage-hero-reworked {
    min-height: auto;
  }

  .hero-sketch-picture {
    max-width: 450px;
    margin: 0 auto;
  }

  .approach-intro {
    margin: 0;
  }

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

  .approach-step {
    margin-right: 20px;
  }

  footer {
    gap: 30px 24px;
  }
}

@media (max-width: 520px) {
  .approach-flow {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .approach-step,
  .approach-step:last-child {
    min-height: 0;
    margin-right: 0;
    padding: 18px 0 22px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-areas:
      "number icon"
      "number title"
      "number text";
    column-gap: 18px;
    align-items: center;
  }

  .approach-step b {
    grid-area: number;
    align-self: start;
    padding-top: 7px;
  }

  .approach-step::before {
    grid-area: icon;
    width: 48px;
    height: 48px;
    margin: 0 0 12px;
    font-size: 23px;
  }

  .approach-step h3 {
    grid-area: title;
    margin: 0 0 5px;
  }

  .approach-step p {
    grid-area: text;
    max-width: none;
  }

  .tool-card {
    min-height: 315px;
  }

  .future-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .future-actions .button {
    width: 100%;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand p {
    max-width: 280px;
  }

  .footer-links {
    gap: 10px 20px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-bottom em {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sketch-picture svg,
  .future-callout-art svg {
    animation: none;
  }
}
