
/**
.impact-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    border-radius: 999px;
    background: var(--secondary-500);
}
**/

/**
.impact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
**/


.stats-large {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem; margin-top: var(--space-6);
}
.stat-large {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--primary-900);
    color: #fff;
}
.stat-large strong {
    display: block;
    font-size: 2.5rem;
    line-height: 1;
}


/********** Blue Check Marks **********/

.check-list {
    list-style: none;

    margin: 1.5rem 0 0;
    padding: 0;
}

.check-list li {
    position: relative;
    margin-bottom: .5rem;
    padding-left: 1.75rem;
    color: var(--ink-600);
}

.check-list li::before {
    content: "";
    position: absolute;
    top: .5em;
    left: .2rem;
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: var(--secondary-500);
    box-shadow: 0 0 0 3px var(--secondary-100);
}

.accessibility-list li:last-child {
    margin-bottom: 0;
}

/********** Blue Check Marks **********/




.skill-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.skill-group {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}
.skill-list li {
    padding: .45rem .7rem;
    border-radius: .5rem;
    background: var(--secondary-100);
    color: var(--primary-900);
    font-size: .9rem; font-weight: 700;
}

.case-study-intro {
    display: grid;
    grid-template-columns: 1fr .65fr;
    gap: var(--space-8);
    align-items: end;
}
.case-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.detail {
    padding: 1rem 0;
    border-top: 1px solid var(--border-strong);
}
.detail dt {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
    color: var(--hero-eyebrow);
}
.detail dd {
    margin-top: .3rem;
    margin-left: 0;
    font-weight: 750;
    color: var(--hero-h1);
}

/**
.case-visual {
    min-height: 480px;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, var(--primary-950), var(--primary-700));
    display: grid;
    place-items: center;
    padding: 3rem;
    margin-block: var(--space-7);
    box-shadow: var(--shadow-xl);
}
**/

.case-visual {
    /***
    min-height: 480px;
    border-radius: var(--radius-2xl);
    background: linear-gradient(
        135deg,
        var(--primary-950),
        var(--primary-700)
    );
    display: grid;
    place-items: center;
    padding: 4rem;
    margin-block: var(--space-7);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    ***/
    min-height: 480px;
    border-radius: var(--radius-2xl);
    background: linear-gradient(
        135deg,
        var(--primary-950),
        var(--primary-700)
    );
    display: grid;
    place-items: center;
    padding: 4rem;
    margin-block: var(--space-7);
    box-shadow: var(--shadow-xl);
    /** order-radius: var(--radius-2xl); **/
    border-radius: 3rem;
    corner-shape: squircle;
    background: linear-gradient(
        135deg,
        var(--primary-950),
        var(--primary-700)
    );
    display: grid;
    place-items: center;
    padding: 4rem;
    margin-block: var(--space-7);
    box-shadow: var(--shadow-xl);s
    clip-path: inset(8% 8% 8% 8% round 1rem);
    /** opacity: 0; **/
    /** transition:
        clip-path 900ms cubic-bezier(.22, 1, .36, 1),
        opacity 700ms ease; **/
}

.case-visual.is-visible {
    clip-path: inset(0 round 1rem);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .case-visual.reveal {
        opacity: 1;
        clip-path: none;
        transition: none;
    }
}

.browser-mockup {
    position: relative;
    width: 100%;
    max-width: 1100px;
    /** border-radius: 14px; **/
    border-radius: 28px;
    corner-shape: squircle;
    background: #f5f5f7;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.28),
        0 10px 25px rgba(0, 0, 0, 0.16);
    transform: rotate(-2deg);
    isolation: isolate;
}

.browser-mockup::before {
    content: "";
    position: absolute;
    inset: 0;
    /** border-radius: inherit; **/
    border-radius: 28px;
    corner-shape: squircle;
    background: rgba(123, 175, 212, 0.4);
    transform: translate(14px, 14px);
    z-index: -1;
}

.browser-toolbar {
    position: relative;
    height: 58px;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    background: #f5f5f7;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px 14px 0 0;
}

.browser-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.browser-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: block;
}

.browser-dot-close {
    background: #ff5f57 !important;
}

.browser-dot-minimize {
    background: #febc2e !important;
}

.browser-dot-maximize {
    background: #28c840 !important;
}

.browser-navigation {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    margin-left: 1.5rem;
}

.browser-nav-icon {
    display: grid;
    place-items: center;

    width: 28px;
    height: 28px;

    color: #5f6368;
}

.browser-nav-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.browser-nav-disabled {
    opacity: 0.65;
}

.browser-address {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: min(45%, 500px);
    height: 32px;
    padding: 0 1rem;
    border-radius: 8px;
    background: #e8e8ed;
    color: #5f6368;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.browser-lock {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.browser-action {
    display: grid;
    place-items: center;

    width: 30px;
    height: 30px;

    color: #5f6368;
}

.browser-action svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.browser-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #5f6368;
}

.browser-action-plus {
    font-size: 1.45rem;
    font-weight: 300;
    line-height: 1;
}

.browser-content {
    overflow: hidden;
    border-radius: 0 0 14px 14px;
    background: #fff;
}

