/*! Ditat Theme v1.2.0 — assets/css/company.css
 * (c) Ditat — https://ditat.com — All rights reserved */

.co-hero {
    background: var(--navy-deep);
    text-align: center;
}

.co-hero-video {
    transition: opacity 1.2s ease;
}

.co-hero-video.is-active {
    opacity: 1;
}

.co-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 0 auto;
}

@media (max-width: 820px) {
    .co-hero {
        padding: 72px 0;
    }

    .co-hero-lead br {
        display: none;
    }

    .co-hero-lead {
        text-wrap: balance;
    }
}

.co-about-inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
}

.co-about-photo {
    position: relative;
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy-deep);
    aspect-ratio: 4 / 5;
}

.co-about-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
    will-change: transform;
}

.co-about-photo:hover img {
    transform: scale(1.04);
}

.co-about-content {
    min-width: 0;
}

.co-about-content .eyebrow {
    margin-bottom: 14px;
}

.co-about-title {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin: 0 0 16px;
}

.co-about-lead {
    color: var(--muted);
    font-size: 1.125rem;
    line-height: 1.5;
    margin: 0 0 30px;
    max-width: 560px;
}

.co-about-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.co-about-card {
    padding: 22px 28px 24px;
    cursor: default;
}

.co-about-card-title {
    font-size: 1.25rem;
    margin: 0 0 8px;
}

.co-about-card-desc {
    color: var(--muted);
    font-size: .9375rem;
    line-height: 1.6;
    margin: 0;
}

.co-about-card.js-reveal {
    opacity: 0;
}

.co-about-card.js-reveal.is-revealed {
    opacity: 1;
    animation: coAboutReveal .6s ease backwards;
}

.co-about-cards .co-about-card.js-reveal.is-revealed:nth-child(2) {
    animation-delay: .1s;
}

.co-about-cards .co-about-card.js-reveal.is-revealed:nth-child(3) {
    animation-delay: .2s;
}

.co-about-cards .co-about-card.js-reveal.is-revealed:nth-child(4) {
    animation-delay: .3s;
}

