/* Yokozeki portrait first-view proposal variants. */
.hero-face-option .home-hero {
  overflow: hidden;
}
.hero-with-face .hero-top-copy,
.hero-with-face .home-hero-content,
.hero-with-face .hero-person,
.hero-with-face .hero-b-wrap,
.hero-with-face .hero-c-grid {
  position: relative;
  z-index: 1;
}
.hero-person img,
.hero-profile-panel img,
.hero-c-person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-person figcaption,
.hero-c-person figcaption {
  margin: 0;
}
.hero-person figcaption span,
.hero-c-person figcaption span,
.profile-kicker {
  display: block;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
}
.hero-person figcaption strong,
.hero-c-person figcaption strong,
.profile-name {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
}

/* Option A: small trust marker over the existing full-bleed house photo. */
.hero-face-a-layout .hero-person-floating {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: clamp(34px, 7vw, 82px);
  display: grid;
  grid-template-columns: 86px minmax(0, auto);
  align-items: center;
  gap: 14px;
  width: min(318px, calc(100% - 40px));
  margin: 0;
  padding: 10px 16px 10px 10px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(96, 96, 96, .16);
}
.hero-face-a-layout .hero-person-floating img {
  aspect-ratio: 1;
  border-radius: 6px;
}
.hero-face-a-layout .home-hero-content {
  padding-right: clamp(20px, 31vw, 440px);
}

/* Option B: profile panel as a clear representative signal. */
.hero-face-b-layout {
  align-items: stretch;
}
.hero-face-b-layout .hero-b-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  align-items: end;
  gap: clamp(24px, 5vw, 56px);
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) clamp(20px, 6vw, 76px);
}
.hero-face-b-layout .home-hero-content {
  width: auto;
  padding: 0;
}
.hero-profile-panel {
  display: grid;
  gap: 14px;
  margin: 0 0 6px;
  padding: 16px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(96, 96, 96, .14);
}
.hero-profile-panel img {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
}
.profile-text {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.65;
}

/* Option C: split composition, showing the person and the house at the same time. */
.hero-face-c-layout {
  align-items: stretch;
  background: var(--paper);
  background-image: none;
}
.hero-face-c-layout::after,
.hero-face-c-layout .hero-shade {
  display: none;
}
.hero-c-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  width: 100%;
  min-height: calc(100svh - 74px);
}
.hero-c-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: clamp(46px, 7vw, 82px) clamp(20px, 5vw, 64px);
  background: var(--paper);
}
.hero-c-copy .hero-top-copy {
  position: static;
  width: auto;
  margin: 0 0 auto;
  transform: none;
  font-size: clamp(2.45rem, 5.55vw, 5.15rem);
  text-align: left;
}
.hero-c-copy .home-hero-content {
  width: auto;
  padding: clamp(38px, 8vw, 86px) 0 0;
  text-shadow: none;
}
.hero-c-visual {
  position: relative;
  min-height: calc(100svh - 74px);
  background: var(--mist);
  overflow: hidden;
}
.hero-c-house {
  width: 100%;
  height: 100%;
  min-height: calc(100svh - 74px);
  object-fit: cover;
}
.hero-c-person {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: clamp(18px, 5vw, 54px);
  width: min(260px, 42%);
  margin: 0;
  padding: 10px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(96, 96, 96, .15);
}
.hero-c-person img {
  aspect-ratio: 1;
  border-radius: 6px;
}
.hero-c-person figcaption {
  padding: 10px 2px 2px;
}

@media (max-width: 900px) {
  .hero-face-a-layout .home-hero-content {
    padding-right: clamp(20px, 6vw, 76px);
    padding-bottom: 154px;
  }
  .hero-face-a-layout .hero-person-floating {
    left: 18px;
    right: 18px;
    bottom: 24px;
    width: auto;
    grid-template-columns: 74px minmax(0, auto);
  }
  .hero-face-b-layout .hero-b-wrap {
    grid-template-columns: 1fr;
    padding: 42px 18px 24px;
  }
  .hero-face-b-layout .home-hero-content {
    padding: 116px 0 0;
  }
  .hero-profile-panel {
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    margin: 0;
  }
  .hero-profile-panel img {
    aspect-ratio: 1;
  }
  .hero-c-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-c-copy {
    min-height: 58svh;
  }
  .hero-c-visual,
  .hero-c-house {
    min-height: 42svh;
  }
  .hero-c-person {
    width: min(228px, 52%);
  }
}

