/* =============================================================
   aboutpage.css
   Place at: themes/YOUR-THEME/assets/css/aboutpage.css
   ============================================================= */

/* ─── CSS VARIABLES ─── */
:root {
    --dim-ink:       #0A0A0A;
    --dim-paper:     #F7F5F1;
    --dim-red:       #D10000;
    --dim-red-hover: #a80000;
    --dim-concrete:  #C8C0B4;
    --dim-steel:     #6B6B6B;
    --dim-white:     #ffffff;
    --dim-card-bg:   #F2F0EC;
    --dim-dark:      #0A0A0A;
    --dim-dark-card: #161616;
    --dim-border:    rgba(200,192,180,0.3);
    --dim-ff-display:'Space Grotesk', sans-serif;
    --dim-ff-body:   'Inter', sans-serif;
}

/* ─── SCROLL REVEAL UTILITY ─── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* ─── SHARED TYPOGRAPHY ─── */
.dim-label {
    font-family: var(--dim-ff-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--dim-red);
    margin-bottom: 14px;
    display: block;
}
.dim-title {
    font-family: var(--dim-ff-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--dim-ink);
}
.dim-subtitle {
    font-family: var(--dim-ff-body);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--dim-steel);
    line-height: 1.7;
    max-width: 620px;
}

/* ─── SHARED BUTTONS ─── */
.dim-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    font-family: var(--dim-ff-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    border-radius: 3px;
}
.dim-btn--primary { background: var(--dim-red); color: var(--dim-white); }
.dim-btn--primary:hover { background: var(--dim-red-hover); transform: translateY(-1px); color: var(--dim-white); }
.dim-btn--outline {
    background: transparent;
    color: var(--dim-white);
    border: 1.5px solid rgba(255,255,255,0.35);
}
.dim-btn--outline:hover { border-color: var(--dim-white); background: rgba(255,255,255,0.06); }

/* ─── SHARED SECTION WRAPPER ─── */
.dim-section {
    padding: clamp(60px, 8vw, 100px) clamp(20px, 6vw, 80px);
}
.dim-section--paper { background: var(--dim-paper); }
.dim-section--white { background: var(--dim-white); }
.dim-section--dark  { background: var(--dim-dark); }

/* ─── SHARED SECTION HEADER ─── */
.dim-header { margin-bottom: 56px; }
.dim-header--center { text-align: center; }
.dim-header--center .dim-subtitle { margin: 12px auto 0; }

/* ─── HERO ─── */
.dim-hero {
    position: relative;
    min-height: 100vh;
    background: var(--dim-dark);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}
/* Blueprint grid — the page's signature element */
.dim-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(209,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(209,0,0,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}
.dim-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(209,0,0,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(209,0,0,0.015) 1px, transparent 1px);
    background-size: 12px 12px;
    pointer-events: none;
    z-index: 0;
}
.dim-hero__content {
    position: relative;
    z-index: 1;
    padding: clamp(60px, 8vw, 100px) clamp(30px, 6vw, 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}
.dim-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dim-hero__eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--dim-red);
    flex-shrink: 0;
}
.dim-hero__eyebrow span {
    font-family: var(--dim-ff-display);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dim-concrete);
}
.dim-hero h1 {
    font-family: var(--dim-ff-display);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 700;
    color: var(--dim-white);
    line-height: 1.0;
    letter-spacing: -0.03em;
}
.dim-hero h1 em {
    font-style: normal;
    color: var(--dim-red);
}
.dim-hero__desc {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
    max-width: 480px;
}
.dim-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 8px;
}
.dim-hero__image-panel {
    position: relative;
    overflow: hidden;
    min-height: 500px;
}
.dim-hero__image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75) saturate(0.9);
    transition: transform 8s ease;
}
.dim-hero__image-panel:hover img { transform: scale(1.03); }
.dim-hero__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--dim-dark) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}
/* Architectural corner marks */
.corner-mark {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: rgba(209,0,0,0.5);
    border-style: solid;
    z-index: 2;
}
.corner-mark.tl { top: 20px; left: 20px; border-width: 1.5px 0 0 1.5px; }
.corner-mark.tr { top: 20px; right: 20px; border-width: 1.5px 1.5px 0 0; }
.corner-mark.bl { bottom: 20px; left: 20px; border-width: 0 0 1.5px 1.5px; }
.corner-mark.br { bottom: 20px; right: 20px; border-width: 0 1.5px 1.5px 0; }

