.page-body .cert-page {
    position: relative;
    overflow: clip;
    background: #f3f6fb;
    color: #101b2e;
}

.page-body .cert-page::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 400px;
    bottom: 0;
    width: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: url("../img/about-flow.svg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
}

.page-body .cert-page > section { position: relative; z-index: 1; }

.page-body .cert-page > .stage-hero {
    position: relative;
    overflow: hidden;
    padding: 128px 0 84px;
    background: #08111f !important;
    color: #fff !important;
}

.cert-page .stage-hero-lines {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    pointer-events: none;
}

.cert-page .stage-hero-lines span { position: relative; height: 100%; }
.cert-page .stage-hero-lines span:nth-child(1)  { background: linear-gradient(90deg, #07101C 0%, #0C1728 45%, #060E18 100%); }
.cert-page .stage-hero-lines span:nth-child(2)  { background: linear-gradient(90deg, #0E1B30 0%, #152844 42%, #0A1524 100%); }
.cert-page .stage-hero-lines span:nth-child(3)  { background: linear-gradient(90deg, #13233F 0%, #1C3558 40%, #0F1C32 100%); }
.cert-page .stage-hero-lines span:nth-child(4)  { background: linear-gradient(90deg, #1A3054 0%, #264872 38%, #152844 100%); }
.cert-page .stage-hero-lines span:nth-child(5)  { background: linear-gradient(90deg, #23406A 0%, #35598A 36%, #1C3558 100%); }
.cert-page .stage-hero-lines span:nth-child(6)  { background: linear-gradient(90deg, #2C4A78 0%, #3F6A9C 34%, #284472 100%); }
.cert-page .stage-hero-lines span:nth-child(7)  { background: linear-gradient(90deg, #35598A 0%, #4A78AE 32%, #2C4A78 100%); }
.cert-page .stage-hero-lines span:nth-child(8)  { background: linear-gradient(90deg, #2C4A78 0%, #3F6A9C 34%, #23406A 100%); }
.cert-page .stage-hero-lines span:nth-child(9)  { background: linear-gradient(90deg, #23406A 0%, #35598A 36%, #1A3054 100%); }
.cert-page .stage-hero-lines span:nth-child(10) { background: linear-gradient(90deg, #1A3054 0%, #264872 38%, #13233F 100%); }
.cert-page .stage-hero-lines span:nth-child(11) { background: linear-gradient(90deg, #13233F 0%, #1C3558 42%, #0E1B30 100%); }
.cert-page .stage-hero-lines span:nth-child(12) { background: linear-gradient(90deg, #0E1B30 0%, #152844 45%, #07101C 100%); }

.cert-page .stage-hero-inner {
    position: relative;
    z-index: 1;
    width: 90%;
    margin: 0 auto;
}

.cert-page .stage-crumb {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 22px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

.cert-page .stage-crumb a { color: #fff; }
.cert-page .stage-kicker {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ff7a1a;
}

.page-body .cert-page > .stage-hero h1 {
    margin: 0 0 16px;
    font-family: var(--font-display, "Sora", sans-serif);
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.02;
    color: #fff !important;
}

.cert-page .stage-lead {
    margin: 0;
    max-width: 36em;
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

.cert-board {
    width: 90%;
    margin: 28px auto 72px;
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 16px;
    background: transparent !important;
}

.cert-logo,
.cert-copy,
.cert-slider {
    background: #fff;
    border: 1px solid rgba(16, 40, 74, 0.08);
    border-radius: 22px;
}

.cert-logo {
    min-height: 280px;
    display: grid;
    place-items: center;
    padding: 28px;
}

.cert-logo img {
    width: min(240px, 80%);
    height: auto;
    object-fit: contain;
}

.cert-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 40px;
}

.cert-copy .stage-kicker { color: #ff6200; }

.cert-copy h2 {
    margin: 0 0 14px;
    font-family: var(--font-display, "Sora", sans-serif);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #101b2e;
}

.cert-copy p {
    margin: 0;
    max-width: 46em;
    font-size: 16px;
    line-height: 1.7;
    color: #3c4b66;
}

.cert-slider {
    grid-column: 1 / -1;
    overflow: hidden;
    padding: 22px 0;
}

.cert-track {
    display: flex;
    gap: 16px;
    width: max-content;
    padding: 0 22px;
    animation: certMarquee 32s linear infinite;
}

.cert-slider:hover .cert-track { animation-play-state: paused; }

.cert-slider--still .cert-track {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    animation: none;
}

@keyframes certMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.cert-card {
    position: relative;
    width: 210px;
    height: 210px;
    flex: none;
    overflow: hidden;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    background: #fff;
}

.cert-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 840px;
    height: 1100px;
    border: 0;
    pointer-events: none;
    transform: scale(0.25);
    transform-origin: top left;
    background: #fff;
}

.cert-card a,
.cert-card .cert-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 28px 12px 12px;
    background: linear-gradient(180deg, transparent 42%, rgba(8, 17, 31, 0.78));
    color: #fff;
}

.cert-card strong {
    font-size: 14px;
    line-height: 1.3;
}

.cert-mark {
    position: absolute;
    inset: 16px 14px 52px;
    display: grid;
    place-items: center;
    text-align: center;
    font-family: var(--font-display, "Sora", sans-serif);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #284472;
}

.cert-card img.cert-mark {
    width: calc(100% - 28px);
    height: calc(100% - 68px);
    object-fit: contain;
}

.cert-empty {
    grid-column: 1 / -1;
    margin: 0;
    color: #3c4b66;
}

.page-body .legal-page > section:not(.stage-hero) {
    background: transparent !important;
}

.legal-card {
    width: 90%;
    max-width: none;
    margin: 28px auto 72px;
    background: #fff;
    border: 1px solid rgba(16, 40, 74, 0.08);
    border-radius: 22px;
    padding: 40px 48px 48px;
}

.legal-copy h2 {
    margin: 0 0 18px;
    font-family: var(--font-display, "Sora", sans-serif);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #101b2e;
}

.legal-copy h3 {
    margin: 28px 0 10px;
    font-size: 20px;
    font-weight: 600;
    color: #10284a;
}

.legal-copy h4 {
    margin: 20px 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #284472;
}

.legal-copy p,
.legal-copy li {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.75;
    color: #3c4b66;
}

.legal-copy ul { margin: 0 0 16px; padding-left: 1.2em; }

.legal-copy a {
    color: #ff6200;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .legal-card { padding: 24px 18px 28px; }
}

.partner-points {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.partner-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #10284a;
}

.partner-points li i { color: #ff7a1a; }

.cta-band .page-cta-mini {
    width: 100%;
    max-width: none;
}

.page-body main.cert-page > section.org {
    --org-gap: 18px;
    --org-drop: 36px;
    --org-twig: 22px;
    --org-wire: #b4c2d6;
    padding: 76px 0 56px;
    background: transparent;
}

.org-inner {
    position: relative;
    width: min(1640px, 92%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Root: CEO */
.org-ceo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 28px;
    width: min(100%, 620px);
    padding: 26px 34px 26px 26px;
    border-radius: 28px;
    background: linear-gradient(135deg, #15294a 0%, #0c1829 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px rgba(8, 17, 31, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: teamIn 0.8s ease both;
}

.org-ceo::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 122, 26, 0.9), rgba(255, 122, 26, 0) 45%, rgba(120, 160, 220, 0.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.org-ceo-photo {
    position: relative;
    flex: 0 0 auto;
    width: 184px;
    height: 230px;
    padding: 4px;
    border-radius: 26px;
    background: linear-gradient(140deg, #ff9a3d, #ff6200 55%, #7a3410);
    box-shadow: 0 18px 44px rgba(255, 98, 0, 0.32);
}

.org-ceo-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    border: 3px solid #0b1729;
}

.org-ceo-role {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ff8a3d;
}

.org-ceo h2 {
    margin: 8px 0 18px;
    font-family: var(--font-display, "Sora", sans-serif);
    font-size: clamp(26px, 2.4vw, 32px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: #fff;
}

.org-ceo-in {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.org-ceo-in:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: #fff;
}

/* Trunk segments between levels */
.org-line {
    position: relative;
    display: block;
    width: 2px;
    height: 44px;
    overflow: hidden;
    background: var(--org-wire);
}

.org-line::after {
    content: "";
    position: absolute;
    left: 0;
    top: -16px;
    width: 100%;
    height: 16px;
    background: linear-gradient(180deg, transparent, #ff7a1a);
    box-shadow: 0 0 8px #ff7a1a;
    animation: orgDrop 2.4s ease-in-out infinite;
}

.org-inner > .org-line:nth-of-type(2)::after { animation-delay: 0.5s; }
.org-inner > .org-line:nth-of-type(3)::after { animation-delay: 1s; }

/* A level of branches hanging from one horizontal bus */
.org-depts {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0 var(--org-gap);
    width: 100%;
    padding-top: var(--org-drop);
    align-items: start;
}

/* The trunk keeps running through the gap to the next level */
.org-depts:not(.org-depts--one)::before {
    content: "";
    position: absolute;
    left: calc(50% - 1px);
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--org-wire);
}

.org-depts--sub {
    grid-template-columns: repeat(2, minmax(0, 260px));
    justify-content: center;
}

.org-depts--one {
    grid-template-columns: minmax(0, 300px);
    justify-content: center;
}

.org-dept {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: teamIn 0.7s ease both;
}

/* Drop from the bus into the branch, and the bus itself */
.org-dept::before,
.org-dept::after {
    content: "";
    position: absolute;
    top: calc(-1 * var(--org-drop));
    background: var(--org-wire);
    pointer-events: none;
}

.org-dept::before {
    left: calc(50% - 1px);
    width: 2px;
    height: var(--org-drop);
}

.org-dept::after {
    left: calc(-1 * var(--org-gap) / 2 - 1px);
    right: calc(-1 * var(--org-gap) / 2 - 1px);
    height: 2px;
}

.org-dept:first-child::after { left: calc(50% - 1px); }
.org-dept:last-child::after { right: calc(50% - 1px); }
.org-dept:only-child::after { display: none; }

.org-depts > .org-dept:nth-child(2) { animation-delay: 0.08s; }
.org-depts > .org-dept:nth-child(3) { animation-delay: 0.16s; }
.org-depts > .org-dept:nth-child(4) { animation-delay: 0.24s; }
.org-depts > .org-dept:nth-child(5) { animation-delay: 0.32s; }
.org-depts > .org-dept:nth-child(6) { animation-delay: 0.4s; }

/* Branch node: the department */
.org-dept-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1b3358 0%, #0e1d33 100%);
    border: 1px solid rgba(255, 122, 26, 0.45);
    box-shadow: 0 16px 34px rgba(8, 17, 31, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.org-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: linear-gradient(140deg, #ff8a2e, #e85d00);
    box-shadow: 0 6px 16px rgba(255, 98, 0, 0.35);
    color: #fff;
    font-size: 14px;
}

.org-dept-head h2 {
    margin: 0;
    font-family: var(--font-display, "Sora", sans-serif);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: #fff;
}

.org-dept-head small {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.35;
    color: #ff9a52;
}

/* Leaf nodes: the people, each hanging from the one above */
.org-person {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(100% - 20px);
    margin-top: var(--org-twig);
    padding: 10px 10px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #13253f 0%, #0c1829 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 36px rgba(8, 17, 31, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.org-person::before {
    content: "";
    position: absolute;
    left: calc(50% - 1px);
    top: calc(-1 * var(--org-twig) - 1px);
    width: 2px;
    height: var(--org-twig);
    background: var(--org-wire);
}

.org-person::after {
    content: "";
    position: absolute;
    left: calc(50% - 4px);
    top: -5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff7a1a;
    box-shadow: 0 0 0 3px #f3f6fb;
}

.org-person:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 122, 26, 0.45);
    box-shadow: 0 24px 46px rgba(8, 17, 31, 0.28);
}

.org-avatar {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 5;
}

.org-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    background: #13233f;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14), 0 10px 22px rgba(0, 0, 0, 0.35);
    transition: box-shadow 0.25s ease;
}

.org-person:hover .org-avatar img {
    box-shadow: 0 0 0 2px #ff7a1a, 0 10px 22px rgba(0, 0, 0, 0.35);
}

.org-in {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #0a66c2;
    border: 2px solid #0d1b30;
    color: #fff;
    font-size: 13px;
    transition: transform 0.2s ease;
}

.org-in:hover {
    color: #fff;
    transform: scale(1.12);
}

.org-meta {
    min-width: 0;
    margin-top: 14px;
}

.org-meta strong {
    display: block;
    font-family: var(--font-display, "Sora", sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: #fff;
}

.org-meta small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: #93a4bf;
}

.team-in {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #3a4a66;
}

.team-in::before {
    content: "in";
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #0a66c2;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.team-in:hover { color: #ff7a1a; }

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

@keyframes orgDrop {
    0% { top: -16px; opacity: 0; }
    25% { opacity: 1; }
    100% { top: 44px; opacity: 0; }
}

/* Narrower screens: the first level wraps, so drop its bus and trunk */
@media (max-width: 1280px) {
    .org-depts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
    .org-depts--sub { grid-template-columns: repeat(2, minmax(0, 260px)); }
    .org-depts--one { grid-template-columns: minmax(0, 300px); }
    .org-depts:not(.org-depts--sub):not(.org-depts--one) { padding-top: 0; }
    .org-depts:not(.org-depts--sub):not(.org-depts--one)::before,
    .org-depts:not(.org-depts--sub):not(.org-depts--one) .org-dept::before,
    .org-depts:not(.org-depts--sub):not(.org-depts--one) .org-dept::after { display: none; }
}

@media (max-width: 760px) {
    .page-body main.cert-page > section.org { padding: 48px 0 40px; }
    .org-ceo {
        flex-direction: column;
        text-align: center;
        padding: 26px 22px;
    }
    .org-ceo-photo { width: 168px; height: 210px; }
    .org-depts,
    .org-depts--sub,
    .org-depts--one { grid-template-columns: minmax(0, 340px); justify-content: center; row-gap: 32px; padding-top: 0; }
    .org-depts::before,
    .org-dept::before,
    .org-dept::after { display: none; }
    .org-dept--finance { order: -1; }
}

@media (max-width: 900px) {
    .cert-board { grid-template-columns: 1fr; }
    .cert-logo { min-height: 180px; }
}

.co-board {
    width: 90%;
    margin: 28px auto 72px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.co-card,
.co-same {
    background: #fff;
    border: 1px solid rgba(16, 40, 74, 0.08);
    border-radius: 22px;
    padding: 36px 40px;
    box-shadow: 0 16px 40px rgba(8, 17, 31, 0.05);
}

.co-card .stage-kicker { color: #ff6200; }

.co-card h2,
.co-same h2 {
    margin: 10px 0 14px;
    font-family: var(--font-display, "Sora", sans-serif);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #101b2e;
}

.co-card p,
.co-same p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #3c4b66;
}

.co-card--az { border-top: 3px solid #ff7a1a; }

.co-person {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(16, 40, 74, 0.08);
}

.co-person strong {
    display: block;
    font-family: var(--font-display, "Sora", sans-serif);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #101b2e;
}

.co-person span {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #5e6f8a;
}

.co-same { grid-column: 1 / -1; }

@media (max-width: 900px) {
    .co-board { grid-template-columns: 1fr; }
    .co-card,
    .co-same { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .page-body .cert-page::before,
    .cert-track,
    .org-dept,
    .org-ceo,
    .org-line::after { animation: none; }
}