.browser-content img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {

    .case-visual {
        min-height: auto;
        padding: 2rem 1.25rem 3rem;
    }

    .browser-mockup {
        transform: rotate(-1deg);
    }

    .browser-toolbar {
        height: 46px;
        padding-inline: 0.75rem;
    }

    .browser-dot {
        width: 9px;
        height: 9px;
    }

    .browser-controls {
        gap: 5px;
    }

    .browser-navigation {
        margin-left: 0.75rem;
        gap: 0.15rem;
    }

    .browser-nav-icon {
        width: 24px;
        height: 24px;
    }

    .browser-nav-icon svg {
        width: 16px;
        height: 16px;
    }

    .browser-address {
        width: 42%;
        height: 26px;

        font-size: 0.65rem;
    }

    .browser-lock {
        width: 11px;
        height: 11px;
    }

    .browser-actions {
        gap: 0.5rem;
    }

    .browser-action {
        width: 24px;
        height: 24px;
    }

    .browser-action svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {

    .browser-navigation {
        display: none;
    }

    .browser-address {
        left: 52%;
        width: 45%;
    }

    .browser-actions {
        display: none;
    }
}





.case-visual-image {
    position: relative;
    width: 100%;
    max-width: 1100px;
    border-radius: 1rem;
    transform: rotate(-2deg);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.25),
        0 10px 25px rgba(0, 0, 0, 0.15);
    isolation: isolate;
}

.case-visual-image::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(123, 175, 212, 0.35);
    transform: translate(14px, 14px);
    z-index: -1;
}

.case-visual-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
}



.case-screen {
    width: min(90%, 900px);
    border: 1px solid #E2E8F0;
    border-radius: 1rem;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 25px 70px rgba(0,0,0,.3);
}
.case-screen-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
}
.screen-sidebar {
    min-height: 250px;
    background: var(--primary-900);
    border-radius: .625rem;
}
.screen-main {
    min-height: 250px;
    background: #F5F8FB;
    border-radius: .625rem;
    padding: 1rem;
}
.case-section {
    max-width: 850px;
    margin-inline: auto;
    padding-block: var(--space-7);
}
.case-section h2 {
    margin-bottom: 1rem;
}
.case-section p + p {
    margin-top: 1rem;
}

.case-section p {
    color: var(--ink-600);
}

.result-callout {
    padding: 2rem;
    /**
    background: var(--primary-900);
    box-shadow: var(--shadow-md);
    **/
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    color: #fff;
    /** border-radius: var(--radius-xl); **/
    border-radius: 2.5rem;
    corner-shape: squircle;
}