@media (max-width: 480px) {
  .hero-face-a-layout .home-hero-content {
    padding-top: 52px;
    padding-bottom: 142px;
  }
  .hero-face-a-layout .hero-person-floating {
    grid-template-columns: 64px minmax(0, auto);
    padding: 8px 12px 8px 8px;
  }
  .hero-person figcaption strong,
  .hero-c-person figcaption strong,
  .profile-name {
    font-size: 1rem;
  }
  .hero-face-b-layout .hero-b-wrap {
    padding: 30px 18px 20px;
  }
  .hero-face-b-layout .home-hero-content {
    padding-top: 126px;
  }
  .hero-profile-panel {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 10px;
  }
  .profile-text {
    display: none;
  }
  .hero-c-copy {
    min-height: 60svh;
    padding: 36px 18px 40px;
  }
  .hero-c-copy .hero-top-copy {
    font-size: clamp(2.3rem, 12vw, 3.3rem);
  }
  .hero-c-copy .home-hero-content {
    padding-top: 42px;
  }
  .hero-c-visual,
  .hero-c-house {
    min-height: 40svh;
  }
  .hero-c-person {
    width: min(176px, 55%);
    right: 14px;
    bottom: 14px;
  }
}


/* Revised option A: keep the original first view, then introduce Yokozeki below it. */
.hero-under-profile {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.hero-under-profile-inner {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding-top: clamp(44px, 6vw, 72px);
  padding-bottom: clamp(44px, 6vw, 72px);
}
.hero-under-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(96, 96, 96, .12);
}
.hero-under-copy h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(1.85rem, 3.8vw, 3.35rem);
}
.hero-under-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 0 0 12px;
  font-size: 1.02rem;
}

@media (max-width: 900px) {
  .hero-under-profile-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .hero-under-photo {
    width: min(320px, 100%);
  }
}

@media (max-width: 480px) {
  .hero-under-profile-inner {
    padding-top: 38px;
    padding-bottom: 44px;
  }
  .hero-under-photo {
    width: min(240px, 78vw);
  }
  .hero-under-copy h2 {
    font-size: clamp(1.7rem, 8.5vw, 2.45rem);
  }
}


/* Option A refinement: smaller left portrait with copy on the right. */
.hero-face-a .hero-under-profile-inner {
  grid-template-columns: minmax(132px, 188px) minmax(0, 720px);
  justify-content: start;
  align-items: center;
  gap: clamp(20px, 4vw, 46px);
  padding-top: clamp(38px, 5vw, 58px);
  padding-bottom: clamp(40px, 5vw, 62px);
}
.hero-face-a .hero-under-photo {
  justify-self: start;
  width: min(188px, 100%);
}
.hero-face-a .hero-under-photo img {
  box-shadow: 0 10px 26px rgba(96, 96, 96, .1);
}
.hero-face-a .hero-under-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.72rem);
  line-height: 1.32;
}
.hero-face-a .hero-under-copy p:not(.eyebrow) {
  max-width: 660px;
  font-size: .98rem;
}

@media (max-width: 900px) {
  .hero-face-a .hero-under-profile-inner {
    grid-template-columns: minmax(112px, 154px) minmax(0, 1fr);
    gap: 18px;
  }
  .hero-face-a .hero-under-photo {
    width: min(154px, 100%);
  }
  .hero-face-a .hero-under-copy h2 {
    font-size: clamp(1.45rem, 4.8vw, 2.25rem);
  }
}

@media (max-width: 480px) {
  .hero-face-a .hero-under-profile-inner {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    padding-top: 34px;
    padding-bottom: 38px;
  }
  .hero-face-a .hero-under-photo {
    width: 104px;
  }
  .hero-face-a .hero-under-copy h2 {
    margin-bottom: 10px;
    font-size: clamp(1.24rem, 5.4vw, 1.62rem);
  }
  .hero-face-a .hero-under-copy p:not(.eyebrow) {
    font-size: .88rem;
    line-height: 1.7;
  }
  .hero-face-a .hero-under-copy p:not(.eyebrow) + p:not(.eyebrow) {
    display: none;
  }
}

@media (max-width: 360px) {
  .hero-face-a .hero-under-profile-inner {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }
  .hero-face-a .hero-under-photo {
    width: 88px;
  }
}

