/* about.html — page-only styles. Shared pieces live in components.css. */

/* ==========================================================================
   ABOUT US - Thematic Ink & Gold Glassmorphism (bilingual EN / 中文)
   Every rule is scoped under .about-page so nothing leaks into the
   header, navigation or other partials.
   ========================================================================== */
.about-page {
    --glass-chip: rgb(var(--tint-white) / 0.5);
    --zh-font: var(--font-zh);
    --text-body: var(--ink-muted);
    max-width: 1040px;
}

/* --- List reset: each list below sets its own padding ------------------- */
.about-page ul,
.about-page ol {
    margin-top: 0;
    margin-bottom: 0;
}

/* --- Language switch -------------------------------------------------
   The master switch (base.html) sets data-lang on <html>. */
html[data-lang="en"] .about-page [lang="zh-Hans"]:not(.lang-keep),
html[data-lang="zh"] .about-page .lang-en {
    display: none !important;
}

.about-page [lang="zh-Hans"] {
    font-family: var(--zh-font);
}

/* --- Shared pieces --------------------------------------------------- */
.about-badge {
    margin: 0 0 12px 0;
}

.about-panel {
    background: var(--glass-outer);
    border: 1px solid var(--ink-border-wash);
    border-radius: 16px;
    padding: 28px 26px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-sizing: border-box;
}

.about-panel-head {
    text-align: center;
    margin: 0 auto 20px;
    max-width: 720px;
}

.about-panel-head h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    color: var(--ink-dark);
    margin: 0;
    line-height: 1.3;
}

.about-lead {
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    font-weight: 700;
    line-height: 1.6;
    color: var(--ink-dark);
    text-align: center;
    max-width: 720px;
    margin: 0 auto 16px;
}

.about-text {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--text-body);
    margin: 0 0 12px;
}

.about-text:last-child {
    margin-bottom: 0;
}

.about-text strong,
.about-brand {
    color: var(--ink-dark);
    font-weight: 700;
}

.about-gold {
    color: var(--ink-gold);
    font-weight: 800;
}

.about-chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.about-chips li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 32px;
    line-height: 1 !important;
    white-space: nowrap;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--ink-dark);
    background: var(--glass-chip);
    border: 1px solid var(--ink-border-wash);
    padding: 0 14px !important;
    border-radius: 9999px;
}

.about-chips li::before,
.about-chips li::after {
    content: none !important;
}

.about-chips.is-gold li {
    color: var(--ink-gold);
    background: var(--ink-gold-light);
    border-color: var(--ink-border-gold);
}

.about-chip-label {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mountain-wash);
    margin: 18px 0 10px;
}

/* --- 1. Hero ---------------------------------------------------------- */
.about-hero {
    text-align: center;
}

.about-title {
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--ink-dark);
    margin: 0 0 10px;
    text-transform: uppercase;
    line-height: 1.2;
}

.about-tagline {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-gold);
    margin: 0;
    letter-spacing: 0.02em;
}

/* --- 2. Founder ------------------------------------------------------- */
.about-founder {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: stretch;
}

.about-portrait {
    position: relative;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--ink-border-gold);
    box-shadow: 0 12px 30px rgba(40, 30, 20, 0.15);
    min-height: 420px;
    background: var(--glass-section);
}

.about-portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Subject sits slightly left of centre in founder.jpg */
    object-position: 40% 30%;
    display: block;
}

.about-portrait-caption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(35, 34, 32, 0.55);
    border: 1px solid rgba(229, 203, 143, 0.45);
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.about-founder-story {
    background: var(--glass-section);
    border: 1px solid var(--ink-border-wash);
    border-radius: 12px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-founder-intro {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink-dark);
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ink-border-wash);
}

.about-founder-intro .about-gold {
    font-size: 1.3rem;
}

.about-perspective {
    margin: 6px 0 0;
    padding: 12px 16px;
    border-left: 3px solid var(--ink-gold);
    background: var(--ink-gold-light);
    border-radius: 0 10px 10px 0;
    font-weight: 700;
    font-style: italic;
    color: var(--ink-dark);
    line-height: 1.6;
}

.about-perspective[lang="zh-Hans"] {
    font-style: normal;
}

/* --- 3. Possibility chain -------------------------------------------- */
.about-chain {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    counter-reset: chain;
}

.about-chain li {
    position: relative;
    padding: 18px 16px 16px !important;
    border-radius: 12px;
    background: var(--glass-section);
    border: 1px solid var(--ink-border-wash);
    counter-increment: chain;
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 1.4 !important;
}

.about-chain li::before {
    content: counter(chain);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
    background: var(--ink-gold);
    box-shadow: 0 3px 10px rgba(179, 136, 47, 0.3);
}

.about-chain li:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -11px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--ink-gold);
    background: var(--glass-chip);
    border: 1px solid var(--ink-border-gold);
}

.about-chain li:last-child {
    background: var(--ink-gold-light);
    border-color: var(--ink-border-gold);
}

.about-chain p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    font-weight: 600;
    color: var(--ink-dark);
}