.contact-form {
    max-width: 760px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.field {
    margin-bottom: 1.25rem;
}
.field label {
    display: block;
    font-weight: 800;
    margin-bottom: .45rem;
}
.field input, .field textarea {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: .625rem;
    padding: .8rem .9rem;
    background: var(--surface);
    color: var(--ink-900);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea {
    min-height: 180px;
    resize: vertical;
}
.field input:focus,
.field textarea:focus {
    border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent);
    outline: none;
}
.form-note {
    color: var(--ink-600);
    font-size: .9rem;
    margin-top: .75rem;
}

.footer-brand {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 850;
    text-decoration: none;
}
.footer-copy {
    margin-top: 1rem;
    color: #DDE8F2;
}
.footer-heading {
    color: #fff;
    font-size: 1rem;
    margin-bottom: .75rem;
}
.footer-links li + li {
    margin-top: .5rem;
}
.footer-links a {
    color: #DDE8F2;
}



.grid-3,
.grid-4 { 
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.palette {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0 4rem;
}
.swatch {
    min-height: 140px;
    display: flex;
    align-items: end;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    font-weight: 800;
    line-height: 1.35;
    box-shadow: var(--shadow-sm);
}
.swatch.primary {
    background: #13294B;
    color: #fff;
}
.swatch.secondary {
    background: #7BAFD4;
    color: #0C1B32;
}









img[loading="lazy"] {
    opacity: 0;
    transition: opacity .3s ease;
}
img[loading="lazy"].is-loaded,
img[loading="lazy"]:not([data-lazy-src]):not([data-lazy-srcset]) {
    opacity: 1;
}



/* Contact page */





/**
.contact-tags span {
    padding: .65rem .85rem;
    border: 1px solid var(--border);
    border-radius: .65rem;
    background: var(--surface);
    color: var(--ink-800);
    font-size: .92rem;
    font-weight: 750;
    box-shadow: var(--shadow-sm);
}
**/
















/* ============================== CONTACT LINK CARD ARROW ============================== */





/* Case study navigation */

.breadcrumbs {
    background: var(--secondary-100);
}

.case-breadcrumbs {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding-top: .75rem;
    padding-bottom: .75rem;
    color: var(--ink-500);
    font-size: .82rem;
    font-weight: 700;
}

.case-breadcrumbs > .container > span[aria-hidden="true"] {
    margin-inline: .25rem;
}

.case-breadcrumbs a {
    color: var(--primary-700);
    text-decoration: none;
}

.case-breadcrumbs a:hover {
    color: var(--secondary-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.case-project-nav {
    /** margin-top: var(--space-7); **/
    border-top: 1px solid var(--border);
    padding-block: 3rem;
    padding-top: 4rem;
}

.bt-0 {
    border-top: 0;
}

.case-back {
    margin-bottom: 2rem;
}

.case-project-nav-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: stretch;
}

.case-project-link {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-height: 96px;
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--border);
    /** border-radius: var(--radius-lg); **/
    border-radius: 2rem;
    corner-shape: squircle;
    background: var(--surface);
    color: var(--ink-900);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.case-project-link:hover {
    transform: translateY(-2px);
    border-color: var(--secondary-500);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.case-project-prev { text-align: left; }
.case-project-next { text-align: right; }

.case-project-link strong {
    color: var(--primary-700);
    font-weight: 800;
}

.case-nav-label {
    color: var(--secondary-700);
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.case-nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: .75rem;
}

.case-nav-center .eyebrow {
    margin: 0;
    white-space: nowrap;
}

.case-nav-arrow {
    display: inline-block;
    transition: transform .2s ease;
}

.case-project-prev .case-nav-arrow {
    margin-right: 3px;
}

.case-project-next .case-nav-arrow {
    margin-left: 3px;
}

.case-project-prev:hover .case-nav-arrow,
.case-project-prev:focus-visible .case-nav-arrow {
    transform: translateX(-4px);
}

.case-project-next:hover .case-nav-arrow,
.case-project-next:focus-visible .case-nav-arrow {
    transform: translateX(4px);
}


/********** GRAVITY DESIGN SYSTEM CSS **********/
/* =========================================================
   GRAVITY DESIGN SYSTEM CASE STUDY
   Visual Sections
   ========================================================= */

/* ---------------------------------------------------------
   Alternating visual sections
   --------------------------------------------------------- */

.work-section-media {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
    margin-top: 4rem;
}

.work-section-media-left {
    grid-template-columns: minmax(420px, 1.1fr) minmax(0, 0.9fr);
}

.work-section-media-left .work-visual {
    order: 1;
}

.work-section-media-left .work-section-copy {
    order: 2;
}

.work-section-copy {
    max-width: 620px;
}

.work-section-copy h2 {
    margin-bottom: 1.15rem;
}

.work-section-copy p + p {
    margin-top: 1rem;
}

.work-visual {
    margin: 0;
}

.work-visual figcaption {
    margin-top: 0.9rem;
    color: var(--ink-500);
    font-size: 0.78rem;
    line-height: 1.55;
}


/* ---------------------------------------------------------
   Shared browser / application window
   --------------------------------------------------------- */

.work-window {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: 1rem;
    background: var(--surface);
    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.08),
        0 4px 12px rgba(15, 23, 42, 0.04);
}

.work-window-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    height: 42px;
    padding: 0 1rem;
    border-bottom: 1px solid var(--slate-200);
    background: var(--slate-50);
}

.work-window-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.work-window-bar span:first-child {
    background: #FF605C;
}

.work-window-bar span:nth-child(2) {
    background: #FFBD44;
}

.work-window-bar span:nth-child(3) {
    background: #00CA4E;
}

/* ---------------------------------------------------------
   Problem visual
   --------------------------------------------------------- */

.work-problem-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.25rem;
    background: var(--slate-50);
}

.work-mini-card {
    min-height: 170px;
    padding: 1rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.work-mini-title {
    width: 55%;
    height: 9px;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: var(--slate-300);
}

.work-mini-line {
    width: 100%;
    height: 7px;
    margin-bottom: 0.55rem;
    border-radius: 999px;
    background: var(--slate-200);
}

.work-mini-line.short {
    width: 65%;
}

.work-mini-button {
    display: inline-block;
    width: 70px;
    height: 28px;
    margin-top: 0.75rem;
    border-radius: 0.45rem;
    background: var(--primary-700);
    color: var(--mini-button);
}

.work-mini-pill {
    display: inline-block;
    width: 55px;
    height: 22px;
    margin-top: 0.75rem;
    border-radius: 999px;
    background: var(--secondary-100);
}


/* ---------------------------------------------------------
   Approach / Design System foundations visual
   --------------------------------------------------------- */

.work-foundation {
    padding: 1.5rem;
    background: var(--surface);
}

.work-foundation-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.work-foundation-heading strong {
    font-size: 0.95rem;
}

.work-foundation-heading span {
    color: var(--ink-500);
    font-size: 0.75rem;
}

.work-foundation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.work-token-label {
    margin-bottom: 0.65rem;
    color: var(--ink-500);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.work-type-xl {
    margin-bottom: 0.45rem;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--primary-900);
}

.work-token-line {
    width: 80%;
    height: 7px;
    margin-bottom: 0.5rem;
    border-radius: 999px;
    background: var(--slate-200);
}

.work-token-line.short {
    width: 55%;
}

.work-swatches {
    display: flex;
    gap: 0.5rem;
}

.work-swatches i {
    display: block;
    width: 42px;
    height: 42px;
    /** border-radius: 0.6rem; **/
    border-radius: 1.2rem;
    corner-shape: squircle;
    background: var(--primary-700);
}

.work-swatches i:nth-child(2) {
    background: var(--secondary-500);
}

.work-swatches i:nth-child(3) {
    background: var(--secondary-100);
}

.work-swatches i:nth-child(4) {
    background: var(--slate-900);
}

.work-spacing {
    display: flex;
    align-items: end;
    gap: 0.5rem;
    height: 55px;
}

.work-spacing i {
    display: block;
    width: 16px;
    border-radius: 0.25rem 0.25rem 0 0;
    background: var(--secondary-500);
}

.work-spacing i:nth-child(1) {
    height: 16px;
}

.work-spacing i:nth-child(2) {
    height: 28px;
}

.work-spacing i:nth-child(3) {
    height: 40px;
}

.work-spacing i:nth-child(4) {
    height: 52px;
}

.work-component-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.work-component-row span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 0.7rem;
    border: 1px solid var(--slate-200);
    /** border-radius: 0.5rem; **/
    border-radius: 1rem;
    corner-shape: squircle;
    color: var(--ink-700);
    background: var(--surface);
    font-size: 0.75rem;
    font-weight: 700;
}


/* ---------------------------------------------------------
   Solution / Finished design-system visual
   --------------------------------------------------------- */

.work-solution {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    min-height: 360px;
    background: var(--surface);
    border-radius: 2rem;
    corner-shape: squircle;
}

.work-solution aside {
    padding: 1rem 0.75rem;
    background: var(--primary-900);
    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
    corner-shape: squircle;
}

.work-solution aside span {
    display: block;
    width: 100%;
    height: 8px;
    margin-bottom: 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.work-solution aside span.active {
    background: var(--secondary-500);
}

.work-solution-main {
    min-width: 0;
    padding: 1.25rem;
}

.work-solution-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.work-solution-header strong {
    font-size: 0.95rem;
}

.work-solution-header button {
    min-height: 34px;
    padding: 0 0.75rem;
    border: 0;
    /** border-radius: 0.5rem; **/
    border-radius: 1rem;
    corner-shape: squircle;
    color: #fff;
    background: var(--primary-700);
    font-size: 0.7rem;
    font-weight: 700;
}

.work-solution-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.work-solution-cards article {
    padding: 0.85rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.7rem;
    background: var(--surface);
}

.work-solution-cards small {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--ink-500);
    font-size: 0.65rem;
}

.work-solution-cards strong {
    font-size: 1rem;
    color: var(--primary-900);
}

.work-solution-table {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    /** border-radius: 0.7rem; **/
    border-radius: 1.5rem;
    corner-shape: squircle;
}

.work-solution-table div {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid var(--slate-200);
    font-size: 0.68rem;
}

.work-solution-table div:last-child {
    border-bottom: 0;
}

.work-solution-table div:first-child {
    color: var(--ink-500);
    background: var(--slate-50);
    font-weight: 700;
}


/* ---------------------------------------------------------
   Responsive behavior
   --------------------------------------------------------- */

@media (max-width: 900px) {
    .work-section-media,
    .work-section-media-left {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .work-section-media-left .work-visual,
    .work-section-media-left .work-section-copy {
        order: initial;
    }
}

@media (max-width: 640px) {
    .work-problem-grid,
    .work-foundation-grid {
        grid-template-columns: 1fr;
    }

    .work-solution {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .work-solution-cards {
        grid-template-columns: 1fr;
    }

    .work-solution-table div {
        grid-template-columns: 1.25fr 1fr;
    }

    .work-solution-table div span:last-child {
        display: none;
    }
}


/* =========================================================
EXPERIENCE PAGE
========================================================= */

.experience-hero .lead {
max-width: 760px;
}

/* ---------- Impact ---------- */

.experience-impact {
padding-top: 2rem;
}

.impact-card {
min-height: 180px;
padding: 1.5rem;
display: flex;
flex-direction: column;
justify-content: space-between;
border: 1px solid var(--border);
border-radius: var(--radius-lg);
background: var(--surface);
box-shadow: var(--shadow-sm);
}

.impact-card strong {
font-family: var(--font-heading);
font-size: clamp(2.5rem, 5vw, 4rem);
font-weight: 800;
line-height: 1;
letter-spacing: -.045em;
color: var(--primary-700);
}

.impact-card span {
max-width: 18ch;
color: var(--ink-600);
font-size: .9rem;
line-height: 1.5;
}

/* ---------- Experience Timeline ---------- */

.experience-timeline {
position: relative;
max-width: 980px;
}

.experience-timeline::before {
content: "";
position: absolute;
top: .5rem;
bottom: .5rem;
left: 9px;
width: 1px;
background: var(--border-strong);
}

.experience-entry {
position: relative;
display: grid;
grid-template-columns: 20px minmax(0, 1fr);
gap: 2rem;
padding-bottom: 4rem;
}

.experience-entry:last-child {
padding-bottom: 0;
}

.experience-marker {
position: relative;
z-index: 1;
display: flex;
justify-content: center;
}

.experience-marker span {
    display: block;
    width: 19px;
    height: 19px;
    margin-top: .25rem;
    border: 4px solid var(--surface);
    border-radius: 50%;
    background: var(--primary-700);
    box-shadow: 0 0 0 1px var(--border-strong);
}

.experience-content {
    padding: 2rem;
    border: 1px solid var(--border);
    /** border-radius: var(--radius-xl); **/
    border-radius: 2.5rem;
    corner-shape: squircle;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.experience-meta {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: .5rem 1rem;
margin-bottom: .65rem;
color: var(--primary-600);
font-size: .78rem;
font-weight: 800;
letter-spacing: .04em;
text-transform: uppercase;
}

.experience-meta span + span {
color: var(--ink-500);
}

.experience-content h3 {
margin-bottom: 1rem;
}

.experience-summary {
max-width: 70ch;
margin-bottom: 1.25rem;
color: var(--ink-600);
}


.experience-highlights {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.experience-highlights li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: .75rem;
    color: var(--ink-600);
}

.experience-highlights li::before {
    content: "";
    position: absolute;
    top: .7em;
    left: .2rem;
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: var(--secondary-500);
    box-shadow: 0 0 0 3px var(--secondary-100);
}

.experience-highlights li:last-child {
    margin-bottom: 0;
}

.experience-highlights li + li {
margin-top: .7rem;
}

.experience-tags {
display: flex;
flex-wrap: wrap;
gap: .5rem;
margin-top: 1.5rem;
}

/**
.experience-tags span {
    padding: .4rem .65rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--ink-700);
    font-size: .78rem;
    font-weight: 700;
}
**/

.experience-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: .4rem .75rem;
    border: 1px solid #B9D8E9;
    border-radius: 999px;
    background: #EEF7FB;
    color: #13294B;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

/* ---------- Selected Work ---------- */

.experience-work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.experience-work-card {
    min-height: 248px;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
    }

.experience-work-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary-500);
    box-shadow: var(--shadow-md);
}

.experience-work-kicker {
    margin-bottom: 1rem;
    color: var(--secondary-700);
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.experience-work-card h3 {
    margin-bottom: 1rem;
}

.experience-work-card p {
    color: var(--ink-600);
}

.experience-work-link {
    /** margin-top: auto; **/
    padding-top: 1rem;
    color: var(--primary-700);
    /** font-size: .9rem; **/
    font-weight: 800;
}

.experience-work-link span {
    display: inline-block;
    transition: transform .2s ease;
}

.experience-work-card:hover .experience-work-link span {
    transform: translateX(4px);
}

/* ---------- Experience CTA ---------- */

.experience-cta {
display: flex;
align-items: center;
justify-content: space-between;
gap: 2rem;
}

.experience-cta > div:first-child {
max-width: 700px;
}

.experience-cta p {
color: rgba(255, 255, 255, .82);
}

/* =========================================================
RESUME PAGE
========================================================= */

.resume-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3rem;
    align-items: end;
    }

.resume-hero-grid .lead {
    max-width: 760px;
}

.resume-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.resume-section {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: clamp(2rem, 6vw, 6rem);
}

.resume-section-heading h2 {
    padding-bottom: 2rem;
}

.resume-summary {
max-width: 760px;
}

.resume-summary p + p {
margin-top: 1.15rem;
}

.resume-summary p {
color: var(--ink-700);
font-size: 1.05rem;
line-height: 1.75;
}

/* ---------- Resume Experience ---------- */

.resume-experience {
background: var(--surface-alt);
}

.resume-role {
padding: 2rem 0;
border-top: 1px solid var(--border-strong);
}

.resume-role:first-of-type {
border-top: 0;
}

.resume-role-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 2rem;
margin-bottom: 1.25rem;
}

.resume-role-header h3 {
margin-bottom: .35rem;
}

.resume-role-title {
margin: 0;
color: var(--primary-600);
font-weight: 700;
}

.resume-role-type {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: .4rem .75rem;
    border: 1px solid #B9D8E9;
    border-radius: 999px;
    background: #EEF7FB;
    color: #13294B;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.resume-role ul {
    max-width: 850px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.resume-role li {
    position: relative;
    padding-left: 1.75rem;
}

.resume-role li::before {
    content: "";
    position: absolute;
    top: .7em;
    left: .2rem;
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: var(--secondary-500);
    box-shadow: 0 0 0 3px var(--secondary-100);
}

.resume-role li + li {
    margin-top: .8rem;
}


/* ---------- Technology ---------- */

.resume-tech-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.resume-tech-grid > div {
    padding: 1.5rem;
    /**
    border-left: 4px solid var(--secondary-500);
    background: var(--surface-alt);
    **/
}

.resume-tech-grid h3 {
    margin-bottom: 1rem;
    /** font-size: 1.1rem; **/
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 750;
}

.resume-tech-grid p {
    margin: 0;
    color: var(--ink-600);
    line-height: 1.7;
}

.resume-tech-card {
    position: relative;
    padding: 1.75rem;
    border: 1px solid var(--border);
    /** border-radius: var(--radius-xl); **/
    border-radius: 2.5rem;
    corner-shape: squircle;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* ---------- Resume Projects ---------- */

.resume-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.resume-project-card {
    min-height: 304px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.75rem;

    border: 1px solid var(--border);
    border-radius: var(--radius-xl);

    background: var(--surface);
    color: inherit;
    text-decoration: none;

    box-shadow: var(--shadow-sm);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.resume-project-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary-500);
    box-shadow: var(--shadow-md);
}

.resume-project-kicker {
    display: block;
    margin-bottom: 1rem;
    color: var(--secondary-700);
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.resume-project-card h3 {
    margin-bottom: 1rem;
}


.resume-project-card p {
    color: var(--ink-600);
}

.resume-project-link {
    padding-top: 1rem;
    color: var(--primary-700);
    font-weight: 800;
}

.resume-project-link span {
    display: inline-block;
    transition: transform .2s ease;
}

.resume-project-card:hover .resume-project-link span {
    transform: translateX(4px);
}

/* ---------- Resume CTA ---------- */

.resume-cta {
display: flex;
align-items: center;
justify-content: space-between;
gap: 2rem;
}

.resume-cta > div:first-child {
max-width: 700px;
}

.resume-cta p {
color: rgba(255, 255, 255, .82);
}

/* =========================================================
EXPERIENCE + RESUME RESPONSIVE
========================================================= */

@media (max-width: 1000px) {


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

    .experience-work-grid {
        grid-template-columns: 1fr;
    }

    .resume-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

}

@media (max-width: 760px) {


    .resume-hero-grid {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 2rem;
    }

    .experience-entry {
        gap: 1rem;
    }

    .experience-content {
        padding: 1.5rem;
    }

    .experience-cta,
    .resume-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .resume-role-header {
        flex-direction: column;
        gap: .75rem;
    }


}

@media (max-width: 600px) {

 
    .capability-grid,
    .resume-competency-grid,
    .resume-tech-grid {
        grid-template-columns: 1fr;
    }

    .impact-card {
        min-height: 150px;
    }

    .experience-timeline::before {
        left: 8px;
    }

    .experience-marker span {
        width: 17px;
        height: 17px;
    }

    .experience-entry {
        grid-template-columns: 18px minmax(0, 1fr);
    }

    .experience-tags {
        gap: .4rem;
    }

    .experience-tags span {
        font-size: .72rem;
    }

    .resume-project-grid {
        grid-template-columns: 1fr;
    }

}

.resume-tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.resume-tech-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: .4rem .75rem;
    border: 1px solid #B9D8E9;
    border-radius: 999px;
    background: #EEF7FB;
    color: #13294B;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.experience-context {
    display: inline-flex;
    align-items: center;
    padding: .4rem .7rem;

    border: 1px solid #B9D8E9;
    border-radius: 999px;

    background: #EEF7FB;
    color: #13294B;

    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}



/* =========================================================
   ACCESSIBILITY PAGE
   ========================================================= */


/* ---------------------------------------------------------
   SECTION EXAMPLES
   --------------------------------------------------------- */

.accessibility-example-grid,
.semantic-example-grid,
.form-example-grid,
.motion-example-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    gap: var(--space-8);
    align-items: start;
}


/* ---------------------------------------------------------
   ACCESSIBILITY EXAMPLE
   --------------------------------------------------------- */

.form-principles {
    margin-top: 2rem;
}

.accessibility-example,
.accessible-form-demo {
    overflow: hidden;
    border: 1px solid var(--border);
    /** border-radius: var(--radius-xl); **/
    border-radius: 2.5rem;
    corner-shape: squircle;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.accessibility-example-header,
.form-demo-header,
.code-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border);
}

