/* Focused refinements: responsive hero, connected systems, and airy footer. */
.hero__picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* The symbols and connector SVG are separate so formal art can replace them later. */
.dragon-map {
  position: relative;
  isolation: isolate;
  min-height: 36rem;
  max-width: 64rem;
  margin-block: var(--space-5) var(--space-7);
}

.dragon-map__connections {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--color-gold-soft);
  stroke-width: 2;
}

.dragon-map__center::after,
.dragon-map__branches::before,
.dragon-map__branches .dragon-map__node::before {
  content: none;
}

.dragon-map__branches {
  display: contents;
  margin: 0;
}

.dragon-map__node,
.dragon-map__branches .dragon-map__node {
  position: absolute;
  display: flex;
  width: clamp(9.5rem, 18vw, 11.5rem);
  aspect-ratio: 1;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-3);
  border: 1px solid var(--dragon-color);
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: 0 0.5rem 1.8rem rgb(36 49 43 / 5%);
  transform: translate(-50%, -50%);
}

.dragon-map__center {
  top: 50%;
  left: 50%;
  z-index: 2;
  width: clamp(12.5rem, 21vw, 15rem);
  max-width: none;
  margin: 0;
  border-width: 2px;
  background: linear-gradient(160deg, #fff, #f8f3e5);
}

.dragon-map__branches .dragon-map__node:nth-child(1) { top: 24%; left: 23%; }
.dragon-map__branches .dragon-map__node:nth-child(2) { top: 24%; left: 77%; }
.dragon-map__branches .dragon-map__node:nth-child(3) { top: 76%; left: 23%; }
.dragon-map__branches .dragon-map__node:nth-child(4) { top: 76%; left: 77%; }

.dragon-map__symbol {
  display: block;
  width: 1.1rem;
  aspect-ratio: 1;
  margin-block-end: var(--space-1);
  border: 1px solid var(--dragon-color);
  border-radius: 50%;
  background: radial-gradient(circle, var(--dragon-color) 0 2px, transparent 2.5px);
}

.dragon-map__node strong {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  line-height: 1.4;
}

.dragon-map__node > span:last-child {
  max-width: 9em;
  font-size: 0.78rem;
  line-height: 1.5;
}

.cycle-diagram {
  margin-block-start: var(--space-6);
}

.cycle-diagram__paths {
  display: none;
}

.cycle-diagram__repeat {
  margin: var(--space-5) 0 0;
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-weight: 700;
  text-align: center;
}

.cycle-diagram__repeat::before {
  margin-inline-end: var(--space-2);
  content: "↻";
  font-size: 1.25em;
}

.cycle-diagram__steps li {
  position: relative;
  border-color: var(--color-primary);
  box-shadow: none;
}

.cycle-diagram__steps li:not(:last-child)::after {
  position: absolute;
  top: 100%;
  left: 50%;
  margin: 0;
  color: var(--color-primary);
  content: "↓";
  transform: translateX(-50%);
}

.site-footer {
  overflow: hidden;
  padding: var(--space-8) 0 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-canvas);
  color: var(--color-text);
}

.site-footer a {
  color: var(--color-primary-hover);
}

.site-footer :focus-visible {
  outline-color: var(--color-focus);
}

.site-footer__brand {
  background: transparent;
}

.site-footer__identity > p:first-of-type {
  color: var(--color-primary-hover);
  font-family: var(--font-serif);
  font-size: var(--font-size-lead);
}