/* ─── PRIMARY THEMES ─── */
.dim-themes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--dim-border);
    border: 1px solid var(--dim-border);
}
.dim-theme-card {
    background: var(--dim-white);
    padding: 40px 28px;
    text-align: center;
    transition: background 0.3s ease;
}
.dim-theme-card:hover { background: var(--dim-card-bg); }
.dim-theme-card img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin: 0 auto 20px;
    opacity: 0.85;
}
.dim-theme-card h4 {
    font-family: var(--dim-ff-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dim-ink);
}
.dim-theme-card p {
    font-size: 0.85rem;
    color: var(--dim-steel);
    line-height: 1.6;
}
.dim-themes-cta { text-align: center; }

/* ─── MODAL ─── */
.dim-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.dim-modal.open { display: flex; }
.dim-modal__box {
    position: relative;
    max-width: min(85vw, 900px);
    max-height: 85vh;
}
.dim-modal__box img { width: 100%; height: auto; border-radius: 4px; }
.dim-modal__close {
    position: absolute;
    top: -42px;
    right: 0;
    background: none;
    border: none;
    color: var(--dim-white);
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--dim-ff-display);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
}
.dim-modal__close:hover { opacity: 1; }

/* ─── MISSION & VISION ─── */
.dim-mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    max-width: 1100px;
    margin: 0 auto 48px;
}
.dim-mv-card { background: var(--dim-dark); overflow: hidden; }
.dim-mv-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    filter: brightness(0.6) saturate(0.8);
}
.dim-mv-card__body { padding: 32px 36px; }
.dim-mv-card__body h4 {
    font-family: var(--dim-ff-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dim-red);
    margin-bottom: 12px;
}
.dim-mv-card__body p {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}
.dim-mv-cta { text-align: center; }
.dim-mv-cta p {
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
    margin-top: 10px;
    letter-spacing: 0.04em;
}

/* ─── KEY OBJECTIVES ─── */
.dim-objectives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.dim-objective-card {
    background: var(--dim-white);
    border: 1px solid var(--dim-border);
    padding: 32px 28px;
    border-radius: 2px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dim-objective-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.dim-objective-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--dim-red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}
.dim-objective-card:hover::before { transform: scaleX(1); }
.dim-objective-num {
    font-family: var(--dim-ff-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--dim-red);
    margin-bottom: 16px;
}
.dim-objective-card p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.7;
}

/* ─── TARGET OUTCOMES ─── */
.dim-outcomes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    max-width: 1000px;
    margin: 0 auto;
}
.dim-outcome-item {
    background: var(--dim-dark);
    padding: 48px 36px;
    text-align: center;
    transition: background 0.3s ease;
}
.dim-outcome-item:hover { background: var(--dim-dark-card); }
.dim-outcome-letter {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--dim-red);
    color: var(--dim-white);
    font-family: var(--dim-ff-display);
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.dim-outcome-item h4 {
    font-family: var(--dim-ff-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dim-white);
    margin-bottom: 12px;
}
.dim-outcome-item p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
}

/* ─── AREAS OF INNOVATION ─── */
.dim-innovation-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--dim-border);
    border: 1px solid var(--dim-border);
    max-width: 1000px;
    margin: 0 auto;
}
.dim-innovation-item {
    background: var(--dim-white);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 36px 40px;
    transition: background 0.25s ease;
}
.dim-innovation-item:hover { background: var(--dim-card-bg); }
.dim-innovation-item__img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}
.dim-innovation-item__body h4 {
    font-family: var(--dim-ff-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dim-ink);
}
.dim-innovation-item__body p {
    font-size: 0.9rem;
    color: var(--dim-steel);
    line-height: 1.6;
}
.dim-innovation-accent {
    width: 4px;
    height: 60px;
    background: var(--dim-red);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ─── ENABLERS ─── */
.dim-enablers-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.dim-enabler-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--dim-dark-card);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 24px 28px;
    border-radius: 2px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.dim-enabler-item:hover {
    border-color: rgba(209,0,0,0.4);
    transform: translateX(4px);
}
.dim-enabler-icon {
    min-width: 36px;
    height: 36px;
    background: var(--dim-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dim-white);
    font-size: 0.85rem;
    flex-shrink: 0;
}
.dim-enabler-item p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}

