/* Retrato e narrativa de origem, sem modificar as demais seções. */
.history-page .history-gratitude{background:#f7f4ee;padding:78px 0 90px}
.gratitude-layout{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:80px;align-items:start}
.history-page .gratitude-heading h2{font-size:clamp(2.15rem,3.25vw,2.9rem);line-height:1.16;text-align:left;max-width:400px;margin:0}
.gratitude-copy{max-width:680px;font-size:1rem;line-height:1.9;color:#405765}
.gratitude-copy p{margin:0 0 24px}
.gratitude-copy p:last-child{margin-bottom:0}
@media(max-width:900px){.gratitude-layout{grid-template-columns:1fr;gap:32px}.history-page .gratitude-heading h2{max-width:580px}.gratitude-copy{max-width:720px}}
@media(max-width:650px){.history-page .history-gratitude{padding:52px 0 64px}.gratitude-layout{gap:28px}.gratitude-copy{line-height:1.85}.gratitude-copy p{margin-bottom:22px}}
.history-origin-layout{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);gap:52px;align-items:center}
.history-origin-copy{min-width:0}
.history-origin .editorial-heading>.eyebrow,.history-origin .editorial-heading h2{text-align:left}
.history-origin .editorial-heading h2{margin-bottom:28px;line-height:1.1}
.history-origin .editorial-body{max-width:610px;text-align:left}
.history-founder-photo{width:100%;min-width:0;margin:0;align-self:center}
.history-founder-photo img{display:block;width:100%;height:auto;object-fit:contain;border:0;border-radius:0;box-shadow:none}
@media(max-width:900px){
 .history-origin-layout{grid-template-columns:1fr;gap:24px}
 .history-origin-copy{display:contents}
 .history-origin .editorial-heading{order:1}
 .history-founder-photo{order:2;max-width:700px;justify-self:start}
 .history-origin .editorial-body{order:3;max-width:none}
 .history-origin .editorial-heading h2{margin-bottom:0}
}
@media(max-width:650px){
 .history-origin{padding:46px 0 54px}
 .history-origin-layout{gap:22px}
 .history-origin .editorial-heading>.eyebrow{margin-bottom:18px}
 .history-origin .editorial-heading h2{font-size:40px;line-height:1.12}
 .history-founder-photo{max-width:none;width:100%}
}
/* Foto aprovada mais recente: proporção vertical e integração suave. */
.history-origin{background:#f7f4ee}
.history-origin-layout{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:64px;align-items:center}
.history-founder-photo{max-width:500px;justify-self:end}
.history-founder-photo img{
 mask-image:linear-gradient(to right,transparent,#000 3%,#000 97%,transparent),linear-gradient(to bottom,transparent,#000 2%,#000 98%,transparent);
 mask-composite:intersect;
 -webkit-mask-image:linear-gradient(to right,transparent,#000 3%,#000 97%,transparent),linear-gradient(to bottom,transparent,#000 2%,#000 98%,transparent);
 -webkit-mask-composite:source-in;
}
@media(max-width:900px){
 .history-origin-layout{grid-template-columns:1fr;gap:28px}
 .history-founder-photo{width:100%;max-width:480px;justify-self:start}
}
@media(max-width:650px){
 .history-origin-layout{gap:24px}
 .history-founder-photo{width:100%;max-width:none}
}
/* 心: acabamento simbólico discreto na seção do significado do nome. */
.kokoro-kanji{position:relative;width:170px;height:145px;margin:12px 0 0;overflow:hidden;opacity:.65;pointer-events:none}
.kokoro-kanji img{position:absolute;display:block;width:330px;max-width:none;height:auto;left:-83px;top:-64px;border:0;border-radius:0;box-shadow:none}
@media(max-width:650px){
 .kokoro-kanji{width:140px;height:118px;margin-top:14px}
 .kokoro-kanji img{width:270px;left:-68px;top:-52px}
}
/* Integração mais delicada do símbolo, preservando a arte original. */
.history-page .editorial-heading:has(.kokoro-kanji) h2{margin-bottom:12px}
.kokoro-kanji{width:135px;height:115px;margin:0;opacity:.3}
.kokoro-kanji img{display:none}
.kokoro-kanji::before{content:"";position:absolute;width:260px;height:195px;left:-66px;top:-50px;background:#608ba4;mask:url('images/kokoro-kanji.png') center / contain no-repeat;-webkit-mask:url('images/kokoro-kanji.png') center / contain no-repeat}
@media(max-width:650px){
 .history-page .editorial-heading:has(.kokoro-kanji) h2{margin-bottom:10px}
 .kokoro-kanji{width:110px;height:94px;margin:0}
 .kokoro-kanji::before{width:220px;height:165px;left:-55px;top:-43px}
}
/* Alinhar o traço visível ao eixo do título e retirar o vazio interno. */
.history-page .editorial-heading:has(.kokoro-kanji) h2{margin-bottom:8px}
.kokoro-kanji{width:130px;height:108px}
.kokoro-kanji::before{left:-71px;top:-54px}
@media(max-width:650px){
 .history-page .editorial-heading:has(.kokoro-kanji) h2{margin-bottom:7px}
 .kokoro-kanji{width:110px;height:90px}
 .kokoro-kanji::before{left:-61px;top:-46px}
}

/* Símbolo centralizado sob o título, com escala mais discreta. */
.history-page .editorial-heading:has(.kokoro-kanji) h2{margin-bottom:12px}
.history-page .kokoro-kanji{margin:0 auto;transform:scale(.9);transform-origin:top center}
@media(max-width:650px){.history-page .editorial-heading:has(.kokoro-kanji) h2{margin-bottom:10px}.history-page .kokoro-kanji{margin:0 auto}}

/* Revisão final: símbolo 18% menor e alinhado ao título. */
.history-page .kokoro-kanji{margin:0;transform:scale(.738);transform-origin:top left;height:89px;opacity:.3}
.history-page .editorial-heading:has(.kokoro-kanji) h2{margin-bottom:6px}
@media(max-width:650px){.history-page .kokoro-kanji{margin:0;height:74px}.history-page .editorial-heading:has(.kokoro-kanji) h2{margin-bottom:5px}}