.site-footer__company {
  color: var(--color-text-muted);
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  align-items: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.site-footer__social-label {
  color: var(--color-primary-hover);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.site-footer__meta {
  border-block-start-color: var(--color-border);
  color: var(--color-text-muted);
}

.site-footer__landscape {
  height: clamp(8rem, 20vw, 16rem);
  margin-block-start: var(--space-6);
  background: var(--color-canvas);
}

.site-footer__landscape::after {
  background: linear-gradient(180deg, var(--color-canvas) 0%, rgb(247 245 239 / 45%) 42%, transparent 100%);
}

.site-footer__landscape-image {
  opacity: 0.68;
  object-position: center 45%;
}

@media (min-width: 48rem) {
  .cycle-diagram {
    min-height: 36rem;
    max-width: 58rem;
  }

  .cycle-diagram__paths {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 2;
  }

  .cycle-diagram__paths marker path {
    fill: var(--color-primary);
    stroke: none;
  }

  .cycle-diagram__paths > path {
    marker-end: url(#cycle-arrow);
  }

  .cycle-diagram__center {
    width: clamp(11rem, 22vw, 15rem);
  }

  .cycle-diagram__steps {
    display: block;
    min-height: 36rem;
  }

  .cycle-diagram__steps li {
    position: absolute;
    display: flex;
    width: clamp(7.5rem, 15vw, 10rem);
    aspect-ratio: 1;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: var(--space-2);
    border-radius: 50%;
    background: var(--color-surface);
    text-align: center;
    transform: translate(-50%, -50%);
  }

  .cycle-diagram__steps li:nth-child(1) { top: 12%; left: 50%; }
  .cycle-diagram__steps li:nth-child(2) { top: 33%; left: 83%; }
  .cycle-diagram__steps li:nth-child(3) { top: 67%; left: 83%; }
  .cycle-diagram__steps li:nth-child(4) { top: 88%; left: 50%; }
  .cycle-diagram__steps li:nth-child(5) { top: 67%; left: 17%; }
  .cycle-diagram__steps li:nth-child(6) { top: 33%; left: 17%; }

  .cycle-diagram__steps li:not(:last-child)::after {
    content: none;
  }

  .cycle-diagram__repeat {
    position: absolute;
    right: 0;
    bottom: -2.5rem;
    left: 0;
    margin: 0;
  }
}

@media (max-width: 47.99rem) {
  .hero--photo {
    display: block;
    min-height: max(37rem, calc(100svh - 5.5rem));
  }

  .hero--photo::after {
    display: block;
    background: linear-gradient(180deg, rgb(247 245 239 / 70%) 0%, rgb(247 245 239 / 43%) 34%, transparent 51%, transparent 70%, rgb(247 245 239 / 88%) 100%);
  }

  .hero__media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }

  .hero__image {
    object-position: 50% 50%;
  }

  .hero--photo .hero__inner {
    display: flex;
    min-height: max(37rem, calc(100svh - 5.5rem));
    align-items: flex-start;
    padding-block: clamp(1.5rem, 5svh, 3rem) var(--space-5);
  }

  .hero--photo .hero__copy {
    display: flex;
    width: 100%;
    min-height: calc(max(37rem, 100svh - 5.5rem) - 4rem);
    flex-direction: column;
    align-items: flex-start;
  }

  .hero--photo .eyebrow {
    margin-block-end: var(--space-3);
    color: var(--color-primary-hover);
  }

  .hero--photo .hero__heading {
    max-width: 12em;
    margin-block-end: var(--space-3);
    font-size: clamp(1.85rem, 7.5vw, 2.6rem);
    line-height: 1.35;
  }

  .hero--photo .hero__copy .lead {
    max-width: 21rem;
    margin: 0;
    font-size: clamp(0.82rem, 3.3vw, 0.96rem);
    line-height: 1.7;
  }

  .hero__actions {
    margin-block-start: auto;
  }

  .hero__actions .button {
    min-height: 2.75rem;
  }

  .hero__image-note {
    right: var(--space-3);
    bottom: 6.5rem;
    left: auto;
    font-size: 0.65rem;
  }

  .dragon-map {
    min-height: 0;
    margin-block-end: var(--space-7);
  }

  .dragon-map__connections {
    display: none;
  }

  .dragon-map__center,
  .dragon-map__branches .dragon-map__node {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }

  .dragon-map__center {
    width: min(52vw, 13rem);
    margin-inline: auto;
  }

  .dragon-map__center::after {
    position: absolute;
    top: 100%;
    left: 50%;
    display: block;
    width: 1px;
    height: var(--space-7);
    background: var(--color-gold-soft);
    content: "";
  }

  .dragon-map__branches {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5) var(--space-2);
    justify-items: center;
    margin-block-start: var(--space-7);
  }

  .dragon-map__branches::before {
    position: absolute;
    top: calc(-1 * var(--space-4));
    right: 25%;
    left: 25%;
    display: block;
    height: 1px;
    background: var(--color-gold-soft);
    content: "";
  }

  .dragon-map__branches .dragon-map__node {
    width: min(41vw, 11rem);
    min-height: 0;
  }

  .dragon-map__branches .dragon-map__node:nth-child(n) {
    top: auto;
    left: auto;
  }

  .dragon-map__branches .dragon-map__node::before {
    position: absolute;
    top: calc(-1 * var(--space-4));
    left: 50%;
    display: block;
    width: 1px;
    height: var(--space-4);
    background: var(--color-gold-soft);
    content: "";
  }

  .cycle-diagram__steps {
    margin-block-start: var(--space-5);
  }

  .cycle-diagram__steps li {
    border-radius: var(--radius-md);
  }
}

@media (max-width: 24rem) {
  .hero--photo .hero__heading {
    font-size: 1.7rem;
  }

  .hero__actions {
    gap: var(--space-2);
  }
}
