.about-page {
    --about-primary: var(--primary, #ff665b);
    --about-primary-dark: var(--primary-dark, #f05249);
    --about-secondary: var(--secondary, #2f855a);
    --about-secondary-dark: var(--secondary-dark, #246b48);
    --about-accent: var(--accent, #ff9b20);
    --about-ink: var(--ink, #183b2b);
    --about-muted: var(--muted, #5f6d64);
    --about-line: var(--line, #d9e8dd);
    --about-soft: var(--soft, #eef8f1);
    --about-shadow: var(--shadow-soft, 0 14px 34px rgba(var(--shadow-rgb), .07));
    color: var(--about-ink);
}

.about-page *,
.about-page *::before,
.about-page *::after {
    box-sizing: border-box;
}

.about-page-hero .crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.about-page-hero .crumb a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.about-page-hero .crumb a:hover {
    color: var(--about-primary);
}

.about-story-section {
    position: relative;
    overflow: hidden;
    padding-top: clamp(52px, 7vw, 88px);
    padding-bottom: clamp(72px, 9vw, 118px);
    background:
        radial-gradient(circle at 3% 9%, rgba(255, 155, 32, .08), transparent 24rem),
        radial-gradient(circle at 98% 52%, rgba(var(--secondary-rgb), .08), transparent 27rem),
        var(--white);
}

.about-story-card {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    overflow: hidden;
    border: 1px solid var(--about-line);
    border-radius: 32px;
    background: var(--white);
    box-shadow: var(--about-shadow);
}

.about-story-card + .about-story-card {
    margin-top: 34px;
}

.about-story-card.is-reverse .about-story-gallery {
    order: 2;
}

.about-story-gallery {
    min-width: 0;
    padding: 22px;
    background:
        radial-gradient(circle at 0 0, rgba(255, 255, 255, .78), transparent 16rem),
        var(--about-soft);
}

.about-gallery-stage {
    position: relative;
    height: clamp(410px, 43vw, 610px);
    overflow: hidden;
    border-radius: 23px;
    background: #dbeee1;
}

.about-gallery-slides,
.about-gallery-slide,
.about-gallery-zoom-button {
    width: 100%;
    height: 100%;
}

.about-gallery-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    visibility: hidden;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity .45s ease, transform .55s ease, visibility .45s ease;
}

.about-gallery-slide.is-active {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}

.about-gallery-zoom-button {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.about-gallery-zoom-button::after {
    position: absolute;
    inset: 55% 0 0;
    content: '';
    background: linear-gradient(transparent, rgba(var(--overlay-rgb), .38));
    pointer-events: none;
}

.about-gallery-zoom-button > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.about-gallery-zoom-button:hover > img {
    transform: scale(1.035);
}

.about-gallery-zoom-icon {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px;
    color: var(--about-secondary-dark);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 22px rgba(var(--ink-rgb), .14);
    backdrop-filter: blur(7px);
}

.about-gallery-zoom-icon svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
}

.about-gallery-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    transform: translateY(-50%);
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 16px;
    color: var(--about-ink);
    background: rgba(255, 255, 255, .91);
    box-shadow: 0 9px 23px rgba(var(--ink-rgb), .13);
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease;
    backdrop-filter: blur(7px);
}

.about-gallery-arrow:hover {
    color: var(--white);
    background: var(--about-secondary);
    transform: translateY(-50%) scale(1.04);
}

.about-gallery-prev {
    left: 17px;
}

.about-gallery-next {
    right: 17px;
}

.about-gallery-counter {
    position: absolute;
    z-index: 3;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 37px;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(var(--overlay-rgb), .72);
    font-size: 12px;
    backdrop-filter: blur(7px);
}

.about-gallery-counter strong {
    font-size: 15px;
}

.about-gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 12px;
    padding: 2px 2px 7px;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--secondary-rgb), .35) transparent;
}

.about-gallery-thumbnail {
    width: 76px;
    height: 61px;
    overflow: hidden;
    flex: 0 0 76px;
    padding: 0;
    border: 3px solid transparent;
    border-radius: 13px;
    opacity: .58;
    background: #dbeee1;
    cursor: pointer;
    transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}

.about-gallery-thumbnail:hover,
.about-gallery-thumbnail.is-active {
    opacity: 1;
    transform: translateY(-2px);
    border-color: var(--about-primary);
}

.about-gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-gallery-empty {
    display: grid;
    min-height: 500px;
    place-content: center;
    justify-items: center;
    gap: 15px;
    border-radius: 23px;
    color: var(--about-secondary-dark);
    background: linear-gradient(145deg, #ebf7ef, #d9eddf);
    font-weight: 800;
}

.about-gallery-empty svg {
    width: 86px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.about-story-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 4.5vw, 66px);
}

.about-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--about-primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.about-page-eyebrow > span {
    width: 28px;
    height: 3px;
    border-radius: 20px;
    background: currentColor;
}

.about-story-copy > h2,
.about-values-heading h2 {
    margin: 12px 0 0;
    color: var(--about-ink);
    font-size: clamp(31px, 4vw, 48px);
    line-height: 1.14;
}

.about-rich-text,
.about-story-empty-text {
    margin-top: 21px;
    color: var(--about-muted);
    font-size: 16px;
    line-height: 1.82;
}

.about-rich-text > *:first-child {
    margin-top: 0;
}

.about-rich-text > *:last-child {
    margin-bottom: 0;
}

.about-rich-text h2,
.about-rich-text h3,
.about-rich-text h4 {
    margin-top: 1.35em;
    color: var(--about-ink);
    line-height: 1.3;
}

.about-rich-text ul,
.about-rich-text ol {
    padding-left: 21px;
}

.about-rich-text li + li {
    margin-top: 7px;
}

.about-rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 17px;
}

.about-rich-text a {
    color: var(--about-secondary-dark);
}

.about-story-note {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    margin-top: 29px;
    padding: 16px;
    border: 1px solid rgba(255, 102, 91, .15);
    border-radius: 18px;
    background: #fff7f5;
}

.about-story-note > span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px;
    color: var(--white);
    background: var(--about-primary);
}

.about-story-note svg {
    width: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.about-story-note p {
    margin: 0;
    color: #5c5555;
    font-size: 13px;
    line-height: 1.55;
}

.about-page-empty {
    padding: 55px 25px;
    border: 1px dashed var(--about-line);
    border-radius: 27px;
    text-align: center;
    background: var(--surface-soft);
}

.about-page-empty h2,
.about-page-empty p {
    margin: 0;
}

.about-page-empty p {
    margin-top: 9px;
    color: var(--about-muted);
}

.about-values-section {
    margin-top: clamp(62px, 8vw, 104px);
}

.about-values-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 29px;
}

.about-values-heading h2 {
    font-size: clamp(29px, 3.5vw, 43px);
}

.about-values-heading > p {
    max-width: 450px;
    margin: 0;
    color: var(--about-muted);
    line-height: 1.7;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.about-value-card {
    position: relative;
    overflow: hidden;
    min-height: 265px;
    padding: 25px;
    border: 1px solid var(--about-line);
    border-radius: 23px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(var(--shadow-rgb), .055);
    transition: transform .25s ease, box-shadow .25s ease;
}

.about-value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(var(--shadow-rgb), .1);
}

.about-value-card::after {
    position: absolute;
    right: -42px;
    bottom: -48px;
    width: 120px;
    height: 120px;
    content: '';
    border: 20px solid currentColor;
    border-radius: 50%;
    opacity: .045;
}

.about-value-icon {
    display: grid;
    width: 53px;
    height: 53px;
    place-items: center;
    border-radius: 17px;
    color: var(--white);
}

.about-value-icon svg {
    width: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.value-development .about-value-icon {
    background: var(--about-secondary);
}

.value-care .about-value-icon {
    background: var(--about-primary);
}

.value-creativity .about-value-icon {
    background: var(--about-accent);
}

.value-ecology .about-value-icon {
    background: #72af64;
}

.about-value-number {
    position: absolute;
    top: 26px;
    right: 24px;
    color: var(--line);
    font-size: 25px;
    font-weight: 900;
}

.about-value-card h3,
.about-value-card p {
    margin: 0;
}

.about-value-card h3 {
    margin-top: 22px;
    color: var(--about-ink);
    font-size: 20px;
}

.about-value-card p {
    margin-top: 9px;
    color: var(--about-muted);
    font-size: 14px;
    line-height: 1.65;
}

.about-home-more {
    display: inline-flex;
    width: fit-content;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-top: 20px;
    padding: 11px 19px;
    border-radius: 14px;
    color: var(--white);
    background: var(--primary, #ff665b);
    box-shadow: 0 10px 22px rgba(255, 102, 91, .22);
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.about-home-more:hover {
    transform: translateY(-2px);
    color: var(--white);
    background: var(--primary-dark, #f05249);
}

.about-image-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(var(--overlay-rgb), .93);
}

.about-image-dialog::backdrop {
    background: rgba(var(--overlay-rgb), .93);
}

.about-image-dialog-panel {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    padding: 30px 90px;
    place-items: center;
}

.about-image-dialog-panel > img {
    display: block;
    max-width: min(92vw, 1600px);
    max-height: calc(100dvh - 90px);
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .45);
}

.about-dialog-close,
.about-dialog-arrow {
    position: fixed;
    z-index: 4;
    display: grid;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    color: var(--white);
    background: rgba(255, 255, 255, .1);
    font: inherit;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.about-dialog-close {
    top: 18px;
    right: 20px;
    width: 49px;
    height: 49px;
    border-radius: 15px;
    font-size: 30px;
}

.about-dialog-arrow {
    top: 50%;
    width: 52px;
    height: 52px;
    transform: translateY(-50%);
    border-radius: 16px;
    font-size: 31px;
}

.about-dialog-prev {
    left: 22px;
}

.about-dialog-next {
    right: 22px;
}

.about-dialog-counter {
    position: fixed;
    bottom: 18px;
    left: 50%;
    padding: 8px 14px;
    transform: translateX(-50%);
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, .12);
    font-size: 13px;
    backdrop-filter: blur(8px);
}

.about-dialog-open {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .about-story-card {
        grid-template-columns: 1fr;
    }

    .about-story-card.is-reverse .about-story-gallery {
        order: initial;
    }

    .about-gallery-stage {
        height: min(68vw, 590px);
    }

    .about-values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .about-story-card {
        border-radius: 24px;
    }

    .about-story-gallery {
        padding: 14px;
    }

    .about-gallery-stage {
        height: min(76vw, 470px);
        border-radius: 18px;
    }

    .about-story-copy {
        padding: 30px 22px 35px;
    }

    .about-values-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .about-image-dialog-panel {
        padding: 16px;
    }

    .about-image-dialog-panel > img {
        max-width: 96vw;
        max-height: calc(100dvh - 90px);
    }

    .about-dialog-arrow {
        top: auto;
        bottom: 18px;
        width: 45px;
        height: 45px;
        transform: none;
        border-radius: 14px;
    }

    .about-dialog-prev {
        left: 16px;
    }

    .about-dialog-next {
        right: 16px;
    }
}

@media (max-width: 560px) {
    .about-page-eyebrow {
        font-size: 10px;
    }

    .about-story-copy > h2,
    .about-values-heading h2 {
        font-size: 29px;
    }

    .about-gallery-arrow {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .about-gallery-prev {
        left: 11px;
    }

    .about-gallery-next {
        right: 11px;
    }

    .about-gallery-zoom-icon {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .about-values-grid {
        grid-template-columns: 1fr;
    }

    .about-value-card {
        min-height: auto;
    }

    .about-story-note {
        grid-template-columns: 41px minmax(0, 1fr);
    }

    .about-story-note > span {
        width: 41px;
        height: 41px;
        border-radius: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-page *,
    .about-page *::before,
    .about-page *::after,
    .about-home-more {
        transition: none !important;
    }
}