.code-card-header {
    color: #e5e7eb;
}

.example-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.example-status {
    padding: .3rem .65rem;

    border: 1px solid var(--secondary-500);
    border-radius: 999px;

    color: var(--primary-700);

    background: var(--secondary-50);

    font-size: .75rem;
    font-weight: 700;
}


/* ---------------------------------------------------------
   DEMO INTERFACE
   --------------------------------------------------------- */

.demo-interface {
    padding: var(--space-6);
}

.demo-interface label,
.demo-form-group label {
    display: block;
    margin-bottom: .5rem;
    color: var(--ink-900);
    fozt-weight: 700;
}

.demo-interface input,
.demo-form-group input {
    width: 100%;
    min-height: 3rem;
    padding: .75rem 1rem;
    border: 1px solid var(--border-strong);
    /** border-radius: var(--radius-md); **/
    border-radius: 1.5rem;
    corner-shape: squircle;
    color: var(--ink-900);
    background: var(--surface);
    font: inherit;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.demo-interface input:focus-visible,
.demo-form-group input:focus-visible {
    border-color: var(--primary-700);

    outline: 3px solid var(--secondary-500);
    outline-offset: 2px;
}

.demo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    margin-top: 1rem;
    padding: .65rem 1.1rem;
    border: 1px solid var(--primary-700);
    /** border-radius: var(--radius-md); **/
    border-radius: 1.5rem;
    corner-shape: squircle;
    color: #fff;
    background: var(--primary-700);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.demo-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.demo-button:focus-visible {
    outline: 3px solid var(--secondary-500);
    outline-offset: 3px;
}

.demo-button-secondary {
    color: var(--primary-700);
    background: var(--surface);
}

.demo-help {
    margin: 1rem 0 0;

    color: var(--ink-500);

    font-size: .875rem;
}


/* ---------------------------------------------------------
   ACCESSIBILITY LIST
   --------------------------------------------------------- */

.accessibility-list {
    list-style: none;

    margin: 1.5rem 0 0;
    padding: 0;
}

.accessibility-list li {
    position: relative;
    margin-bottom: .5rem;
    padding-left: 1.75rem;
    color: var(--ink-600);
}

.accessibility-list li::before {
    content: "";
    position: absolute;
    top: .5em;
    left: .2rem;
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: var(--secondary-500);
    box-shadow: 0 0 0 3px var(--secondary-100);
}

.accessibility-list li:last-child {
    margin-bottom: 0;
}


/* ---------------------------------------------------------
   CONTRAST
   --------------------------------------------------------- */

.contrast-example-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
}