/* --- 4. Mission ------------------------------------------------------- */
.about-mission-statement {
    font-size: clamp(1.1rem, 2.4vw, 1.35rem);
    font-weight: 800;
    line-height: 1.55;
    text-align: center;
    color: var(--ink-dark);
    max-width: 760px;
    margin: 0 auto 18px;
}

.about-mission-statement .about-gold {
    font-weight: 800;
}

.about-centered-text {
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 5. Belief -------------------------------------------------------- */
.about-belief-quote {
    margin: 0 auto 22px;
    max-width: 760px;
    padding: 20px 22px;
    text-align: center;
    border-radius: 14px;
    background: var(--ink-gold-light);
    border: 1px solid var(--ink-border-gold);
}

.about-belief-quote p {
    margin: 0;
    font-size: clamp(1.1rem, 2.4vw, 1.35rem);
    font-weight: 800;
    line-height: 1.5;
    color: var(--ink-dark);
}

.about-belief-quote .is-accent {
    margin-top: 4px;
    color: var(--ink-gold);
}

.about-belief-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 4px;
}

.about-belief-card {
    background: var(--glass-section);
    border: 1px solid var(--ink-border-wash);
    border-radius: 12px;
    padding: 18px;
}

.about-belief-card h3 {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink-gold);
    margin: 0 0 10px;
}

.about-belief-card h3[lang="zh-Hans"] {
    letter-spacing: 2px;
}

.about-not-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.about-not-list li {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink-dark);
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.about-not-list li::before {
    align-self: flex-start;
    margin-top: 0.275em; /* centre on the first line (line-height 1.4) */
}

/* --- 6. More than a match -------------------------------------------- */
.about-possibility-grid {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 10px;
}

.about-possibility-grid li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 16px 12px !important;
    border-radius: 12px;
    background: var(--glass-section);
    border: 1px solid var(--ink-border-wash);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink-dark);
    line-height: 1.4 !important;
}

.about-possibility-grid .icon {
    font-size: 1.5rem;
    line-height: 1;
}

.about-motto {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 0;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    color: var(--ink-dark);
}

.about-motto span:nth-child(2) {
    color: var(--ink-cinnabar);
}

.about-motto span:nth-child(3) {
    color: var(--ink-gold);
}

/* --- 7. Philosophy ---------------------------------------------------- */
.about-philosophy {
    text-align: center;
    border-color: var(--ink-border-gold);
}

.about-from-to {
    list-style: none;
    padding: 0;
    margin: 0 auto 22px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-from-to li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px 18px !important;
    border-radius: 12px;
    background: var(--glass-section);
    border: 1px solid var(--ink-border-wash);
    line-height: 1.4 !important;
}

.about-from-to .from {
    text-align: right;
    font-weight: 600;
    color: var(--ink-mountain-wash);
}

.about-from-to .arrow {
    color: var(--ink-gold);
    font-weight: 800;
    font-size: 1.2rem;
}

.about-from-to .to {
    text-align: left;
    font-weight: 800;
    color: var(--ink-gold);
}

.about-philosophy-motto {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 800;
    color: var(--ink-dark);
    margin: 0 0 12px;
}

.about-action-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.about-action-tags li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 32px;
    line-height: 1 !important;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-cinnabar);
    background: rgba(168, 50, 38, 0.08);
    border: 1px solid rgba(168, 50, 38, 0.22);
    padding: 0 14px !important;
    border-radius: 9999px;
}

/* --- 8. Signature ----------------------------------------------------- */
.about-signature {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    max-width: 860px;
    margin: 0 auto;
}

.about-signature-photo {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 40% 28%;
    border: 2px solid var(--ink-gold);
    box-shadow: 0 6px 18px rgba(179, 136, 47, 0.25);
    display: block;
}

.about-signature blockquote {
    margin: 0 0 12px;
    padding-left: 16px;
    border-left: 3px solid var(--ink-gold);
}

.about-signature blockquote p {
    margin: 0;
    font-size: clamp(1.02rem, 2vw, 1.2rem);
    font-weight: 600;
    font-style: italic;
    line-height: 1.6;
    color: var(--ink-dark);
}

.about-signature blockquote p[lang="zh-Hans"] {
    font-style: normal;
}

.about-signature-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--ink-dark);
}

.about-signature-role {
    margin: 2px 0 0;
    font-size: 0.82rem;
    color: var(--ink-mountain-wash);
}

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
    .about-chain {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .about-chain li:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 760px) {
    .about-panel {
        padding: 22px 16px;
    }
    .about-founder {
        grid-template-columns: 1fr;
    }
    .about-portrait {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
    .about-belief-grid {
        grid-template-columns: 1fr;
    }
    .about-possibility-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .about-signature {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .about-signature blockquote {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .about-portrait {
        aspect-ratio: 1 / 1;
    }
    .about-portrait img {
        object-position: 42% 25%;
    }
    .about-chain {
        grid-template-columns: 1fr;
    }
    .about-chain li::after {
        display: none;
    }
    .about-from-to li {
        grid-template-columns: 1fr;
        gap: 2px;
        text-align: center;
    }
    .about-from-to .from,
    .about-from-to .to {
        text-align: center;
    }
    .about-from-to .arrow {
        transform: rotate(90deg);
    }
}
