.function-redesign {
  color: #211f24;
  display: block;
  min-width: 0;
  min-height: 100%;
  overflow-x: clip;
  overflow-y: visible;
}

#top,
#changes,
#audience {
  scroll-margin-top: 5.375rem;
}

@media (prefers-reduced-motion: reduce) {
  .function-redesign,
  .function-redesign *,
  .function-redesign *::before,
  .function-redesign *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.function-redesign,
.function-redesign * {
  box-sizing: border-box;
}

.function-redesign {
  position: relative;
  width: 100%;
  color: #211f24;
  background: #fffdfa;
  font-family: "Source Han Sans CN", sans-serif;
  background: #f8f5f4;
  overflow-x: clip;
  overflow-y: visible;
}

.function-redesign h1,
.function-redesign h2,
.function-redesign h3,
.function-redesign p {
  margin: 0;
  letter-spacing: 0;
}

.function-redesign h1,
.function-redesign h2,
.function-redesign h3 {
  font-family: "Source Han Serif CN", serif;
  text-wrap: balance;
}

.function-frame {
  width: min(1200px, calc(100% - 96px));
  margin: 0 auto;
}

.function-kicker {
  color: #b6405a;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
}

.function-hero {
  overflow: hidden;
  background: #f8f5f4;
}

.function-hero-grid {
  display: grid;
  min-height: 590px;
  grid-template-columns: minmax(0, 1fr) 600px;
  align-items: stretch;
}

.function-hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 4.25rem 4rem 0;
}

.function-hero h1 {
  margin-top: 1.25rem;
  color: #211f24;
  font-size: 3.125rem;
  font-weight: 600;
  line-height: 1.2;
}

.function-hero-lead {
  max-width: 540px;
  margin-top: 1.875rem !important;
  color: #514d52;
  font-size: 1.0625rem;
  line-height: 1.85;
  text-wrap: pretty;
}

.function-hero-lead + .function-hero-lead {
  margin-top: 0.625rem !important;
}

.function-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
  margin-top: 1.875rem;
}

.function-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.5625rem;
  padding: 0 1.25rem;
  border: 1px solid #211f24;
  border-radius: 4px;
  color: #211f24;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.function-button.primary {
  border-color: #c64b67;
  background: #c64b67;
  color: #fffdfa;
}

.function-button:hover {
  transform: translateY(-2px);
}

.function-button:focus-visible,
.function-text-link:focus-visible {
  outline: 3px solid #bfa86f;
  outline-offset: 4px;
}

.function-button svg,
.function-text-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.function-hero-visual {
  position: relative;
  min-width: 0;
  min-height: 590px;
  overflow: hidden;
}

.function-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}

.function-hero-visual::after {
  position: absolute;
  right: 30px;
  bottom: 28px;
  width: 76px;
  height: 3px;
  background: #bfa86f;
  content: "";
}

.function-context {
  padding: var(--yj-section-y) 0;
  background: #f8f5f4;
  color: #211f24;
}

.context-main {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 4.625rem;
  align-items: center;
}

.context-copy h2 {
  margin-top: 1rem;
  color: #211f24;
  font-size: 2.625rem;
  font-weight: 600;
  line-height: 1.25;
}

.context-copy > p {
  margin-top: 1.625rem;
  color: #5f5960;
  font-size: 1rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.context-visual {
  height: 330px;
  overflow: hidden;
}

.context-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.context-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3.375rem;
  border-top: 1px solid #d8d1cf;
  border-bottom: 1px solid #d8d1cf;
}

.context-step {
  min-width: 0;
  padding: 1.375rem 1.5rem 1.5rem;
}

.context-step + .context-step {
  border-left: 1px solid #d8d1cf;
}

.context-step span {
  display: block;
  color: #bfa86f;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.context-step strong {
  display: block;
  margin-top: 0.5rem;
  color: #2d2930;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
}

.changes-section {
  padding: var(--yj-section-y) 0;
  background: #fffdfa;
  scroll-margin-top: 4.375rem;
}

.changes-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 5rem;
  align-items: end;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid #d8d3d4;
}

.changes-heading h2 {
  margin-top: 1rem;
  color: #211f24;
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1.25;
}

.changes-heading p {
  color: #514d52;
  font-size: 1rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.change-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4.25rem;
  margin-top: 3.375rem;
}

.change-group {
  min-width: 0;
}

.group-heading {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 1.125rem;
  margin-bottom: 0.625rem;
}

.group-number {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid #bfa86f;
  color: #b6405a;
  font-family: "Source Han Serif CN", serif;
  font-size: 1.125rem;
  font-weight: 600;
}

.group-heading h3 {
  color: #211f24;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.change-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 1.125rem;
  padding: 1.625rem 0 1.75rem;
  border-top: 1px solid #d8d3d4;
}

.change-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #c64b6714;
  color: #b6405a;
}

.change-icon.gold {
  background: #bfa86f1c;
  color: #9f813d;
}

.change-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.change-content h3 {
  color: #211f24;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.45;
}

.camellia-red {
  color: #c64b67;
}

.change-content p {
  margin-top: 0.625rem;
  color: #514d52;
  font-size: 0.9375rem;
  line-height: 1.72;
  text-wrap: pretty;
}

.change-content p + p {
  margin-top: 0.375rem;
}

.change-content b {
  color: #211f24;
  font-weight: 600;
}

.audience-section {
  padding: var(--yj-section-y) 0;
  background: #c9dce7;
  scroll-margin-top: 4.375rem;
}

.audience-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 5rem;
  align-items: end;
  padding-bottom: 2.375rem;
  border-bottom: 1px solid #94abb8;
}

