/* Draft 2: requested homepage changes only. Shared subpage styles stay intact. */
#home .hero-visual{container-type:inline-size;background-image:none!important;background-color:#F4EEF6}
#home .hero-visual::before{content:"";position:absolute;inset:0;background:url('legacy_01.jpg') center 43%/cover no-repeat;filter:brightness(1.1) saturate(.85)}
#home .hero-visual::after{background:linear-gradient(to bottom,rgba(36,26,49,.18),transparent 60%)}
#home .hero-copy{top:20px;bottom:auto;left:59%;right:24px;padding:0}
#home h1{font-size:clamp(28px,5.3cqw,66px);margin-bottom:12px}
#home .hero-tagline{display:inline-block;margin:0;padding:0;background:none;color:#fff;font-size:14px;line-height:1.5;text-shadow:0 1px 5px rgba(36,26,49,.65)}
#home .hero-small{margin-top:16px;color:inherit}

#why .lead{border-left:0;padding-left:0}

/* Match both languages' Solutions and Core Members introductions to the Why Alphaterra lead. */
#solutions .desc,
#team .desc{font-size:16px;color:var(--ink)}

/* Match approach headings and number labels to the Solutions serif typography. */
#why .pillar h3,
#solutions .service h3{font:22px/1.25 Georgia,serif}
#why .pillar b,
#solutions .service .no{font-family:Georgia,serif;font-weight:400;font-style:normal}

/* Full-width founder message shared by both homepage languages. */
.mission-section{padding:80px 0}
.mission-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:32px;align-items:start}
.mission-copy p{margin:0;color:#625769;font-size:16px;line-height:1.95}
.mission-copy p + p{margin-top:1.25em}
.mission-link{display:inline-block;margin-top:22px;padding-bottom:5px;border-bottom:1px solid transparent;text-decoration:none;white-space:normal}
.mission-link:is(:hover,:focus-visible){text-decoration:none;border-bottom-color:currentColor}
.mission-link:focus-visible{outline:2px solid currentColor;outline-offset:5px}

/* Keep all three proof-of-action card links the same pink in every state. */
#experience .excard a.link,
#experience .excard a.link:is(:visited,:hover,:focus-visible,:active){color:#F2C2F6!important}

/* Give both team introductions the full section width. */
#team .desc{max-width:none}
/* Keep the English desktop lines similar in length without a fixed break. */
@media(min-width:1101px){html[lang="en"] #team .desc{text-wrap:balance}}
@media(max-width:1100px){#team .team-intro-break{display:none}}

/* Member photographs and link treatment from Draft 1. */
#team .container > .eyebrow{font-size:14px}
#team img.portrait{object-fit:cover;object-position:center top}
/* Compact, equal cards sized for each language rather than stretched to fill the row. */
#team .team-list{display:grid;grid-template-columns:repeat(auto-fit,min(100%,208px));grid-auto-rows:1fr}
html[lang="ja"] #team .team-list{grid-template-columns:repeat(auto-fit,min(100%,136px))}
#team .name-chip{display:flex;align-items:center;gap:10px;min-width:0;padding:8px 12px}
#team .name-chip span{min-width:0;overflow-wrap:break-word}
#team .chip-portrait{display:block;width:48px;height:60px;flex:none;object-fit:cover;object-position:center top}
#team .leader[href],#team .name-chip[href]{transition:transform .2s,box-shadow .2s}
#team .leader[href]:hover,#team .name-chip[href]:hover{background:var(--paper)}
#team .leader[href]:is(:hover,:focus-visible),#team .name-chip[href]:is(:hover,:focus-visible){transform:translateY(-4px);box-shadow:var(--shadow)}
#team .leader[href]:focus-visible,#team .name-chip[href]:focus-visible{outline:2px solid var(--gold);outline-offset:4px}

@media(max-width:700px){.mission-section{padding:54px 0}.mission-layout{gap:26px}.mission-copy p{font-size:15px;line-height:1.9}}
@media(max-width:580px){
  #solutions .desc,
  #team .desc{font-size:14px}
  #home .hero-visual{min-height:max(510px,calc(260px + 66.667vw))}
  #home .hero-visual::before{background-size:100% auto;background-position:center bottom}
  #home .hero-visual::after{background:linear-gradient(to bottom,#F4EEF6 245px,rgba(244,238,246,0) 300px)}
  #home .hero-copy{top:12px;left:24px;right:24px;color:var(--ink)}
  #home .hero-copy .kicker{color:var(--purple)}
  #home h1{font-size:47px;text-shadow:none;margin-bottom:6px}
  #home .hero-tagline{color:var(--ink);text-shadow:none}
  /* Let the longer English copy set its own height before the photo begins. */
  html[lang="en"] #home .hero-visual{display:grid;grid-template-columns:minmax(0,1fr);min-height:0}
  html[lang="en"] #home .hero-copy{position:relative;inset:auto;grid-area:1 / 1;padding:12px 24px 32px}
  html[lang="en"] #home .hero-visual::before{position:relative;inset:auto;grid-area:2 / 1;aspect-ratio:3 / 2;background-size:cover}
  html[lang="en"] #home .hero-visual::after{position:relative;inset:auto;grid-area:2 / 1;background:linear-gradient(to bottom,#F4EEF6,rgba(244,238,246,0) 40px)}
}
@media(prefers-reduced-motion:reduce){#team .leader[href],#team .name-chip[href]{transition:none}#team .leader[href]:is(:hover,:focus-visible),#team .name-chip[href]:is(:hover,:focus-visible){transform:none}}
