/* ===== Pre·sence — components (i18n toggle, auth gate, about, banners) ===== */

/* language toggle */
.lang{display:inline-flex;border:1px solid var(--line);border-radius:999px;overflow:hidden;font-weight:700;font-size:.8rem}
.lang button{border:none;background:transparent;color:var(--muted);padding:.45em .8em;cursor:pointer;font-family:var(--body);font-weight:700}
.lang button.active{background:var(--ink);color:var(--ivory)}
@media(max-width:560px){.site-head .nav{gap:.8rem}}

/* module card banner (motif now, photo later via onerror fallback) */
.mbanner{margin:-1.7rem -1.6rem 0;height:132px;overflow:hidden;border-radius:20px 20px 0 0;background:var(--sand-2)}
.mbanner img{width:100%;height:100%;object-fit:cover;display:block}
.mod .mnum{margin-top:1.2rem}

/* ---- library gate / auth ---- */
.grid.locked{position:relative}
.grid.locked .mod{filter:blur(5px);pointer-events:none;user-select:none;opacity:.55}
#authPanel{max-width:460px;margin:0 auto 2.4rem}
#authPanel.gate{margin-top:.5rem}
.auth-card{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:2rem;box-shadow:var(--shadow);text-align:center}
.auth-lead{color:var(--taupe);margin-bottom:1.2rem}
.auth-form{display:flex;flex-direction:column;gap:.7rem}
.auth-form input{font-family:var(--body);font-size:1rem;padding:.85em 1em;border:1px solid var(--line);border-radius:12px;background:var(--ivory);color:var(--ink)}
.auth-form input:focus{outline:none;border-color:var(--clay)}
.auth-form .btn{margin-top:.3rem;justify-content:center}
.auth-link{background:none;border:none;color:var(--muted);font-family:var(--body);font-weight:700;font-size:.9rem;margin-top:1rem;cursor:pointer;text-decoration:underline}
.auth-err{color:#a5563f;font-size:.88rem;min-height:1em}
.auth-msg{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:1.6rem;text-align:center;color:var(--taupe);box-shadow:var(--shadow-sm)}
.auth-welcome{display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap;color:var(--ink);font-weight:700}
.mod.loading{opacity:.5}

/* ---- about / founder ---- */
.about{background:linear-gradient(180deg,var(--ivory),var(--sand-2))}
.about-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:2.6rem;align-items:center;margin-top:2.2rem}
@media(max-width:760px){.about-grid{grid-template-columns:1fr;gap:1.6rem}}
.about-photo{aspect-ratio:4/5;border-radius:24px;overflow:hidden;background:
  radial-gradient(120% 100% at 50% 30%,rgba(216,183,168,.4),transparent 60%),var(--sand);
  box-shadow:var(--shadow);display:grid;place-items:center}
.about-photo img{width:100%;height:100%;object-fit:cover}
.about-photo .ph{width:96px;height:96px;opacity:.7}
.about-bio{font-size:1.12rem;color:var(--taupe)}
.about-bio .sig{font-family:var(--serif);font-style:italic;font-size:1.5rem;color:var(--ink);margin-top:1rem}
.tag-note{font-size:.82rem;color:var(--muted);font-style:italic}

/* care note crisis line */
.care-crisis{margin-top:1rem;font-size:.92rem;color:var(--ink);font-weight:600}

/* footer contact */
.foot .contact-val{opacity:.9}

/* ---- hero with photo ---- */
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(2rem,5vw,3.5rem);align-items:center}
.hero-photo{border-radius:26px;overflow:hidden;box-shadow:var(--shadow);aspect-ratio:5/4}
.hero-photo img{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:900px){.hero-grid{grid-template-columns:1fr}.hero-photo{aspect-ratio:16/9;margin-top:2rem}}

/* ---- track card photo banners ---- */
.tbanner{margin:-2.4rem -2.4rem 1.5rem;height:210px;overflow:hidden;border-radius:26px 26px 0 0}
.tbanner img{width:100%;height:100%;object-fit:cover;display:block}
.track .tmark{display:none}

/* ---- atmospheric divider band ---- */
.atmos{min-height:min(54vh,440px);display:grid;place-items:center;text-align:center;padding:3rem 1.5rem;
  background-image:linear-gradient(rgba(84,73,63,.34),rgba(84,73,63,.30)),url('img/atmosphere.jpg');
  background-size:cover;background-position:center 40%}
.atmos-quote{font-family:var(--serif);font-style:italic;color:#fff;font-size:clamp(1.6rem,3.6vw,2.7rem);
  line-height:1.3;max-width:22ch;margin:0 auto;text-shadow:0 2px 20px rgba(60,52,44,.4)}

/* ---- Values (Fruits) ---- */
.values{background:linear-gradient(180deg,var(--sand-2),var(--ivory))}
.values-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1.3rem;margin-top:2.6rem}
.value{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:1.7rem 1.6rem;box-shadow:var(--shadow-sm);min-width:0}
.value .v-n{font-family:var(--serif);font-size:1.5rem;color:var(--ink);margin-bottom:.5rem}
.value .v-q{font-family:var(--serif);font-style:italic;color:var(--taupe);font-size:1.05rem;line-height:1.45}
.value:nth-child(7n+1) .v-n{color:#b98e7c}.value:nth-child(7n+2) .v-n{color:#9bb0a0}
.value:nth-child(7n+3) .v-n{color:#c2a15f}.value:nth-child(7n+4) .v-n{color:#9db9c4}

/* ---- Culture (pillars) ---- */
.pillars{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.1rem 2rem;margin-top:2.6rem}
.pillar{padding:1.2rem 0;border-top:2px solid var(--line);min-width:0}
.pillar h4{font-family:var(--serif);font-weight:600;font-size:1.35rem;color:var(--ink);margin:0 0 .3rem}
.pillar p{color:var(--taupe);font-size:.98rem;margin:0}
.culture-purpose{font-family:var(--serif);font-style:italic;font-size:clamp(1.3rem,2.6vw,1.8rem);color:var(--ink);
  text-align:center;max-width:34ch;margin:3rem auto 0;line-height:1.4}

/* ---- About tweaks for full bio ---- */
.about-grid{align-items:start}
.about-photo{position:sticky;top:100px}
@media(max-width:760px){.about-photo{position:static}}
.about-kicker{font-family:var(--serif);font-style:italic;font-size:1.4rem;color:var(--gold)}
.about-bio h2{margin:.2rem 0 .3rem}
.about-role{font-family:var(--body);font-weight:700;font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:1.4rem}
.about-bio .sig{margin-top:1.2rem}