.audience-heading h2 {
  margin-top: 0.875rem;
  font-size: 2.625rem;
  font-weight: 600;
  line-height: 1.25;
}

.audience-heading p {
  color: #514d52;
  font-size: 1rem;
  line-height: 1.75;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 2.375rem;
}

.audience-block {
  min-width: 0;
  padding: 0.5rem 3.25rem 0.5rem 0;
}

.audience-block + .audience-block {
  padding-right: 0;
  padding-left: 3.25rem;
  border-left: 1px solid #94abb8;
}

.audience-title-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.audience-title-row svg {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  fill: none;
  stroke: #b6405a;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.audience-title-row h3 {
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.35;
}

.audience-block p {
  margin-top: 1.125rem;
  color: #3f3b40;
  font-size: 0.9688rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.audience-emphasis {
  display: block;
  margin-top: 1rem;
  color: #211f24;
  font-weight: 600;
}

.audience-actions {
  display: flex;
  align-items: center;
  gap: 1.375rem;
  margin-top: 2.375rem;
}

.function-text-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 0.5rem;
  color: #b6405a;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.function-redesign .reveal-target {
  opacity: 0.98;
  transition: opacity 420ms ease;
}

.function-redesign .reveal-target.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .function-redesign .reveal-target {
    opacity: 1;
  }
}

@media (min-width: 1440px) {
  .function-hero,
  .function-context,
  .changes-section,
  .audience-section {
    overflow: visible;
    clip-path: inset(0 -100vmax);
  }

  .function-hero {
    box-shadow: 0 0 0 100vmax #f8f5f4;
  }
  .function-context {
    box-shadow: 0 0 0 100vmax #211f24;
  }
  .changes-section {
    box-shadow: 0 0 0 100vmax #fffdfa;
  }
  .audience-section {
    box-shadow: 0 0 0 100vmax #c9dce7;
  }
}

@media (max-width: 1440px) {
  .function-frame {
    width: calc(100% - 96px);
  }
  .function-hero-grid {
    grid-template-columns: minmax(0, 1fr) 520px;
  }
  .function-hero-copy {
    padding-right: 3rem;
  }
  .function-hero h1 {
    font-size: 2.875rem;
  }
  .change-groups {
    gap: 3rem;
  }
}

/* Function hero: full-bleed lifestyle scene with a translucent reading gradient. */
.function-hero {
  position: relative;
  isolation: isolate;
}

.function-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(248, 245, 244, 0.95) 0%,
    rgba(248, 245, 244, 0.91) 30%,
    rgba(248, 245, 244, 0.74) 43%,
    rgba(248, 245, 244, 0.28) 58%,
    rgba(248, 245, 244, 0) 72%
  );
  content: "";
  pointer-events: none;
}

.function-hero-grid {
  position: static;
  display: block;
}

.function-hero-copy {
  position: relative;
  z-index: 2;
  width: 600px;
  min-height: 590px;
}

.function-hero-visual {
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: 0;
  width: 100dvw;
  min-height: 0;
  transform: translateX(-50%);
}

.function-hero-visual img {
  object-position: center center;
}

.function-hero-visual::after {
  display: none;
}

/* BEGIN migrated inline styles: functions-and-suitability.php */
.function-kicker--gold {
  color: #bfa86f;
}
/* END migrated inline styles: functions-and-suitability.php */

@media (max-width: 680px) {
  .function-frame {
    width: calc(100% - 28px);
  }

  .function-hero {
    min-height: 0;
  }

  .function-hero::after {
    background: linear-gradient(
      90deg,
      rgba(248, 245, 244, 0.98) 0%,
      rgba(248, 245, 244, 0.96) 44%,
      rgba(248, 245, 244, 0.84) 62%,
      rgba(248, 245, 244, 0.42) 78%,
      rgba(248, 245, 244, 0) 92%
    );
  }

  .function-hero-grid {
    min-height: 0;
  }

  .function-hero-copy {
    width: 100%;
    min-height: 520px;
    padding: 4.75rem 0 2rem;
  }

  .function-hero h1 {
    max-width: 8.4em;
    margin-top: 1rem;
    font-size: 2.125rem;
    line-height: 1.28;
  }

  .function-hero-lead {
    max-width: 22.5em;
    margin-top: 1rem !important;
    font-size: 0.875rem;
    line-height: 1.7;
  }

  .function-actions {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .function-button,
  .function-link-button {
    min-height: 44px;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
  }

  .function-context {
    padding: 2.75rem 0;
  }

  .context-main {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
  }

  .context-copy h2 {
    margin-top: 0.75rem;
    font-size: 2rem;
    line-height: 1.3;
  }

  .context-copy > p {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.7;
  }

  .context-visual {
    width: min(100%, 320px);
    height: auto;
    aspect-ratio: 4 / 3;
    justify-self: center;
  }

  .context-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2rem;
  }

  .context-step {
    padding: 1.125rem 1.25rem 1.25rem;
  }

  .context-step:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid #d8d1cf;
    border-left: 0;
  }

  .context-step strong {
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .changes-section {
    padding: 2.75rem 0;
  }

  .changes-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
    padding-bottom: 1.625rem;
  }

  .changes-heading h2 {
    margin-top: 0.75rem;
    font-size: 2rem;
    line-height: 1.3;
  }

  .changes-heading p {
    font-size: 0.875rem;
    line-height: 1.7;
  }

  .change-groups {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-top: 2rem;
  }

  .audience-section {
    padding: 2.75rem 0;
  }

  .audience-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
    padding-bottom: 1.625rem;
  }

  .audience-heading h2 {
    margin-top: 0.75rem;
    font-size: 2rem;
    line-height: 1.3;
  }

  .audience-heading p {
    font-size: 0.875rem;
    line-height: 1.7;
  }
}
