/* Home page: header, cost rose, statement. */
.home { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main.col {
  flex: 1; width: 100%; max-width: var(--column); margin: 0 auto;
  padding: var(--sp-4) var(--sp-5) var(--sp-7);
  display: flex; flex-direction: column; justify-content: center; gap: var(--sp-3);
}

/* the figure is wider than the column: the fan's petal span (240 of its 430
   viewBox units) meets the text column edges when the width cap binds */
#figwrap {
  position: relative;
  flex: 1 1 0; min-height: 180px; max-height: 530px;
  width: min(calc(100vw - 40px), 1430px);
  margin-left: 50%; transform: translateX(-50%);
  display: flex; justify-content: center; overflow: hidden;
}
#fig { height: 100%; display: flex; justify-content: center; }
#fig svg { height: 100%; width: auto; max-width: 100%; display: block; overflow: visible; }   /* the canvas hugs the resting rose; the outer band may reach past it while it shrinks in */

.blurb { flex-shrink: 0; padding-top: var(--sp-3); }
.blurb h1 { font-size: 1.7rem; line-height: 1.1; text-wrap: balance; }
.blurb h1 .nowrap { white-space: nowrap; }
.blurb p { margin: 0 0 var(--sp-3); font-size: 13.5px; line-height: 1.55; }
.blurb .inline-more {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
  text-underline-offset: 3px;
}
.blurb .inline-more span { text-decoration: none; display: inline-block; margin-left: var(--sp-2); }


/* desktop: the text column beside the fan rose; the extra page width all goes
   to the figure. Below 1200px the stacked fan layout holds — a fixed text
   column would starve the half rose, which needs twice a circle's width. */
@media (min-width: 1200px) {
  main.col {
    max-width: 1430px;
    display: grid; grid-template-columns: 480px 1fr;
    grid-template-rows: 1fr; align-items: center; column-gap: var(--sp-11);
  }
  .blurb { grid-column: 1; grid-row: 1; padding-top: 0; }
  #figwrap {
    grid-column: 2; grid-row: 1; flex: none;
    width: 100%; margin-left: 0; transform: none;
    max-height: none; min-height: 0; display: block;
  }
  #fig { display: block; height: auto; width: 100%; }
  /* as large as the column allows, but never taller than the viewport leaves for it */
  #fig svg { width: 100%; height: auto; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); margin: 0 auto; }
}

/* phones: the rose is a full circle at nearly the full width */
@media (max-width: 640px) {
  body { overflow-x: hidden; }
  main.col { justify-content: flex-start; padding: var(--sp-3) var(--sp-4); gap: var(--sp-4); }
  #figwrap { flex: none; min-height: 0; max-height: none; display: block; width: calc(100vw - 8px); }
  #fig { display: block; height: auto; width: 100%; }
  #fig svg { display: block; width: 100%; height: auto; }
  .blurb h1 { font-size: 1.6rem; }
}