.contrast-card {
    min-height: 220px;
    padding: var(--space-6);
    border: 1px solid var(--border);
    /** border-radius: var(--radius-xl); **/
    border-radius: 2.5rem;
    corner-shape: squircle;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.contrast-card-dark {
    color: #fff;
    background: var(--primary-700);
}

.contrast-card-light {
    color: var(--ink-900);
    background: var(--secondary-500);
}

.contrast-label {
    display: block;

    margin-bottom: 1rem;

    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.contrast-card strong {
    display: block;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.contrast-card p {
    margin: 0;
}

.status-examples {
    display: grid;
    gap: .75rem;
    margin-top: 1.5rem;
}

.status-example {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.status-example strong {
    display: inline-flex;

    width: 1.75rem;
    height: 1.75rem;

    margin: 0;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-family: inherit;
    font-size: 1rem;
}


/* ---------------------------------------------------------
   SEMANTIC HTML
   --------------------------------------------------------- */

.semantic-code-card,
.code-example {
    margin-top: 2rem;
    overflow: hidden;
    border: 1px solid var(--border);
    /** border-radius: var(--radius-xl); **/
    border-radius: 2.5rem;
    corner-shape: squircle;
    background: #0f172a;
    box-shadow: var(--shadow-sm);
}

.semantic-code-card pre,
.code-example pre {
    overflow-x: auto;

    margin: 0;
    padding: var(--space-6);

    color: #e5e7eb;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: .875rem;
    line-height: 1.7;
}

.semantic-content {
    padding-top: 2rem;
}


/* ---------------------------------------------------------
   FORM EXAMPLE
   --------------------------------------------------------- */

.form-demo-header {
    color: var(--ink-700);

    font-size: .875rem;
    font-weight: 700;
}

.demo-form-group {
    padding: var(--space-6);
}

.form-error {
    display: flex;
    align-items: flex-start;
    gap: .2rem;
    margin: .65rem 0 0;
    color: var(--error);
    font-size: .875rem;
    font-weight: 600;
}

.form-error strong {
    flex-shrink: 0;
}


/* ---------------------------------------------------------
   ACCESSIBLE COMPONENTS
   --------------------------------------------------------- */

.component-example-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
}

.component-demo-card {
    padding: var(--space-6);
    border: 1px solid var(--border);
    /** border-radius: var(--radius-xl); **/
    border-radius: 2.5rem;
    corner-shape: squircle;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.component-demo-card > p {
    margin: 1rem 0 0;
    color: var(--ink-600);
    font-size: .9rem;
}

.component-demo-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
}


/* ---------------------------------------------------------
   DEMO CARD
   --------------------------------------------------------- */

.demo-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--border);
    /** border-radius: var(--radius-lg); **/
    border-radius: 2rem;
    corner-shape: squircle;
    color: inherit;
    text-decoration: none;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.demo-card-link:hover {
    transform: translateY(-3px);

    border-color: var(--secondary-500);

    box-shadow: var(--shadow-md);
}

.demo-card-link:focus-visible {
    outline: 3px solid var(--secondary-500);
    outline-offset: 3px;
}

.demo-card-link strong,
.demo-card-link small {
    display: block;
}

.demo-card-link small {
    margin-top: .2rem;

    color: var(--ink-500);

    font-size: .8rem;
}

.demo-card-arrow {
    display: inline-block;

    font-size: 1.25rem;

    transition: transform .2s ease;
}

.demo-card-link:hover .demo-card-arrow,
.demo-card-link:focus-visible .demo-card-arrow {
    transform: translateX(4px);
}


/* ---------------------------------------------------------
   DEMO NAVIGATION
   --------------------------------------------------------- */

.demo-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;

    margin-top: 1.25rem;
}

.demo-navigation a {
    padding: .5rem .75rem;
    /** border-radius: var(--radius-md); **/
    border-radius: 1.5rem;
    corner-shape: squircle;
    color: var(--ink-700);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 600;
}

.demo-navigation a:hover {
    background: var(--surface-alt);
}

.demo-navigation a:focus-visible {
    outline: 3px solid var(--secondary-500);
    outline-offset: 2px;
}

.demo-navigation a[aria-current="page"] {
    color: #fff;
    background: var(--primary-700);
}


/* ---------------------------------------------------------
   THEME TOGGLE DEMO
   --------------------------------------------------------- */

.demo-theme-button {
    display: block;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    width: 3.25rem;
    height: 3.25rem;
    margin-top: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--ink-900);
    background: var(--surface);
    font-size: 1rem;
    cursor: pointer;
    transition:
        transform .2s ease,
        border-color .2s ease;
}