@keyframes coAboutReveal {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.co-about-photo.js-reveal {
    opacity: 0;
}

.co-about-photo.js-reveal.is-revealed {
    opacity: 1;
    animation: coAboutPhotoIn .7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes coAboutPhotoIn {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1100px) {
    .co-about-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .co-about-photo {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

    .co-about-lead {
        max-width: none;
    }
}

.co-timeline {
    --co-node: 18px;
    --co-gap: 28px;
    --co-drop: 22px;
    --co-col-stride: calc(
        (100% - (var(--co-timeline-count, 3) - 1) * var(--co-gap)) / var(--co-timeline-count, 3)
        + var(--co-gap)
    );
    --co-last-dot: calc((var(--co-timeline-count, 3) - 1) * var(--co-col-stride) + var(--co-node) / 2);
    display: flex;
    align-items: stretch;
    gap: var(--co-gap);
    list-style: none;
    margin: 56px 0 0;
    padding: 0;
    position: relative;
    isolation: isolate;
}

.co-timeline::before,
.co-timeline::after {
    content: '';
    position: absolute;
    top: calc(var(--co-node) / 2);
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
    pointer-events: none;
}

.co-timeline::before {
    background: linear-gradient(90deg,
        var(--line-strong) 0,
        var(--line-strong) var(--co-last-dot),
        transparent 100%);
    z-index: 0;
}

.co-timeline::after {
    background: linear-gradient(90deg,
        var(--coral) 0,
        var(--coral-bright) var(--co-last-dot),
        transparent 100%);
    z-index: 1;
    clip-path: inset(0 100% 0 0);
}

.co-timeline.is-revealed::after {
    animation: coRailFill var(--co-fill-duration) linear forwards;
    animation-delay: var(--co-flash-start);
}

@keyframes coRailFill {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
}

.co-timeline-step {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: default;
}

.co-timeline-node {
    position: relative;
    z-index: 2;
    height: var(--co-node);
    display: grid;
    place-items: center;
    margin-bottom: var(--co-drop);
}

.co-timeline-dot {
    width: var(--co-node);
    height: var(--co-node);
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--line-strong);
    box-shadow: 0 0 0 4px var(--soft);
    transition: border-color .25s ease, background .25s ease,
                box-shadow .25s ease, transform .25s ease;
}

.co-timeline.is-done .co-timeline-step:hover .co-timeline-dot {
    transform: scale(1.18);
    border-color: var(--coral);
}

.co-timeline {
    --co-flash-duration: 700ms;
    --co-flash-stride: 900ms;
    --co-flash-start: 200ms;
    --co-fill-duration: calc(var(--co-flash-stride) * var(--co-timeline-count, 3));
}

.co-timeline.is-revealed .co-timeline-dot {
    animation: coBadgeFlash var(--co-flash-duration) ease-out both;
    animation-delay: calc(var(--co-flash-start) + var(--i, 0) * var(--co-flash-stride));
}

.co-timeline.is-revealed .co-timeline-step.is-now .co-timeline-dot {
    animation-name: coBadgeStay;
    animation-fill-mode: forwards;
}

@keyframes coBadgeFlash {
    0%   { border-color: var(--line-strong); box-shadow: 0 0 0 4px var(--soft), 0 0 0 4px  rgb(var(--cta-rgb) / 0);    }
    45%  { border-color: var(--coral);       box-shadow: 0 0 0 4px var(--soft), 0 0 0 10px rgb(var(--cta-rgb) / 0.20); }
    100% { border-color: var(--line-strong); box-shadow: 0 0 0 4px var(--soft), 0 0 0 4px  rgb(var(--cta-rgb) / 0);    }
}

@keyframes coBadgeStay {
    0%   { border-color: var(--line-strong); background: var(--white); box-shadow: 0 0 0 4px var(--soft), 0 0 0 4px  rgb(var(--cta-rgb) / 0);    }
    55%  { border-color: var(--coral);       background: var(--coral); box-shadow: 0 0 0 4px var(--soft), 0 0 0 11px rgb(var(--cta-rgb) / 0.22); }
    100% { border-color: var(--coral);       background: var(--coral); box-shadow: 0 0 0 4px var(--soft), 0 0 0 7px  rgb(var(--cta-rgb) / 0.12); }
}

.co-timeline-content {
    width: 100%;
    max-width: 300px;
    text-align: left;
    transition: transform .25s ease;
}

.co-timeline.is-done .co-timeline-step:hover .co-timeline-content {
    transform: translateY(6px);
}

.co-timeline.js-reveal:not(.is-revealed) .co-timeline-content {
    opacity: 0;
}

.co-timeline.is-revealed .co-timeline-content {
    animation: coContentIn .6s cubic-bezier(.22, 1, .36, 1) backwards;
    animation-delay: calc(var(--co-flash-start) + var(--i, 0) * var(--co-flash-stride));
}

@keyframes coContentIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

.co-timeline-year {
    display: block;
    font-size: 1.4375rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 12px;
    transition: color .2s ease;
}

.co-timeline.is-revealed .co-timeline-year {
    animation: coYearFlash var(--co-flash-duration) ease-out;
    animation-delay: calc(var(--co-flash-start) + var(--i, 0) * var(--co-flash-stride));
}

.co-timeline.is-revealed .co-timeline-step.is-now .co-timeline-year {
    animation-name: coYearStay;
    animation-fill-mode: forwards;
}

@keyframes coYearFlash {
    0%   { color: var(--muted); }
    45%  { color: var(--coral); }
    100% { color: var(--muted); }
}

@keyframes coYearStay {
    0%   { color: var(--muted); }
    50%  { color: var(--coral); }
    100% { color: var(--coral); }
}

.co-timeline.is-done .co-timeline-step:hover .co-timeline-year {
    color: var(--coral);
}

.co-timeline-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 8px;
    line-height: 1.3;
}

.co-timeline-desc,
.co-contact-block-body p {
    color: var(--muted);
    font-size: .90625rem;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 820px) {
    .co-timeline {
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
        margin-top: 40px;
    }

    .co-timeline::before,
    .co-timeline::after {
        display: none;
    }

    .co-timeline-step {
        display: grid;
        grid-template-columns: var(--co-node) 1fr;
        column-gap: 18px;
        align-items: start;
    }

    .co-timeline-step:not(:last-child)::before,
    .co-timeline-step:not(:last-child)::after {
        content: '';
        position: absolute;
        left: calc(var(--co-node) / 2);
        top: var(--co-node);
        bottom: -22px;
        width: 2px;
        transform: translateX(-50%);
    }

    .co-timeline-step:last-child::before,
    .co-timeline-step:last-child::after {
        content: '';
        position: absolute;
        left: calc(var(--co-node) / 2);
        top: var(--co-node);
        height: 56px;
        width: 2px;
        transform: translateX(-50%);
    }

    .co-timeline-step::before {
        background: var(--line-strong);
        z-index: 0;
    }

    .co-timeline-step:last-child::before {
        background: linear-gradient(180deg, var(--line-strong) 0, transparent 100%);
    }

    .co-timeline-step::after {
        background: linear-gradient(180deg, var(--coral), var(--coral-bright));
        z-index: 1;
        clip-path: inset(0 0 100% 0);
    }

    .co-timeline-step:last-child::after {
        background: linear-gradient(180deg, var(--coral) 0, transparent 100%);
    }

    .co-timeline.is-revealed .co-timeline-step::after {
        animation: coRailFillDown var(--co-flash-stride) linear forwards;
        animation-delay: calc(var(--co-flash-start) + var(--i, 0) * var(--co-flash-stride));
    }

    .co-timeline-node {
        margin-bottom: 0;
    }

    .co-timeline-content {
        max-width: none;
        margin: 0;
        text-align: left;
    }
}

@keyframes coRailFillDown {
    from { clip-path: inset(0 0 100% 0); }
    to   { clip-path: inset(0 0 0 0); }
}

.co-leader {
    background: linear-gradient(180deg, #102d57 0%, #0c2447 100%);
    position: relative;
    overflow: hidden;
}

.co-leader::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(38% 55% at 24% 55%, rgba(255, 255, 255, 0.11) 0%, transparent 65%),
        radial-gradient(28% 45% at 16% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

.co-leader-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, 290px) 1fr;
    gap: 48px;
    align-items: stretch;
}

.co-leader-photo {
    position: relative;
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy-deep);
    aspect-ratio: 4 / 5.4;
    min-height: 100%;
}

