/* =========================================================
   Home Page (F-F-F + Scale)
   High-impact stage system, minimal visual language.
   ========================================================= */

.wwrof-home {
  width: min(100%, var(--wwrof-content-max, 1152px));
  margin: 0 auto;
  padding: clamp(12px, 2.2vw, 24px) var(--wwrof-gutter, 24px) clamp(56px, 8vw, 92px);
}

.wwrof-home .wwrof-home__section {
  margin-top: clamp(38px, 5.5vw, 72px);
}

.wwrof-home .wwrof-home__section:first-child {
  margin-top: 0;
}

.wwrof-home .wwrof-home__label,
.wwrof-home .wwrof-home__eyebrow {
  margin: 0 0 10px;
  color: var(--wwrof-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wwrof-home h1,
.wwrof-home h2,
.wwrof-home h3 {
  letter-spacing: -0.015em;
}

.wwrof-home .wwrof-home__hero {
  margin-top: 0;
  padding: clamp(14px, 3vw, 30px) 0;
  text-align: center;
}

.wwrof-home .wwrof-home__hero h1 {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.wwrof-home .wwrof-home__hero .wwrof-home__subhead {
  margin: 16px auto 0;
  max-width: 72ch;
  color: var(--wwrof-text-soft);
  font-size: clamp(1.01rem, 1.3vw, 1.14rem);
  line-height: 1.58;
}

.wwrof-home .wwrof-home__actions {
  margin-top: 24px;
  gap: 10px;
}

.wwrof-home .wwrof-home__proof {
  margin-top: clamp(20px, 3vw, 34px);
}

.wwrof-home .wwrof-home__proof-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 28px;
}

.wwrof-home .wwrof-home__proof-item {
  margin: 0;
  padding: 0;
}

.wwrof-home .wwrof-home__proof-title {
  margin: 0;
  color: var(--wwrof-text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.wwrof-home .wwrof-home__proof-copy {
  margin: 7px 0 0;
  color: var(--wwrof-text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.wwrof-home .wwrof-home__section h2 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  line-height: 1.1;
}

.wwrof-home .wwrof-home__section > p {
  margin-top: 14px;
  max-width: 74ch;
  color: var(--wwrof-text-soft);
  font-size: clamp(1rem, 1.03vw, 1.06rem);
  line-height: 1.6;
}

/* F sections: centered intro rail, wide stage content below. */
.wwrof-home .wwrof-home__foundation > .wwrof-home__label,
.wwrof-home .wwrof-home__framework > .wwrof-home__label,
.wwrof-home .wwrof-home__future > .wwrof-home__label,
.wwrof-home .wwrof-home__foundation > h2,
.wwrof-home .wwrof-home__framework > h2,
.wwrof-home .wwrof-home__future > h2,
.wwrof-home .wwrof-home__foundation > p,
.wwrof-home .wwrof-home__framework > p,
.wwrof-home .wwrof-home__future > p {
  width: min(100%, 760px);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.wwrof-home .wwrof-home__scale > .wwrof-home__label,
.wwrof-home .wwrof-home__scale > h2,
.wwrof-home .wwrof-home__scale > p,
.wwrof-home .wwrof-home__paths > h2,
.wwrof-home .wwrof-home__latest > h2 {
  width: min(100%, 760px);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.wwrof-home .wwrof-home__foundation > h2,
.wwrof-home .wwrof-home__framework > h2,
.wwrof-home .wwrof-home__future > h2,
.wwrof-home .wwrof-home__scale > h2,
.wwrof-home .wwrof-home__paths > h2,
.wwrof-home .wwrof-home__latest > h2 {
  max-width: 20ch;
}

.wwrof-home .wwrof-home__rule {
  margin-top: 14px;
  border: 0;
  border-top: 1px solid var(--wwrof-border);
}

.wwrof-home .wwrof-home__grid {
  display: grid;
  gap: 14px 28px;
  margin-top: 16px;
}

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

.wwrof-home .wwrof-home__grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wwrof-home .wwrof-home__grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wwrof-home .wwrof-home__grid--5 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wwrof-home .wwrof-home__future .wwrof-home__grid--5 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wwrof-home .wwrof-home__grid > .wwrof-home__node {
  margin-block-start: 0 !important;
}

.wwrof-home .wwrof-home__node {
  min-width: 0;
  padding-top: 0;
}

.wwrof-home .wwrof-home__node > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.wwrof-home .wwrof-home__node > * + * {
  margin-top: 8px !important;
}

.wwrof-home .wwrof-home__node h3 {
  margin: 0;
  font-size: clamp(1.06rem, 1.4vw, 1.28rem);
  line-height: 1.25;
}

.wwrof-home .wwrof-home__node p {
  margin: 0;
  color: var(--wwrof-text-soft);
  font-size: 0.95rem;
  line-height: 1.52;
}

.wwrof-home .wwrof-home__values-map {
  margin-top: 16px;
  border-top: 1px solid var(--wwrof-border);
  padding-top: 12px;
}

/* Hide duplicated values heading row; keep mapped 2x2 value/action nodes only. */
.wwrof-home .wwrof-home__framework .wwrof-home__values-map {
  display: none;
}

.wwrof-home .wwrof-home__values-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 24px;
}

.wwrof-home .wwrof-home__values-item {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wwrof-text);
}

.wwrof-home .wwrof-home__scale-grid .wwrof-home__metric {
  border-top: 0;
  padding-top: 0;
}

.wwrof-home .wwrof-home__scale-grid > .wwrof-home__metric {
  margin-block-start: 0 !important;
}

.wwrof-home .wwrof-home__metric > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.wwrof-home .wwrof-home__metric > * + * {
  margin-top: 6px !important;
}

.wwrof-home .wwrof-home__metric-value {
  margin: 0;
  color: var(--wwrof-text);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.1;
  font-weight: 700;
}

.wwrof-home .wwrof-home__metric-label {
  margin: 6px 0 0;
  color: var(--wwrof-text-soft);
  font-size: 0.9rem;
  line-height: 1.4;
}

.wwrof-home .wwrof-home__paths .wwrof-home__node h3,
.wwrof-home .wwrof-home__latest .wwrof-home__node h3 {
  font-size: clamp(1.02rem, 1.22vw, 1.18rem);
}

.wwrof-home .wwrof-home__paths .wwrof-home__node p,
.wwrof-home .wwrof-home__latest .wwrof-home__node p {
  font-size: 0.94rem;
}

.wwrof-home .wwrof-home__paths .wwrof-home__node,
.wwrof-home .wwrof-home__paths .wwrof-home__node h3,
.wwrof-home .wwrof-home__paths .wwrof-home__node p {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.wwrof-home .wwrof-home__final-cta {
  padding-top: 12px;
  border-top: 1px solid var(--wwrof-border);
}

.wwrof-home .wwrof-home__final-cta h2 {
  max-width: 16ch;
}

/* Section tertiary links (e.g., Learn more / Explore all / View all). */
.wwrof-home .wwrof-home__foundation > p:last-child a,
.wwrof-home .wwrof-home__framework > p:last-child a,
.wwrof-home .wwrof-home__future > p:last-child a,
.wwrof-home .wwrof-home__scale > p:last-child a,
.wwrof-home .wwrof-home__paths > p:last-child a,
.wwrof-home .wwrof-home__latest > p:last-child a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--wwrof-text-soft);
}

.wwrof-home a:not(.wp-block-button__link) {
  position: relative;
  display: inline-block;
  text-decoration: none;
  padding-bottom: 3px;
  line-height: 1.2;
  color: var(--wwrof-text);
  font-weight: 600;
}

.wwrof-home a:not(.wp-block-button__link)::before {
  content: none;
}

.wwrof-home a:not(.wp-block-button__link)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--wwrof-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.16s ease;
}

.wwrof-home a:not(.wp-block-button__link):hover::after,
.wwrof-home a:not(.wp-block-button__link):focus-visible::after {
  transform: scaleX(1);
}

.wwrof-home a:not(.wp-block-button__link):focus-visible {
  outline: 2px solid var(--wwrof-focus);
  outline-offset: 3px;
}

/* Optional explicit class (same as default for now). */
.wwrof-home a.wwrof-link--weight:not(.wp-block-button__link) {
  color: var(--wwrof-text);
  font-weight: 600;
}

.wwrof-home a.wwrof-link--weight:not(.wp-block-button__link)::before {
  content: none;
}

@media (max-width: 1152px) {
  .wwrof-home .wwrof-home__grid--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wwrof-home .wwrof-home__grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 922px) {
  .wwrof-home {
    padding-bottom: 72px;
  }

  .wwrof-home .wwrof-home__proof-list,
  .wwrof-home .wwrof-home__values-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wwrof-home .wwrof-home__grid--3,
  .wwrof-home .wwrof-home__grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wwrof-home .wwrof-home__future .wwrof-home__grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wwrof-home {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wwrof-home .wwrof-home__hero {
    text-align: center;
    padding-top: 8px;
    padding-bottom: 12px;
  }

  .wwrof-home .wwrof-home__hero .wwrof-home__eyebrow,
  .wwrof-home .wwrof-home__hero h1,
  .wwrof-home .wwrof-home__hero .wwrof-home__subhead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .wwrof-home .wwrof-home__hero .wwrof-home__subhead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .wwrof-home .wwrof-home__actions {
    justify-content: center;
  }

  /* In single-column mode, non-hero section intros shift fully left. */
  .wwrof-home .wwrof-home__section:not(.wwrof-home__hero) > .wwrof-home__label,
  .wwrof-home .wwrof-home__section:not(.wwrof-home__hero) > h2,
  .wwrof-home .wwrof-home__section:not(.wwrof-home__hero) > p {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left !important;
  }

  .wwrof-home .wwrof-home__proof-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
  }

  .wwrof-home .wwrof-home__values-list,
  .wwrof-home .wwrof-home__grid--2,
  .wwrof-home .wwrof-home__grid--3,
  .wwrof-home .wwrof-home__grid--4,
  .wwrof-home .wwrof-home__grid--5 {
    grid-template-columns: 1fr;
  }

  /* When stacked, node content should snap fully left (no centered drift). */
  .wwrof-home .wwrof-home__grid .wwrof-home__node,
  .wwrof-home .wwrof-home__grid .wwrof-home__node h3,
  .wwrof-home .wwrof-home__grid .wwrof-home__node p {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    max-width: none;
  }

  .wwrof-home .wwrof-home__section > p,
  .wwrof-home .wwrof-home__node p {
    font-size: 0.98rem;
  }

  .wwrof-home .wwrof-home__section > p {
    max-width: none;
  }
}