/* ─── EDUCATION & TRAINING ─── */
.dim-edu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.dim-edu-card {
    background: var(--dim-white);
    border: 1px solid var(--dim-border);
    padding: 32px 28px;
    border-radius: 2px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dim-edu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.dim-edu-card__label {
    font-family: var(--dim-ff-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dim-red);
    margin-bottom: 10px;
}
.dim-edu-card p {
    font-size: 0.92rem;
    color: #444;
    line-height: 1.75;
}

/* ─── STUDIOS ─── */
.dim-studios-list {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.05);
}
.dim-studio-card {
    background: var(--dim-dark);
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 28px;
    padding: 36px 40px;
    align-items: flex-start;
    transition: background 0.3s ease;
}
.dim-studio-card:hover { background: var(--dim-dark-card); }
.dim-studio-letter {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--dim-red);
    color: var(--dim-white);
    font-family: var(--dim-ff-display);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dim-studio-card__body strong {
    font-family: var(--dim-ff-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dim-red);
    display: block;
    margin-bottom: 8px;
}
.dim-studio-card__body p {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.75;
}
.dim-float-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 40px clamp(20px, 6vw, 80px);
    border-top: 1px solid rgba(255,255,255,0.05);
    max-width: 100%;
}
.dim-float-tag {
    font-family: var(--dim-ff-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dim-red);
    border: 1.5px solid rgba(209,0,0,0.3);
    padding: 8px 16px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    cursor: default;
}
a.dim-float-tag { cursor: pointer; }
.dim-float-tag:hover { background: var(--dim-red); color: var(--dim-white); border-color: var(--dim-red); }

/* ─── WHO IT'S FOR ─── */
.dim-whosfor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--dim-border);
    border: 1px solid var(--dim-border);
    max-width: 1100px;
    margin: 0 auto;
}
.dim-whosfor-card {
    background: var(--dim-white);
    padding: 36px 28px;
    transition: background 0.25s ease;
}
.dim-whosfor-card:hover { background: var(--dim-card-bg); }
.dim-whosfor-card h3 {
    font-family: var(--dim-ff-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dim-red);
    margin-bottom: 12px;
}
.dim-whosfor-card p {
    font-size: 0.88rem;
    color: #444;
    line-height: 1.7;
}
.dim-whosfor-card--cta {
    background: var(--dim-card-bg) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 16px;
}

/* ─── METRICS ─── */
.dim-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.05);
    max-width: 900px;
    margin: 0 auto;
}
.dim-metric-item {
    background: var(--dim-dark);
    padding: 28px 32px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: background 0.25s ease;
}
.dim-metric-item:hover { background: var(--dim-dark-card); }
.dim-metric-check {
    color: var(--dim-red);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.dim-metric-item p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.65;
}

/* ─── APPLICATION ─── */
.dim-app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.dim-app-card {
    background: var(--dim-white);
    border: 1px solid var(--dim-border);
    padding: 32px 28px;
    border-radius: 2px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dim-app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}
.dim-app-card i {
    font-size: 1.4rem;
    color: var(--dim-red);
    flex-shrink: 0;
    margin-top: 3px;
    width: 24px;
}
.dim-app-card p {
    font-size: 0.92rem;
    color: #333;
    line-height: 1.7;
}

/* ─── RESPONSIVE: TABLET ─── */
@media (max-width: 1024px) {
    .dim-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .dim-hero__image-panel {
        min-height: 320px;
        order: -1;
    }
    .dim-hero__image-overlay {
        background: linear-gradient(0deg, var(--dim-dark) 0%, transparent 60%);
    }
    .dim-hero__content { padding: 48px 28px 56px; }

    .dim-themes-grid    { grid-template-columns: repeat(2, 1fr); }
    .dim-mv-grid        { grid-template-columns: 1fr; }
    .dim-outcomes-grid  { grid-template-columns: 1fr; }
    .dim-objectives-grid { grid-template-columns: repeat(2, 1fr); }
    .dim-edu-grid       { grid-template-columns: 1fr; }
    .dim-whosfor-grid   { grid-template-columns: repeat(2, 1fr); }
    .dim-metrics-grid   { grid-template-columns: 1fr; }

    .dim-innovation-item {
        grid-template-columns: auto 1fr;
        gap: 20px;
        padding: 28px 24px;
    }
    .dim-innovation-accent { display: none; }

    .dim-studio-card { padding: 28px 24px; }
    .dim-mv-card__body { padding: 24px 20px; }
    .dim-outcome-item { padding: 36px 24px; }
    .dim-float-tags { padding: 28px 24px; }
}

/* ─── RESPONSIVE: MOBILE ─── */
@media (max-width: 640px) {
    .dim-section { padding: clamp(44px, 8vw, 60px) 20px; }

    .dim-hero__actions { flex-direction: column; }
    .dim-btn           { justify-content: center; }

    .dim-themes-grid    { grid-template-columns: 1fr 1fr; }
    .dim-objectives-grid { grid-template-columns: 1fr; }
    .dim-whosfor-grid   { grid-template-columns: 1fr; }
    .dim-app-grid       { grid-template-columns: 1fr; }

    .dim-studio-card {
        grid-template-columns: 48px 1fr;
        gap: 16px;
        padding: 24px 20px;
    }
    .dim-float-tags { padding: 24px 20px; }
}
