/* ============================================
   About page — ab-* namespace
   ============================================ */

/* ── Page header ─────────────────────────────── */

.ab-hero {
    background: #ffffff;
    padding: 60px 0 72px;
    border-bottom: 1px solid var(--line);
}

.ab-hero-inner {
    max-width: 680px;
}

.ab-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 28px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.ab-back:hover {
    color: var(--teal-deep);
    gap: 10px;
}

.ab-hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 10px 0 18px;
    text-wrap: balance;
}

.ab-lead {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 520px;
    margin: 0;
}

/* ── Stats row ───────────────────────────────── */

.ab-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    margin: 48px 0;
}

.ab-stat {
    background: #ffffff;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.ab-stat-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--teal-deep);
    line-height: 1;
    letter-spacing: -0.02em;
}

.ab-stat-label {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ── Story ───────────────────────────────────── */

.ab-story-section {
    border-top: 1px solid var(--line);
}
 
.ab-story-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
}
 
.ab-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ab-gallery-stack {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 340px;
    cursor: pointer;
}

.ab-gallery-card {
    position: absolute;
    inset: 0;
    border-radius: 16px 16px 6px 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    transform: rotate(var(--r)) translate(var(--x), var(--y));
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease,
        z-index 0s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.ab-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    pointer-events: none;
    user-select: none;
}

/* top card — flat, prominent */
.ab-gallery-top {
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

/* hover — top card lifts slightly */
.ab-gallery-stack:hover .ab-gallery-top {
    transform: rotate(-1deg) translate(0px, -6px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.18);
}

/* click animation — top card flies out */
.ab-gallery-card.ab-fly-out {
    transform: rotate(12deg) translate(60px, -40px) scale(0.9) !important;
    opacity: 0;
    transition:
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease;
}

/* hint text */
.ab-gallery-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.ab-gallery-hint i {
    font-size: 12px;
}

/* hide hint after first click */
.ab-gallery-hint.ab-hint-hide {
    opacity: 0;
    pointer-events: none;
}
@media (max-width: 900px) {
    .ab-gallery-stack {
        height: 260px;
        max-width: 100%;
    }
}
 
.ab-story-copy h2 {
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 10px 0 18px;
    text-wrap: balance;
}
 
.ab-story-copy p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.75;
    margin: 0 0 14px;
}

/* ── Process steps ───────────────────────────── */

.ab-how-section {
    background: #fafafa;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.ab-process {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ab-process-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.ab-process-item:last-child {
    border-bottom: none;
}

.ab-process-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px 11px 11px 3px;
    background: var(--foam);
    color: var(--teal-deep);
    border: 1px solid rgba(13,148,136,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ab-process-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 6px;
}

.ab-process-body p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

/* ── Services summary ────────────────────────── */

.ab-services-section {
    border-top: 1px solid var(--line);
}

.ab-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.ab-service-item {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ab-service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.ab-service-item.featured {
    background: var(--foam);
    border-color: rgba(13,148,136,0.22);
}

.ab-service-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(13,148,136,0.1);
    color: var(--teal-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 14px;
}

.ab-service-item.featured .ab-service-icon {
    background: rgba(13,148,136,0.15);
}

.ab-service-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 8px;
}

.ab-service-item p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* ── Operations ──────────────────────────────── */

.ab-ops-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: start;
}

.ab-ops-copy h2 {
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 10px 0 18px;
}

.ab-ops-copy p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.75;
    margin: 0 0 14px;
}

.ab-ops-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.ab-ops-tags span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--teal-darker);
    background: var(--foam);
    border: 1px solid rgba(13,148,136,0.2);
    padding: 6px 12px;
    border-radius: 7px;
}

.ab-ops-tags span i {
    font-size: 12px;
}

.ab-ops-card {
    position: sticky;
    top: 100px;
}

.ab-ops-card-inner {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px 16px 16px 4px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.ab-ops-card-inner h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0 0 10px;
}

.ab-ops-card-inner p {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 4px;
}

.ab-ops-address {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--muted) !important;
    line-height: 1.6;
}

.ab-ops-divider {
    height: 1px;
    background: var(--line);
    margin: 18px 0;
}

.ab-ops-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 10px;
}

.ab-ops-detail:last-child {
    margin-bottom: 0;
}

.ab-ops-detail i {
    color: var(--teal);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* ── Dark mode ───────────────────────────────── */

html.dark-mode .ab-hero          { background: #0a0a0a; border-bottom-color: #1f1f1f; }
html.dark-mode .ab-hero h1       { color: #ffffff; }
html.dark-mode .ab-back          { color: #6b7280; }
html.dark-mode .ab-back:hover    { color: #2dd4bf; }

html.dark-mode .ab-stats         { background: #1f1f1f; border-color: #1f1f1f; }
html.dark-mode .ab-stat          { background: #111111; }
html.dark-mode .ab-stat-label    { color: #6b7280; }

html.dark-mode .ab-story-section { border-top-color: #1f1f1f; }
html.dark-mode .ab-story-photo img { border-color: #1f1f1f; }
html.dark-mode .ab-story-copy h2  { color: #ffffff; }
html.dark-mode .ab-story-copy p   { color: #9ca3af; }

html.dark-mode .ab-how-section   { background: #0f0f0f; border-color: #1f1f1f; }
html.dark-mode .ab-process-item  { border-bottom-color: #1f1f1f; }
html.dark-mode .ab-process-icon  { background: rgba(13,148,136,0.12); border-color: rgba(13,148,136,0.2); color: #2dd4bf; }
html.dark-mode .ab-process-body h4 { color: #ffffff; }
html.dark-mode .ab-process-body p  { color: #9ca3af; }

html.dark-mode .ab-services-section { border-top-color: #1f1f1f; }
html.dark-mode .ab-service-item  { background: #111111; border-color: #1f1f1f; }
html.dark-mode .ab-service-item.featured { background: rgba(13,148,136,0.08); border-color: rgba(13,148,136,0.2); }
html.dark-mode .ab-service-icon  { background: rgba(13,148,136,0.12); color: #2dd4bf; }
html.dark-mode .ab-service-item h4 { color: #ffffff; }
html.dark-mode .ab-service-item p  { color: #9ca3af; }

html.dark-mode .ab-ops-copy h2  { color: #ffffff; }
html.dark-mode .ab-ops-copy p   { color: #9ca3af; }
html.dark-mode .ab-ops-tags span { background: rgba(13,148,136,0.1); border-color: rgba(13,148,136,0.2); color: #2dd4bf; }
html.dark-mode .ab-ops-card-inner { background: #111111; border-color: #1f1f1f; box-shadow: none; }
html.dark-mode .ab-ops-card-inner p { color: #ffffff; }
html.dark-mode .ab-ops-address  { color: #9ca3af !important; }
html.dark-mode .ab-ops-divider  { background: #1f1f1f; }
html.dark-mode .ab-ops-detail   { color: #9ca3af; }
html.dark-mode .ab-ops-detail i { color: #2dd4bf; }

/* ── Responsive ──────────────────────────────── */

@media (max-width: 900px) {
    .ab-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .ab-story-grid,
    .ab-ops-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ab-story-photo img {
        height: 240px;
    }

    .ab-ops-card {
        position: static;
    }
}

@media (max-width: 540px) {
    .ab-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .ab-hero { padding: 40px 0 52px; }
    .ab-hero h1 { font-size: 26px; }
    .ab-stat-num { font-size: 28px; }
}