.copy-editor-page {
  background: var(--paper);
}
.editor-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 58px) clamp(18px, 5vw, 48px);
}
.editor-title {
  margin-bottom: 28px;
}
.editor-title h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.2;
}
.editor-title p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}
.editor-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.editor-controls,
.editor-preview-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.editor-controls {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.editor-controls label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}
.editor-controls textarea,
.editor-output {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  line-height: 1.7;
}
.editor-controls textarea[data-field="heading"] {
  min-height: 88px;
}
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.editor-actions .button {
  min-height: 42px;
  padding: 9px 14px;
}
.editor-preview-card {
  overflow: hidden;
}
.editor-preview-card .hero-under-profile {
  border-bottom: 0;
}
.editor-preview-card .hero-under-profile-inner {
  width: 100%;
}
.editor-output-wrap {
  display: grid;
  gap: 8px;
}
.editor-output-wrap span {
  font-size: .85rem;
  color: var(--muted);
}
.editor-output {
  min-height: 118px;
}

@media (max-width: 900px) {
  .editor-workspace {
    grid-template-columns: 1fr;
  }
}


/* First-view copy editor preview. */
.hero-copy-workspace {
  grid-template-columns: minmax(280px, 380px) minmax(0, 1.35fr);
}
.hero-copy-editor-page .editor-controls textarea {
  min-height: 48px;
}
.hero-copy-editor-page .editor-controls textarea[data-field="lead"] {
  min-height: 116px;
}
.hero-editor-preview-card .home-hero {
  min-height: min(720px, calc(100svh - 74px));
}
.hero-editor-preview-card .home-hero-content {
  width: min(760px, 100%);
}
.hero-editor-preview-card .hero-top-copy {
  width: min(980px, calc(100% - 36px));
  font-size: clamp(2.25rem, 5.45vw, 4.8rem);
}
.hero-editor-preview-card .home-hero h1 {
  font-size: clamp(2.75rem, 7vw, 6.3rem);
}
.hero-editor-preview-card .hero-lead {
  max-width: 620px;
}

@media (max-width: 900px) {
  .hero-copy-workspace {
    grid-template-columns: 1fr;
  }
  .hero-editor-preview-card .home-hero {
    min-height: 680px;
  }
}

@media (max-width: 480px) {
  .hero-editor-preview-card .home-hero {
    min-height: calc(100svh - 74px);
  }
  .hero-editor-preview-card .hero-top-copy {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }
}

.editor-status {
  min-height: 1.7em;
  margin: -4px 0 0;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
}


/* Option A: Yokozeki portrait placed in the first-view lower-right area. */
.hero-face-a .home-hero {
  overflow: hidden;
}
.hero-fv-person {
  position: absolute;
  right: clamp(18px, 5vw, 76px);
  bottom: clamp(28px, 7vw, 86px);
  z-index: 2;
  width: clamp(132px, 18vw, 210px);
  margin: 0;
  color: var(--ink);
  text-align: center;
}
.hero-fv-person img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(216, 216, 213, .9);
  box-shadow: 0 14px 32px rgba(96, 96, 96, .14);
}
.hero-fv-person figcaption {
  display: block;
  margin-top: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  line-height: 1.35;
}
.hero-fv-person figcaption span {
  display: block;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
}
.hero-fv-person figcaption strong {
  display: block;
  color: var(--ink);
  font-size: .98rem;
  font-weight: 800;
}
.hero-face-a .home-hero-content {
  padding-right: clamp(20px, 28vw, 380px);
}

@media (max-width: 900px) {
  .hero-fv-person {
    right: 18px;
    bottom: 26px;
    width: clamp(112px, 25vw, 150px);
  }
  .hero-face-a .home-hero-content {
    padding-right: clamp(18px, 31vw, 178px);
  }
}

@media (max-width: 620px) {
  .hero-fv-person {
    right: 16px;
    bottom: 22px;
    width: 104px;
  }
  .hero-fv-person figcaption span {
    font-size: .66rem;
  }
  .hero-fv-person figcaption strong {
    font-size: .82rem;
  }
  .hero-face-a .home-hero-content {
    padding-right: 18px;
    padding-bottom: 146px;
  }
}

@media (max-width: 380px) {
  .hero-fv-person {
    width: 92px;
  }
}


/* Hero lead copy split into two readable paragraphs. */
.hero-face-a .home-hero-content .hero-lead {
  margin-bottom: 8px;
}
.hero-face-a .home-hero-content .hero-lead-sub {
  margin-top: 0;
}
.hero-face-a .home-hero-content .hero-lead-sub + .hero-actions {
  margin-top: 22px;
}

.hero-editor-preview-card [data-preview="lead"] {
  white-space: pre-line;
}