.demo-theme-button:hover {
    transform: translateY(-2px);
    border-color: var(--secondary-500);
}

.demo-theme-button:focus-visible {
    outline: 3px solid var(--secondary-500);
    outline-offset: 3px;
}


/* ---------------------------------------------------------
   MOTION
   --------------------------------------------------------- */

.motion-card {
    padding: var(--space-6);
    border: 1px solid var(--border);
    /** border-radius: var(--radius-xl); **/
    border-radius: 2.5rem;
    corner-shape: squircle;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.motion-demo {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    margin-top: 1.25rem;
    border: 1px dashed var(--border-strong);
    /** border-radius: var(--radius-lg); **/
    border-radius: 2rem;
    corner-shape: squircle;
    color: var(--primary-700);
    background: var(--surface-alt);
    font-weight: 700;
}

.motion-demo span {
    display: inline-block;
    padding: .75rem 1rem;
    /** border-radius: var(--radius-md); **/
    border-radius: 1.5rem;
    corner-shape: squircle;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease;
}

.motion-demo:hover span {
    transform: translateY(-6px);
}

.motion-reduced span {
    transition: none;
}

.motion-card p {
    margin: 1rem 0 0;

    color: var(--ink-600);
}

/* ---------------------------------------------------------
   ACCESSIBILITY PROCESS
   --------------------------------------------------------- */

.accessibility-process {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1rem;
}

.accessibility-process-step {
    position: relative;
    padding: 1.25rem;
    border: 1px solid var(--border);
    /** border-radius: var(--radius-lg); **/
    border-radius: 2rem;
    corner-shape: squircle;
    background: var(--surface);
    text-align: center;
}

.accessibility-process-step span {
    display: block;
    margin-bottom: .5rem;
    color: var(--secondary-700);
    font-size: .75rem;
    font-weight: 800;
}

.accessibility-process-step strong {
    display: block;
    font-family: var(--font-heading);
    font-size: .9rem;
}

.accessibility-principles {
    margin-top: 2rem;
}

/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .contrast-example-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contrast-card:last-child {
        grid-column: 1 / -1;
    }

    .accessibility-process {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 700px) {

    .accessibility-example-grid,
    .semantic-example-grid,
    .form-example-grid,
    .motion-example-grid,
    .contrast-example-grid,
    .component-example-grid {
        grid-template-columns: 1fr;
    }

    .contrast-card:last-child {
        grid-column: auto;
    }

    .accessibility-process {
        grid-template-columns: 1fr;
    }

}


/* ============================== DESIGN SYSTEM PAGE ============================== */

.ds-hero h1 {
    max-width: 18ch;
}

.ds-hero .lead {
    max-width: 62ch;
}

.ds-intro-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
}