.co-leader-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .45s ease;
    will-change: transform;
}

.co-leader-photo:hover img {
    transform: scale(1.04);
}

.co-leader-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 22px 24px 24px;
    background: linear-gradient(180deg, rgb(var(--navy-deep-rgb) / 0) 0%, rgb(var(--navy-deep-rgb) / 0.88) 65%, rgb(var(--navy-deep-rgb) / 0.95) 100%);
    color: var(--white);
    text-align: left;
}

.co-leader-name {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.co-leader-role {
    display: block;
    font-size: .6875rem;
    font-weight: 800;
    color: var(--coral-bright);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.co-leader-bio {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: .84375rem;
    line-height: 1.5;
}

.co-leader-content {
    display: flex;
    flex-direction: column;
}

.co-leader-content .eyebrow {
    margin-bottom: 14px;
    color: var(--coral-bright);
}

.co-leader-title {
    color: var(--white);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin: 0 0 14px;
}

.co-leader-lead {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 22px;
    max-width: 720px;
}

.co-leader-card {
    cursor: default;
    min-height: 0;
    margin-top: auto;
    padding: 32px 36px;
    display: grid;
    grid-template-columns: minmax(0, 74%) minmax(0, 26%);
    column-gap: 16px;
    align-items: stretch;
}

.co-leader-card-text {
    min-width: 0;
    align-self: center;
}

.co-leader-card-title {
    font-size: 1.375rem;
    line-height: 1.3;
    margin: 0 0 8px;
}

.co-leader-card-desc {
    font-size: .90625rem;
    line-height: 1.55;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
}

.co-leader-bullets {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    list-style: none;
    padding: 0 0 0 18px;
    margin: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.co-leader-bullets li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-on-dark);
    font-size: .84375rem;
    font-weight: 600;
}

.co-leader-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    color: var(--coral-bright);
    flex-shrink: 0;
}

.co-leader-check svg {
    width: 14px;
    height: 14px;
    display: block;
}

@media (max-width: 900px) {
    .co-leader-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .co-leader-photo {
        min-height: 0;
        aspect-ratio: 4 / 4.2;
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }

    .co-leader-photo img {
        object-position: center 20%;
    }

    .co-leader-card {
        grid-template-columns: 1fr;
        row-gap: 22px;
    }

    .co-leader-bullets {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px 18px;
        padding: 18px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
}

.co-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    margin-top: 16px;
    align-items: stretch;
}

.co-contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-height: 100%;
}

.co-contact-blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.co-contact-block {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 16px;
    align-items: start;
}

.co-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgb(var(--cta-rgb) / 0.08);
    color: var(--coral);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.co-contact-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.co-contact-block-body strong {
    display: block;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.co-contact-block-body a {
    color: inherit;
    transition: color .15s ease;
}

.co-contact-block-body a:hover {
    color: var(--coral);
}

.co-contact-map {
    flex: 1;
    min-height: 220px;
    margin-top: 4px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--soft);
}

.co-contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: inherit;
    border: 0;
    display: block;
}

.co-contact-form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px 36px 32px;
    box-shadow: 0 4px 20px rgba(var(--shadow-base) / 0.04);
}

.co-contact-form-title {
    color: var(--navy);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 22px;
}

.co-contact-form-card:has(.contact-form.is-done) {
    display: flex;
    flex-direction: column;
}

.co-contact-form-card:has(.contact-form.is-done) .co-contact-form-title {
    display: none;
}

.co-contact-form-card .contact-form.is-done {
    flex: 1;
    justify-content: center;
}

@media (max-width: 900px) {
    .co-contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .co-contact-blocks {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .co-contact-form-card {
        padding: 24px;
    }

    .co-contact-form-title {
        font-size: 1.25rem;
    }
}