.ds-copy {
    max-width: 62ch;
}

.ds-copy h2 {
    margin-bottom: 1rem;
}

.ds-copy p + p {
    margin-top: 1rem;
}

.ds-copy p {
    color: var(--ink-600);
}

.ds-principles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ds-principle {
    padding: 1.5rem;
    border: 1px solid var(--border);
    /** border-radius: var(--radius-xl); **/
    border-radius: 2.5rem;
    corner-shape: squircle;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.ds-principle > span,
.ds-doc-number {
    display: block;
    color: var(--secondary-700);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .1em;
}

.ds-principle h3 {
    margin-top: .75rem;
}

.ds-principle p {
    margin-top: .55rem;
    color: var(--ink-600);
}

.ds-section-header {
    align-items: start;
}

.ds-section-header > div {
    max-width: 62ch;
}

.ds-section-header .section-intro {
    max-width: 44ch;
    margin: 0;
}

.ds-foundation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.ds-foundation-card {
    min-height: 290px;
}

.ds-foundation-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 1.5rem;
    border-radius: .8rem;
    background: var(--secondary-100);
    color: var(--primary-700);
}

.ds-color-icon {
    position: relative;
    overflow: hidden;
}

.ds-color-icon::before,
.ds-color-icon::after {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.ds-color-icon::before {
    background: var(--primary-700);
    left: 8px;
    top: 9px;
}

.ds-color-icon::after {
    background: var(--secondary-500);
    right: 8px;
    bottom: 9px;
}

.ds-type-icon {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.ds-space-icon {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 4px;
    padding-inline: 10px;
}

.ds-space-icon i {
    display: block;
    width: 6px;
    border-radius: 4px;
    background: var(--secondary-500);
}

.ds-space-icon i:nth-child(1) {
    height: 12px;
}

.ds-space-icon i:nth-child(2) {
    height: 20px;
}

.ds-space-icon i:nth-child(3) {
    height: 30px;
}

.ds-motion-icon {
    font-size: 1.7rem;
    font-weight: 800;
}

.ds-foundation-card p {
    color: var(--ink-600);
}

.ds-mini-swatches {
    display: flex;
    gap: .4rem;
    margin-top: 1.25rem;
}

.ds-mini-swatches span {
    width: 28px;
    height: 28px;
    border-radius: .45rem;
    border: 1px solid var(--border-strong);
}

.ds-type-sample {
    margin-top: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary-700);
}

.ds-type-sample span {
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 500;
    color: var(--ink-600);
}

.ds-space-bars {
    display: grid;
    gap: .35rem;
    margin-top: 1.2rem;
}

.ds-space-bars span {
    display: block;
    height: 7px;
    border-radius: 99px;
    background: var(--secondary-500);
}

.ds-space-bars span:nth-child(1) {
    width: 25%;
}

.ds-space-bars span:nth-child(2) {
    width: 45%;
}

.ds-space-bars span:nth-child(3) {
    width: 70%;
}

.ds-space-bars span:nth-child(4) {
    width: 100%;
}

.ds-state-row {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 1.2rem;
}

.ds-state-row span {
    padding: .35rem .5rem;
    border: 1px solid var(--border);
    border-radius: .4rem;
    font-size: .7rem;
    font-weight: 700;
}

.ds-component-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.ds-component-card {
    min-height: 275px;
}

.ds-component-demo {
    min-height: 104px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    /** border-radius: .75rem; **/
    border-radius: 1.5rem;
    corner-shape: squircle;
    background: var(--surface-alt);
    border: 1px solid var(--border);
}

.ds-component-height-70 {
    min-height: 70px !important;
}

.ds-demo-label {
    width: 100%;
    font-size: .7rem;
    font-weight: 800;
    color: var(--ink-700);
}

.ds-demo-input {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--border-strong);
    /** border-radius: .5rem; **/
    border-radius: 1rem;
    corner-shape: squircle;
    padding: .5rem .65rem;
    background: var(--surface);
    color: var(--ink-900);
}

.br-none {
    border-radius: 0;
}

.ds-card-demo {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.ds-card-demo span {
    font-size: .78rem;
    color: var(--ink-600);
}

.ds-nav-demo,
.ds-tabs-demo {
    justify-content: flex-start;
    padding: .5rem;
}

.ds-nav-demo span,
.ds-tabs-demo span {
    padding: .6rem .65rem;
    /** border-radius: .4rem; **/
    border-radius: .8rem;
    corner-shape: squircle;
    font-size: .75rem;
    font-weight: 750;
    color: var(--ink-700);
}

.ds-nav-demo .is-active,
.ds-tabs-demo .is-active {
    color: var(--primary-700);
    background: var(--secondary-100);
}

.ds-alert-demo {
    align-items: center;
    border-left: 4px solid var(--success);
}

.ds-alert-demo strong {
    color: var(--success);
    font-size: .8rem;
}

.ds-alert-demo span {
    font-size: .78rem;
    color: var(--ink-700);
}

.ds-pattern-grid {
    grid-template-columns: repeat(3, 1fr);
}

.ds-accessibility-grid {
    align-items: center;
}

.ds-check-card {
    padding: 2rem;
}

.ds-check-card .list-checks {
    margin-top: 1.25rem;
}

.ds-doc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.ds-doc-grid .card {
    min-height: 230px;
}

.ds-doc-grid h3 {
    margin-top: .7rem;
}

.ds-doc-grid p {
    margin-top: .65rem;
    color: var(--ink-600);
}

.ds-closing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.ds-closing > div {
    max-width: 70ch;
}

.ds-closing p {
    margin-top: .85rem;
    color: var(--ink-600);
}


/* ============================== REDUCED MOTION ============================== */

@media (prefers-reduced-motion: reduce) {
    .ds-principle,
    .gravity-component-card,
    .gravity-foundation-card {
        transition: none;
    }
}

/* ============================== REDUCED MOTION ============================== */

/* ============================== ICONS ============================== */

/* ----------  Takeaway Icons ---------- */

.takeaway-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-700);
    border-radius: 50%;
    color: var(--primary-700);
    margin-bottom: 1.5rem;
}

.takeaway-icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ---------- Individual Icon Accents ---------- */

.takeaway-icon--brand {
    color: var(--surface);
}

.takeaway-icon--personalized {
    color: var(--surface);
}

.takeaway-icon--balance {
    color: var(--surface);
}

.takeaway-icon--journey {
    color: var(--surface);
}


/* ---------- Subtle Hover Animation ---------- */

.takeaway-card:hover .takeaway-icon {
    transform: translateY(-3px);
}

.takeaway-icon {
    transition:
        transform 180ms ease,
        background-color 180ms ease;
}

.takeaway-card:hover .takeaway-icon {
    background-color: var(--primary-100);
}


/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .takeaway-icon {
        transition: none;
    }

    .takeaway-card:hover .takeaway-icon {
        transform: none;
    }
}

/* ============================== ICONS ============================== */


