/* ============================================
   UPSOLUT — UNIFIED STYLESHEET
   ============================================
   Consolidated styles for all page types.
   Structure: Variables → Base → Components → Pages → Media Queries
   ============================================ */

:root {
    --bg: #ffffff;
    --page: #ffffff;
    --outer: #f4f4f4;

    --text: #111;
    --headings: var(--text);
    --muted: #3b3b3b;
    --line: #d7d7d7;

    --brand: #ff4b2e;
    --link: #1a73e8;

    --content: 740px;

    /* Layout Standards */
    --layout-padding: 100px;
    --layout-padding-mobile: 24px;

    /* Calculated Widths */
    --container-max-width: calc(var(--content) + (var(--layout-padding) * 2));

    /* Z-Index Layering */
    --z-base: 1;
    --z-floating: 10;
    --z-nav: 100;
    --z-modal: 1000;
    --z-overlay: 9999;
    --z-max: 10000;

    --serif: Georgia,
        "Times New Roman",
        Times,
        serif;
    --sans: system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        "Apple Color Emoji",
        "Segoe UI Emoji";
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 24px 0;
    background: var(--outer);
    color: var(--text);
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.6;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Ensure iframes maintain aspect ratio if width is constrained */
iframe {
    aspect-ratio: 16 / 9;
}

/* ============================================
   FIGURE & CAPTIONS
   ============================================ */

figure {
    margin: 32px 0;
    width: 100%;
}

/* Specific alignment classes often used with figures */
figure.aligncenter {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

figure.featured-image {
    margin: 0 0 32px 0;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

figure.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

figcaption {
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
    margin-top: 12px;
    text-align: center;
    font-style: italic;
    padding: 0 16px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

h3 {
    font-family: var(--serif);
    font-size: 22px;
    margin: 32px 0 12px;
    line-height: 1.3;
    font-weight: 700;
}

.hidden {
    display: none !important;
}

/* ============================================
   LINKS (GLOBAL)
   ============================================ */

a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--link);
}

a:visited {
    color: inherit;
}

a:hover,
a:focus-visible,
a:active {
    color: var(--link);
}

a[aria-current="page"] {
    color: var(--brand);
    text-decoration: none;
}

/* ============================================
   LAYOUT
   ============================================ */

.container,
.wrap {
    width: min(var(--container-max-width), calc(100% - (var(--layout-padding) * 2)));
    margin: 0 auto;
}

/* Standard Section Spacing */
main>section {
    margin-bottom: 60px;
}

main>section>h2:first-child,
main>section>.section-title:first-child {
    margin-top: 0;
}



/* Case headings inside the card */
.case-column h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
    font-family: var(--sans);
    /* Explicitly set system font */
}

/* Case headings inside the card */

.case-grid {
    display: grid;
    gap: 24px;
}



.container {
    min-height: calc(100svh - 48px);
    margin: 0 auto;
    padding: 48px var(--layout-padding) 28px var(--layout-padding);
    display: flex;
    flex-direction: column;
    background: var(--page);
    border-radius: 16px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Make editorial blocks readable width by default */
.hero,
.breadcrumb {
    max-width: var(--content);
    margin-left: 0;
}

section {
    max-width: var(--content);
}

/* Footer should span full container width */
.site-footer {
    max-width: none;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    margin: 0 0 22px;
}

.hero__title {
    font-family: var(--serif);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 0.95;
    font-size: clamp(44px, 7vw, 78px);
    margin: 0 0 16px;
}

.service-cta {
    display: inline-block;
    background-color: #FAFAFA;
    border: 1px solid #EAEAEA;
    border-left: 4px solid var(--brand);
    padding: 24px 32px;
    margin: 48px 0;
    color: var(--text);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    width: 100%;
}

.service-cta:hover {
    background-color: #fff;
    border-color: var(--brand);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    color: var(--brand);
}

.service-cta strong {
    display: block;
    color: var(--brand);
    font-family: var(--serif);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.hero__lead {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.55;
    max-width: 72ch;
}

/* Ingress (special lead text) */
.hero__lead.ingress {
    color: var(--text);
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.35;
    border-left: 4px solid var(--brand);
    padding-left: 16px;
    max-width: var(--content);
}

.hero-quote {
    font-family: var(--sans);
    font-weight: 300;
    /* Light weight */
    font-size: 32px;
    /* Much bigger */
    line-height: 1.4;
    font-style: italic;
    text-align: center;
    margin: 60px auto;
    color: var(--muted);
    max-width: 500px;
    /* Slightly wider to fit bigger text */
    opacity: 0.9;
}

/* Brand accent */
.brand-accent,
.text-brand {
    color: var(--brand);
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--muted);
    margin: 6px 0 35px;
}

#crumb {
    margin-bottom: 35px;
}

#talkLevel .section-title {
    margin-top: 10px;
}

.breadcrumb .sep {
    margin: 0 6px;
    opacity: 0.7;
}

/* ============================================
   BUTTONS & FORMS
   ============================================ */

.btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 18px 40px;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 21px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
    line-height: 1.2;
    text-decoration: none;
}

.btn--primary,
.btn--primary:visited,
.btn--primary:hover,
.btn--primary:active,
.btn--primary:focus {
    background: var(--brand);
    color: #fff !important;
}

.btn--primary:hover {
    filter: brightness(0.95);
}

/* Prevent generic link hover styles on buttons */
a.btn:hover {
    text-decoration: none;
    color: inherit;
}

/* Form Elements */
.formwrap {
    margin-top: 40px;
    /* Was 24px, give it more air from list */
    max-width: var(--content);
    margin-left: auto;
    margin-right: auto;
    font-family: var(--sans);
    background: #f9f9f9;
    padding: 48px 48px 24px 48px;
    /* Matches layout-padding likely */
    border-radius: 16px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 80px;
    /* Ensure space before footer */
}

.form-heading {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    font-family: var(--serif);
    letter-spacing: -0.01em;
}

.form-subtitle {
    margin: 0 0 32px;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 10px 0 0;
}

.field label {
    display: block;
    font-size: 13px;
    margin: 0 0 8px;
    color: var(--text);
    font-weight: 600;
    font-family: var(--sans);
}

input,
select,
textarea {
    width: 100%;
    font-family: var(--sans);
    font-size: 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    padding: 12px 14px;
    outline: none;
}

textarea {
    padding: 14px;
    resize: vertical;
}

::placeholder {
    color: var(--muted);
    opacity: 0.9;
}

select {
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233b3b3b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 16px) 50%;
    background-size: 16px 16px;
}

.consent {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 12px 0 0;
    font-size: 14px;
    font-family: var(--sans);
}

.consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
}

.actions--right {
    justify-content: flex-end;
}

.note {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--muted);
    font-family: var(--sans);
}

.note.error {
    color: #ef4444;
    /* Red */
    font-weight: 700;
    /* Bold */
    font-size: 16px;
    /* Larger */
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    padding: 12px;
    border: 1px solid #fee2e2;
    border-radius: 8px;
}

/* ============================================
   CHOICES (UI COMPONENT)
   ============================================ */

.choices-prompt {
    margin: 22px 0 12px;
    color: var(--text);
    font-size: 15px;
    font-family: var(--sans);
}

/* Container for choices to ensure consistent spacing */
.choices {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 60px;
    width: 100%;
    max-width: var(--content);
}

.choice {
    appearance: none;
    width: 100%;
    /* Ensure full width for anchor tags */
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: 12px;
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0.5) 1px, transparent 1px, transparent 4px),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0.5) 1px, transparent 1px, transparent 4px),
        linear-gradient(#f3f3f3, #ececec);
    padding: 12px 24px 12px 76px;
    margin: 0;
    /* Reset margins */
    text-align: left;
    text-decoration: none;
    /* For anchor tags */
    color: var(--text);
    cursor: pointer;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    /* Normalize line height */
    letter-spacing: normal;
    transition:
        background 120ms ease,
        border-color 120ms ease,
        color 120ms ease;
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Sidebar Brand Block */
.choice::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 60px;
    background: var(--brand);
    z-index: var(--z-base);
}

.choice span {
    line-height: 1.2;
    padding-top: 1px;
    /* Optical alignment */
    position: relative;
    z-index: 2;
}

.choice svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: #fff;
    stroke: currentColor;
    opacity: 1;
    transition: opacity 120ms ease;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-sizing: content-box;
}

.choice:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.choice:hover svg {
    opacity: 1;
    background-color: transparent;
}

/* Footer CTA uses choices - ensure consistent styling */


.start-journey .choice:hover,
.footer-cta .choice:hover {
    color: #fff;
    text-decoration: none;
}

/* ============================================
   TOPBAR / BREADCRUMB BAR (FLOW)
   ============================================ */

/* Standard breadcrumb used instead of custom topbar/crumb */

/* ============================================
   TALK CTA
   ============================================ */

.talk-cta {
    margin: 60px auto 60px;
    /* More white space as requested */
    max-width: var(--content);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.talk-question {
    align-self: center;
    text-align: center;
    margin: 0 0 20px;
    font-weight: 500;
    font-family: var(--sans);
    font-size: 18px;
    /* Slightly larger question */
}

.talk-cta .btn {
    font-size: 20px;
    padding: 18px 48px;
    border-radius: 50px;
    /* Make it more oval like the example? Standard is 12px. User said "not need to be this big" referring to the HUGE one, but "quite big". */
    /* I'll stick to standard radius if brand dictates, but maybe slightly rounder? Style guide says 4px or 12px? Check btn class. */
    /* Step 355 view showed .btn { border-radius: 8px; } */
    /* I'll keep radius consistent but increase padding/font. */
    width: 100%;
    max-width: 320px;
}

/* ============================================
   LISTS IN FLOW
   ============================================ */

.next-steps__list {
    margin: 0 0 18px 22px;
    padding: 0;
}

.next-steps__list li {
    margin: 6px 0;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */

.section-title {
    font-family: var(--serif);
    font-weight: 700;
    letter-spacing: -0.012em;
    font-size: 30px;
    line-height: 1.2;
    margin: 34px 0 10px;
    color: var(--brand);
}

.article-body .section-title {
    color: var(--brand);
}

.section-lead {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.5;
    font-family: var(--serif);
}

/* ============================================
   GLOBAL FOOTER
   ============================================ */

.site-footer {
    padding: 18px 0 26px;
    margin-top: 0;
    font-family: var(--sans);
    margin-left: calc(var(--layout-padding) * -1);
    margin-right: calc(var(--layout-padding) * -1);
    width: calc(100% + (var(--layout-padding) * 2));
    background-color: var(--page);
    border-top: 1px solid #eaeaea;
}

/* Home Footer Variant (Overrides base footer) */
.site-footer--home {
    border-top: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    /* margin-top: 0 !important; Removed to allow auto */
}

.site-footer--home::before {
    display: none !important;
}

/* Prompt Styling (Body Text) */
.choices-prompt {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 24px;
}

.site-footer__inner {
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--layout-padding);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
}

.footer-brand {
    justify-self: start;
}

.footer-brand .footer-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.footer-link.active {
    color: var(--brand);
    font-weight: 600;
}

.footer-brand__link:hover {
    transform: none;
}

.footer-logo {
    height: 20px;
    width: auto;
    display: block;
}

.footer-copy {
    font-size: 14px;
    color: var(--text);
    font-family: var(--sans);
    justify-self: end;
    text-align: right;
}

.footer-links {
    font-size: 14px;
    font-family: var(--sans);
    text-align: center;
    justify-self: center;
}

/* Article Footer Wrapper (used by footer.js) */
.article-footer-wrapper {
    background-color: var(--page);
    font-family: var(--sans);
    width: auto;
    margin-left: calc(var(--layout-padding) * -1);
    margin-right: calc(var(--layout-padding) * -1);
    margin-top: 0;
    margin-bottom: 0;
    padding: 64px 0 0 0;
    border-top: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Brand Triangle (Top-Right) */
.article-footer-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    background-color: var(--brand);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    z-index: var(--z-base);
}

/* Footer CTA Subsection */
.footer-cta {
    margin-bottom: 20px;
    width: min(var(--container-max-width), calc(100% - (var(--layout-padding) * 2)));
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    position: relative;
    z-index: var(--z-floating);
}

/* 
   Context-aware reset: prevents double-padding when used inside main container 
   (Home page case only)
*/
.home-content.footer-cta {
    width: 100%;
    max-width: none;
    margin-bottom: 0;
    padding-bottom: 30px;
}

.footer-cta .section-title,
.start-journey .section-title {
    margin-top: 0;
    margin-bottom: 16px;
    text-align: left;
    font-size: 32px;
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.25;
    color: var(--brand);
}



.footer-cta .choices {
    max-width: var(--content);
    width: 100%;
    margin-top: 48px;
}

.start-journey {
    margin-bottom: 30px;
}

.start-journey .choices {
    max-width: var(--content);
    width: 100%;
    /* Home Page Specific Spacing */
    margin-top: 48px;
    margin-bottom: 30px;
}

.article-footer-wrapper .site-footer__inner {
    padding-top: 0;
    border-top: none;
    position: relative;
    z-index: var(--z-floating);
}

/* ============================================
   HOME FOOTER CONTEXT (Overrides footer.js)
   ============================================ */
.footer-context-home .article-footer-wrapper {
    padding-top: 0;
    border-top: none;
    background: transparent;
}

.footer-context-home .article-footer-wrapper::before {
    display: none;
}

.footer-context-home .footer-cta,
.footer-context-home .footer-newsletter {
    display: none;
}

/* State: Show Newsletter (Level 3) */
.footer-context-home.show-newsletter .article-footer-wrapper {
    padding-top: 64px;
    border-top: 1px solid #eaeaea;
}

.footer-context-home.show-newsletter .footer-newsletter {
    display: block;
}

/* ============================================
   PAGE-SPECIFIC: HOME / FLOW PAGES
   ============================================ */

/* Stage / Subtopic */

/* ============================================
   SERVICE CTA BUTTON (ARTICLES)
   ============================================ */

.service-cta-button {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background-color: #fff;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    margin: 32px auto;
    transition: all 0.2s ease;
    font-family: var(--sans);
    font-size: 17px;
}

.service-cta-button:hover {
    border-color: var(--brand);
    color: var(--brand);
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


/* ============================================
   WORK PAGE STYLES
   ============================================ */
.case-study {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 32px;
}

/* Case rows inside the card (Redesigned) */
.case-rows {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.case-row h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    margin-bottom: 8px;
    font-weight: 700;
    font-family: var(--sans);
    border-bottom: none;
    padding-bottom: 0;
}

.case-row p,
.case-row li {
    font-family: var(--sans);
    font-size: 16px;
    color: var(--text);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Delivered Tags (Pill style) */
.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.case-tags span {
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    color: var(--text);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--sans);
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
}

/* Delivered Tags (Link style - matches Insights/Answers pills) */
.case-tags a {
    display: inline-block;
    background: #f4f4f4;
    border: 1px solid #d7d7d7;
    color: var(--text);
    padding: 6px 12px;
    border-radius: 12px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.case-tags a:hover {
    background: #fff;
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Custom Checkmark List for Impact */
.case-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.case-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
}

.case-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 10px;
    border: solid var(--brand);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}



/* Why Upsolut Redesign */
/* REFACTORED TO BOTTOM: PAGE OUR WORK
.why-upsolut-grid {
    display: grid;
    gap: 60px;
}
*/



.how-we-work h3,
.the-difference h3 {
    margin-top: 0;
    margin-bottom: 32px;
}

/* Work Process (Numbered List) */
.work-process {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.work-process li {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.work-process .step-num {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 14px;
    color: var(--brand);
    min-width: 24px;
}

.work-process .step-title {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 18px;
    /* Bigger, bolder */
    color: var(--text);
}

.work-philosophy {
    margin-top: 40px;
    font-style: italic;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 18px;
    border-left: 3px solid var(--line);
    padding-left: 16px;
}

/* The Difference (Check List) */
.difference-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.difference-list li {
    position: relative;
    padding-left: 32px;
    font-size: 17px;
    font-family: var(--serif);
    /* Keep serif for "voice" */
}

.difference-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0px;
    color: var(--brand);
    font-weight: bold;
    font-size: 18px;
}

/* Why Upsolut Animation */
.work-philosophy-anim {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0 0 0;
    /* Top padding only, bottom handled by grid gap */
}

.work-philosophy-anim p {
    font-family: var(--serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
}



.work-steps--list {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.work-steps--list li {
    width: 100%;
    margin-bottom: 0;
}

.work-steps--list li::after {
    display: none;
    /* Remove arrows */
}

/* Check list for "Difference" section */
.check-list {
    padding-left: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: bold;
}

.service-icon {
    color: var(--brand);
    margin-bottom: 24px;
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

/* Case Study as a distinct Card */
.case-study {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-study:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #e0e0e0;
}

.case-study h3 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text);
    font-family: var(--serif);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.case-description {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 90%;
}

.case-grid {
    display: grid;
    gap: 24px;
}



.case-column h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand);
    font-weight: 700;
    margin-bottom: 16px;
    border-bottom: none;
    padding-bottom: 0;
    font-family: var(--sans);
}

.case-column ul {
    padding-left: 20px;
    margin: 0;
}

.case-column li {
    margin-bottom: 6px;
    font-size: 0.95rem;
}





.subtopic__title {
    font-family: var(--serif);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: clamp(34px, 5vw, 56px);
    margin: 14px 0 10px;
    line-height: 1.05;
}

/* ============================================
   DOCUMENT LINKS (PDFs)
   ============================================ */
.document-link {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
    margin-top: 16px;
    max-width: 600px;
}

.document-link:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: var(--brand);
}

.document-link svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--muted);
    transition: color 0.2s ease;
}

.document-link:hover svg {
    color: var(--brand);
}

.document-link span {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 16px;
}

/* ============================================
   HOME PAGE SPECIFICS (Refactored from Inline)
   ============================================ */

.home-content {
    padding: 0;
    margin-top: 40px;
    margin-bottom: 40px;
}

.home-intro {
    margin-bottom: 24px;
}

.home-intro-strong {
    margin-bottom: 24px;
    font-weight: 600;
}

.playground-grid-mb {
    margin-bottom: 24px;
}

.impact-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 24px;
}

.impact-final {
    font-weight: 600;
    opacity: 0;
    margin-bottom: 32px;
}

.home-btn-container {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 30px;
}

.home-teaser-mb {
    margin-bottom: 32px;
}

/* Card overrides for home page specific spacing */
.home-card-override {
    margin: 32px auto;
    max-width: 100%;
    text-align: left;
}

.subtopic__text {
    margin: 0 0 16px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.6;

}

/* Subtopic Header with Icon */

.subtopic-header {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 32px;
}


.subtopic-icon {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    color: var(--brand);
}

.subtopic-icon svg {
    width: 64px;
    height: 64px;
    stroke-width: 1.5;
}

.subtopic-content {
    flex: 1;
}

/* Mobile responsive for subtopic header */


/* Network Visual Cue */
.network-block {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin: 32px 0;
}

.network-content {
    flex: 1;
}

.network-visual {
    flex: 0 0 120px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}



/* How We Work */
.how-we-work {
    margin: 0;
}



/* Projects List */
.projects {
    margin: 34px 0 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 22px 0 0;
}

.project-card {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 14px;
    padding: 24px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: var(--sans);
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--brand);
}

.project-card svg {
    display: block;
    width: 32px;
    height: 32px;
    margin: 0 0 16px;
    color: var(--brand);
}

.card-link {
    display: inline-block;
    margin-top: auto;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: var(--brand);
    text-decoration: none;
}

/* ============================================
   TOPICS LIST & BUTTONS
   ============================================ */

.categories-list {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.categories-list .label {
    font-weight: 600;
    font-family: var(--sans);
    font-size: 15px;
    margin-right: 4px;
}

.categories-list .btn {
    padding: 6px 12px;
    font-size: 14px;
    background: #f4f4f4;
    border: 1px solid #d7d7d7;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.categories-list .btn:hover,
.categories-list .btn.active {
    background: #fff;
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.categories-list .btn.active {
    background: var(--brand);
    color: #fff;
}

.project-card h3 {
    font-family: inherit;
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 10px;
    line-height: 1.3;
    color: var(--text);
}

.project-card p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.5;
    flex-grow: 1;
}

/* Selected Clients */
.clients {
    margin: 34px 0 0;
}

.client-logos {
    list-style: none;
    padding: 0;
    margin: 12px 0 60px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 14px;
    font-family: var(--sans);
}

.client-logos li {
    margin: 0;
    padding: 18px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo {
    display: block;
    height: 46px;
    width: auto;
    max-width: 100%;
    opacity: 1;
    filter: grayscale(0%);
}

/* LinkedIn Follow */
.linkedin-follow {
    margin: 0 0 64px;
    font-family: var(--sans);
}

.linkedin-follow::after {
    content: "";
    display: block;
    height: 1px;
    background: #e6e6e6;
    margin: 32px 0 0;
    width: 100%;
}

.linkedin-follow.no-divider::after {
    display: none;
}

.linkedin-follow__label {
    display: block;
    margin: 0 0 14px;
}

/* ============================================
   PAGE-SPECIFIC: ARTICLE / INSIGHTS
   ============================================ */

/* Article Header Band */
.article-header-band {
    margin: calc(var(--layout-padding) * -1) calc(var(--layout-padding) * -1) 20px calc(var(--layout-padding) * -1);
    padding: var(--layout-padding) var(--layout-padding) 24px var(--layout-padding);
    width: calc(100% + (var(--layout-padding) * 2));
    border-bottom: 1px solid #eaeaea;
    background-color: var(--page);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.article-header-band .hero,
.article-header-band .breadcrumb {
    position: relative;
    z-index: 2;
    max-width: var(--content);
    margin-left: 0;
    padding-left: 0;
    width: 100%;
}

/* Article Layout */
.article-content {
    max-width: var(--content);
    margin: 0 auto;
    padding: 10px 0 40px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.article-meta {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 20px;
}

.article-meta a {
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--muted);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.article-meta a:hover {
    color: var(--text);
    border-color: var(--text);
}

/* Article Typography */
.article-body {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
}

.article-body h2 {
    font-family: var(--serif);
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text);
}

.article-body h3 {
    font-family: var(--serif);
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text);
}

.article-body p {
    margin-bottom: 24px;
}

.article-body ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body .article-primary-heading {
    color: var(--brand);
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 24px;
    line-height: 1.25;
}

.article-body>*:last-child {
    margin-bottom: 20px;
}

/* Read Next Section */
.read-next {
    border-top: 1px solid #eaeaea;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 40px;
    padding-bottom: 40px;
    max-width: 100%;
}

.read-next .section-title {
    margin-top: 0;
}

/* Article Cards - entire card is clickable */
.article-card {
    background: #fafafa;
    border: 1px solid #e9e9e9;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.article-card:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--line);
    text-decoration: none;
}

.article-card h3 {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text);
}

.article-card p {
    margin: 0 0 16px;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.5;
    flex-grow: 1;
}

/* ============================================
   WORK STEPS (How We Work)
   ============================================ */



.article-card .card-link {
    font-size: 15px;
    color: var(--link);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
    transition: color 0.2s ease;
    pointer-events: none;
}

.article-card:hover .card-link {
    color: var(--brand);
}

/* Related Articles */
.related-articles {
    margin: 60px 0 40px;
    border-top: 1px solid #eaeaea;
    padding-top: 40px;
}

.related-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 24px;
    font-weight: 600;
}

/* ============================================
   RELATED ARTICLES (Flow)
   ============================================ */

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.related-card {
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
    border: 1px solid #e9e9e9;
    border-radius: 14px;
    padding: 24px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
    font-family: var(--sans);
}

.related-card:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--brand);
}

.related-card__title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.3;
}

.related-card__link {
    display: inline-block;
    margin-top: auto;
    font-size: 15px;
    font-weight: 600;
    color: var(--link);
    transition: color 0.2s ease;
}

.related-card:hover .related-card__link {
    color: var(--brand);
}


/* ============================================
/* ============================================
   UTILITY CLASSES (Audit Report Cleanup)
   ============================================ */

.mb-16 {
    margin-bottom: 16px;
}

.mb-32 {
    margin-bottom: 32px;
}

.mb-48 {
    margin-bottom: 48px;
}

.mb-60 {
    margin-bottom: 60px;
}



.mt-20 {
    margin-top: 20px;
}

.align-text-bottom {
    vertical-align: text-bottom;
}

.lead-text-constrained {
    max-width: 800px;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-start {
    justify-content: flex-start;
}

.min-h-160 {
    min-height: 160px;
}

/* ============================================
   WORK PHILOSOPHY & PROCESS LIST
   ============================================ */

.work-philosophy-anim {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Aligns text block to top of centered container if needed, or center */
    /* Note: "Jeremy" fix in JS handles vertical centering via container height lock */
}

/* Use ID for specificity instead of !important */
#workPhilosophy p {
    font-family: "Cormorant Garamond", var(--serif);
    font-size: 2rem;
    font-weight: 300;
    /* Ultra-Light/Light */
    font-style: italic;
    line-height: 1.3;
    color: #888;
    margin: 0 0 24px 0;
    letter-spacing: 0;
}


#workPhilosophy p:last-child {
    margin-bottom: 0;
}

/* Process List (Right Column) */
.process-list {
    font-family: var(--sans);
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.process-list li {
    list-style: none !important;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 16px;
    align-items: start;
}

.process-num {
    width: 28px;
    height: 28px;
    background-color: var(--brand);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    margin-top: 2px;
}

.process-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text);
}

.process-content p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
}

/* ============================================
   MEDIA QUERIES (Consolidated)
   ============================================ */

/* Desktop / Tablet Breakpoints */

@media (max-width: 950px) {


    /* 
       Intermediate Breakpoint (Tablet/Narrow Desktop)
       Standardize to 50px padding as requested 
    */
    :root {
        --layout-padding: 50px;
    }

    .container,
    .wrap {
        width: min(var(--container-max-width), calc(100% - 100px));
        /* 50px * 2 */
    }

    /* Footer - 50px logic */
    .site-footer {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .site-footer__inner {
        padding: 0 50px;
        gap: 24px;
    }

    /* Article Footer Wrapper */
    .article-footer-wrapper {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
        padding: 40px 0 0 0;
    }

    .footer-cta {
        width: 100%;
        padding: 0 50px;
    }
}

@media (max-width: 900px) {

    /* Restore Mobile/Tablet Logic (24px) below 901px */
    :root {
        --layout-padding: var(--layout-padding-mobile);
    }

    .container,
    .wrap {
        width: 100%;
        /* Restore standard mobile width logic if needed, or calc matches var */
    }

    .site-footer {
        margin-left: calc(var(--layout-padding-mobile) * -1);
        margin-right: calc(var(--layout-padding-mobile) * -1);
        width: calc(100% + (var(--layout-padding-mobile) * 2));
    }

    .site-footer__inner {
        padding: 0 var(--layout-padding-mobile);
    }

    .article-footer-wrapper {
        margin-left: calc(var(--layout-padding-mobile) * -1);
        margin-right: calc(var(--layout-padding-mobile) * -1);
        padding: 100px var(--layout-padding-mobile) 0 var(--layout-padding-mobile);
    }

    .footer-cta {
        padding: 0 var(--layout-padding-mobile);
        margin-bottom: 80px;
    }

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

@media (min-width: 768px) {
    .case-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

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

@media (max-width: 700px) {



    /* Footer Stacking for Mobile */
    .start-journey {
        margin-top: 60px !important;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        justify-items: start;
    }


    /* Container & Layout */
    .container,
    .wrap {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .container {
        padding: 32px var(--layout-padding-mobile) 24px var(--layout-padding-mobile);
        min-height: 100vh;
    }

    .formwrap {
        padding: 24px;
        margin-top: 24px;
        margin-bottom: 60px;
    }

    /* Forms */
    .grid {
        grid-template-columns: 1fr;
    }

    /* Article Header Band */
    .article-header-band {
        margin: -28px calc(var(--layout-padding-mobile) * -0.5) 28px calc(var(--layout-padding-mobile) * -0.75);
        padding: 28px 12px 22px 18px;
        width: calc(100% + 30px);
    }

    /* Client Logos */
    .client-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Add padding before footer on content pages (mobile) */
    #global-footer:not(.footer-context-home) {
        margin-top: 100px;
    }

    .footer-cta {
        padding-top: 60px;
    }
}

@media (max-width: 650px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    /* Network Block */
    .network-block {
        flex-direction: column;
        gap: 12px;
    }

    .network-visual {
        flex: 0 0 auto;
        width: 100%;
        justify-content: flex-start;
        padding-top: 0;
    }

    .network-visual svg {
        width: 60px;
    }
}

@media (max-width: 520px) {
    .work-steps {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PROJECT CARD WITH IMAGE
   ============================================ */

.project-card.has-image {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card.has-image .card-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f7f7f7;
    border-bottom: 1px solid #eaeaea;
}

.project-card.has-image .card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card.has-image:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.project-card.has-image .card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card h3,
.project-card.has-image h3 {
    margin-top: 0;
    font-size: 20px;
    font-family: var(--serif);
    font-weight: 700;
}

.project-card.has-image p {
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ============================================
   FOOTER TEASERS (Answers / Insights)
   ============================================ */

.footer-teaser {
    padding: 30px 0;
    margin: 0 auto;
    /* border-top: 1px solid #eaeaea; removed */
    /* border-bottom: 1px solid #eaeaea; removed */
}

/* Remove top border from subsequent teasers to avoid double lines */
.footer-teaser+.footer-teaser {
    border-top: none;
}

/* Ensure exact spacing for title */
.footer-teaser .section-title {
    margin-top: 0;
}

/* Button container spacing */
.footer-teaser .btn-container {
    text-align: center;
    margin: 60px 0 0;
}

/* ============================================
   NEWSLETTER FORM
   ============================================ */

.footer-newsletter {
    margin-bottom: 60px;
    width: min(var(--container-max-width), calc(100% - (var(--layout-padding) * 2)));
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    position: relative;
    z-index: var(--z-floating);
    text-align: center !important;
}

.footer-newsletter .section-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 28px;
    text-align: center;
}


.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 10px;
    justify-content: center !important;
    align-items: center;
    flex-wrap: wrap;
}

.input-group .email-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--sans);
    outline: none;
    transition: border-color 0.2s ease;
}

.input-group .email-input:focus {
    border-color: var(--brand);
}

.input-group .btn {
    white-space: nowrap;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
}



/* ============================================
   TYPEWRITER ANIMATION
   ============================================ */

.typing-cursor::after {
    content: '_';
    opacity: 1;
    animation: blink 1s step-end infinite;
    display: inline-block;
    margin-left: 2px;
    color: var(--brand);
}

/* Zero-width cursor for stable centered animations */
.anim-cursor {
    display: inline-block;
    width: 0;
    overflow: visible;
    color: var(--brand);
    position: relative;
    vertical-align: baseline;
}

.anim-cursor::after {
    content: "_";
    position: absolute;
    bottom: -2px;
    left: 1px;
    animation: blink 1s step-end infinite;
    font-weight: 700;
    line-height: 1;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}


/* ============================================
   PLAYGROUND LAYOUT
   ============================================ */

.playground-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.playground-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.playground-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Ensure image respects container */
.playground-visual img {
    margin: 0;
    /* Remove previous margins */
    max-width: 100%;
    height: auto;
}

/* Remove vertical margins from content ends for true centering */
.playground-content> :first-child {
    margin-top: 0;
}

.playground-content> :last-child {
    margin-bottom: 0;
}



/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox-trigger {
    position: relative;
    display: block;
    cursor: zoom-in;
    border: none;
    padding: 0;
    background: none;
    transition: transform 0.2s ease;
}

.lightbox-trigger:hover {
    transform: scale(1.02);
}

.lightbox-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 1;
    transition: transform 0.2s ease;
    color: var(--brand);
}

.lightbox-icon svg {
    width: 18px;
    height: 18px;
}

.lightbox-trigger:hover .lightbox-icon {
    transform: scale(1.1);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: var(--z-overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 10px;
    transition: color 0.2s ease;
    z-index: var(--z-max);
}

.lightbox-close:hover {
    color: var(--brand);
}

/* ============================================
   reCAPTCHA
   ============================================ */

.grecaptcha-badge {
    visibility: hidden;
}

.recaptcha-legal {
    font-size: 14px;
    font-family: var(--sans);
    color: var(--muted);
    margin-top: 48px;
    text-align: center;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 1;
    /* Reset opacity to match consent text clarity */
}

.recaptcha-legal svg {
    flex-shrink: 0;
    margin-right: 6px;
    opacity: 0.8;
}

.recaptcha-legal a {
    color: var(--muted);
    text-decoration: underline;
}

/* ============================================
   FAQ CARD (Homepage)
   ============================================ */

.faq-card .card-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
}

.faq-card svg {
    width: 80px;
    height: 80px;
    min-width: 80px;
    /* Prevent shrinking */
    stroke-width: 1.5;
    margin: 0;
    /* Override default margin */
    color: var(--brand);
    opacity: 0.9;
}

.faq-card .text-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.faq-card .text-wrapper h3 {
    margin-top: 0;
}

.faq-card .text-wrapper p {
    flex-grow: 1;
}

/* Mobile responsive for FAQ card */


/* ============================================
   MOBILE BACKGROUND & LAYOUT OVERRIDE
   ============================================ */
@media (max-width: 900px) {

    html,
    body {
        background: var(--bg);
        /* Override grey outer background with white */
        padding: 0;
        /* no frame */
    }

    .container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        width: 100%;
        max-width: 100%;
        min-height: 100vh;

        padding: 24px 24px;
        /* Consistent top/bottom/side padding for mobile */
    }

    /* Fix footer alignment on mobile */
    .site-footer__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
        width: 100%;
    }

    .footer-brand {
        order: 1;
        /* Logo First */
        margin-bottom: 0;
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 24px;
    }

    .footer-brand .footer-link {
        display: flex;
        justify-content: center;
    }

    .footer-links {
        order: 2;
        /* Navigation Second */
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 4px;
        /* Row gap 8px, Column gap 4px */
        align-items: center;
        width: 100%;
        margin: 0;
    }

    /* Show separators again but ensure they don't break layout */
    .footer-links span[aria-hidden="true"] {
        display: inline;
        color: var(--line);
    }

    /* Force Home Content to respect container padding */
    .home-content,
    .footer-cta {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    /* Ensure Hero aligns same way */
    .hero {
        margin-left: 0;
        margin-right: 0;
    }

    .footer-copy {
        order: 3;
        /* Copyright Third */
        margin-top: 12px;
        text-align: center;
        width: 100%;
        margin-bottom: 24px;
    }

    .footer-content,
    .footer-nav,
    .footer-social,
    .footer-copyright {
        display: none;
    }
}

/* ============================================
   PAGE-SPECIFIC: ABOUT
   ============================================ */

.about-intro {
    line-height: 1.6;
    color: var(--text);
    max-width: 800px;
}

.about-intro p {
    margin-bottom: 24px;
}

.about-text {
    line-height: 1.6;
    color: var(--text);
}

.network-header {
    margin-top: 0;
}

/* Leadership Section */
.leadership-grid {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
}

.leadership-image-col {
    flex: 0 0 200px;
}

.leadership-image-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
}

.leadership-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leadership-content-col {
    flex: 1;
    min-width: 300px;
}

.leadership-name {
    margin-top: 0;
    margin-bottom: 8px;
}

.leadership-role {
    font-family: var(--sans);
    color: var(--brand);
    font-weight: 600;
    margin-bottom: 16px;
}

.leadership-bio {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text);
}

.leadership-link {
    text-decoration: underline;
    color: var(--text);
    font-weight: 500;
    margin-top: 8px;
    display: inline-block;
}

/* Utilities */
.mb-0 {
    margin-bottom: 0 !important;
}

.mt-24 {
    margin-top: 24px !important;
}

.mb-24 {
    margin-bottom: 24px !important;
}

/* Animation Initial State */
.impact-list li {
    opacity: 0;
}

/* ============================================
   MOBILE REFINEMENTS (2026-02-15)
   ============================================ */

/* CNY Hero Image */
.cny-hero-image {
    margin-top: 40px;
    margin-bottom: 60px;
}

.cny-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}



/* Playground Section */
.playground-grid {
    width: 100%;
    margin-bottom: 40px;
}

.playground-visual {
    width: 100%;
    overflow: hidden;
    /* Prevent overflow */
    border-radius: 12px;
}

.playground-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* Network Visual (About Page) */
.network-block {
    position: relative;
    display: flex;
    /* Side-by-side on desktop */
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 60px;
}

.network-content {
    flex: 1;
}

.network-visual {
    width: 180px;
    /* Fixed width for visual */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-visual svg {
    width: 100%;
    height: auto;
}



/* ============================================
   UTILITIES (Added for Cleanup)
   ============================================ */
.text-center {
    text-align: center;
}

.text-red {
    color: #ef4444;
}

.text-muted {
    color: var(--muted);
}

.text-18 {
    font-size: 18px;
}

.text-48 {
    font-size: 48px;
}

.mt-0 {
    margin-top: 0;
}

.mt-16 {
    margin-top: 16px;
}

.mt-32 {
    margin-top: 32px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

.p-success {
    padding: 60px 20px;
}

.field-full {
    grid-column: 1 / -1;
}

.recaptcha-icon {
    min-width: 14px;
    margin-right: 6px;
    position: relative;
    top: 1px;
}

.text-24 {
    font-size: 24px;
}

/* ============================================
   CONSOLIDATED MEDIA QUERIES (Part 2)
   ============================================ */

/* Min-Width 768px (Tablet Landscape+) */
@media (min-width: 768px) {
    .why-upsolut-grid {
        grid-template-columns: 1fr 1fr;
    }

    .case-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    /* Align animation text vertically */
    /* CRITICAL: Keep height 100% and justify-content center to match the list on the right */
    .why-upsolut-grid .flex-col {
        height: 100%;
    }

    /* REFACTORED TO BOTTOM: PAGE OUR WORK
    .work-philosophy-anim {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        padding-top: 0;
    }
*/

    /* Revert p styles to simple block */
    #workPhilosophy p {
        margin: 0;
        /* Removed min-height 121px - letting natural height take over */

        /* Typography */
        font-family: "Cormorant Garamond", var(--serif);
        font-size: 2rem;
        font-weight: 300;
        font-style: italic;
        line-height: 1.3;
        color: #888;

        display: block;
        /* Removed padding-top manual adjustments */
    }
}

/* Max-Width 900px */
@media (max-width: 900px) {
    .playground-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .playground-visual {
        justify-content: center;
    }

    .playground-visual img {
        max-width: 100%;
        height: auto;
    }
}

/* Max-Width 768px */
@media (max-width: 768px) {
    .work-philosophy-anim p {
        font-size: 1.6rem;
    }

    .network-block {
        display: block;
        /* Stack on mobile */
    }

    .network-visual {
        /* Reset from absolute to flow */
        position: static;
        width: 100%;
        max-width: 200px;
        margin: 0 auto 20px auto;
        opacity: 1;
        pointer-events: auto;
        display: flex;
        justify-content: center;
    }

    .network-header {
        position: relative;
        z-index: var(--z-base);
        /* Text above visual */
        max-width: 70%;
        /* Ensure text doesn't overlap visual too much if opaque */
    }
}

/* Max-Width 600px */
@media (max-width: 600px) {
    main>section {
        margin-bottom: 40px;
    }

    .client-logos {
        margin-bottom: 40px;
    }

    .subtopic-header {
        /* flex-direction: column;  REMOVED to keep side-by-side */
        /* align-items: center; REMOVED */
        /* text-align: center; REMOVED */
        gap: 16px;
        /* Increased gap for side-by-side */
        margin-top: -20px;
    }

    .subtopic-header .section-title {
        margin-top: 10px;
        /* Reduce from default 34px to bring closer to icon */
    }

    .subtopic__text {
        column-count: 1;
        text-align: left;
        /* Keep text readable */
    }

    /* Reduce impact list font size to prevent wrapping */
    .impact-list li {
        font-size: 15px !important;
        letter-spacing: -0.01em;
    }

    .subtopic-icon {
        width: 80px;
        height: 80px;
    }

    .subtopic-icon svg {
        width: 64px;
        height: 64px;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group .btn {
        width: 100%;
    }

    .faq-card .card-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .faq-card svg {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .cny-hero-image {
        margin-top: 10px;
        /* Reduced white space */
        margin-bottom: 40px;
    }
}

/* ============================================
   PAGE: OUR WORK (Refactored Order)
   ============================================ */

/* 1. Services Grid (Where we help) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 48px 0;
}

.service-card {
    background: #fff;
    padding: 32px 28px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    border-top: 4px solid var(--brand);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #eaeaea;
    /* keep border subtle */
}

/* Ensure link version doesn't have default underline */
a.service-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.service-card:hover h3 {
    color: var(--brand);
    transition: color 0.2s ease;
}

.service-card h3 {
    margin-top: 0;
    font-size: 1.35rem;
    font-family: var(--serif);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.service-card ul {
    list-style: none;
    /* Remove default bullets */
    padding-left: 20px;
    margin: 0;
    flex-grow: 1;
}

.service-card li {
    position: relative;
    /* Anchor the absolute ::before */
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 16px;
}

.service-card li::before {
    content: "•";
    color: var(--brand);
    position: absolute;
    left: -15px;
    /* Adjust position to sit left of text */
    top: -1px;
    /* Optical alignment */
}

.service-icon {
    color: var(--brand);
    margin-bottom: 24px;
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

/* 2. Work Steps (How We Work) */
.how-we-work {
    margin: 0;
}

.work-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    list-style: none;
    padding: 0;
    margin: 60px 0;
    counter-reset: step-counter;
}

.work-steps li {
    background: transparent;
    border: 1px solid transparent;
    padding: 32px;
    border-radius: 12px;
    position: relative;
    counter-increment: step-counter;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.work-steps li:hover {
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-5px);
}

.work-steps li::before {
    content: "0" counter(step-counter);
    font-size: 4rem;
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
    margin-bottom: 24px;
    display: block;
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.work-steps li:hover::before {
    transform: scale(1.05);
}

.work-steps li strong {
    display: block;
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--headings);
    font-family: var(--serif);
    font-weight: 400;
}

.work-steps li span {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.5;
}

/* 3. Selected Work (Case Studies) */
.client-logos {
    list-style: none;
    padding: 0;
    margin: 0 0 60px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 32px 48px;
    opacity: 1;
    /* Full opacity */
}

.client-logo {
    height: 32px;
    width: auto;
    /* filter: grayscale(100%); REMOVED */
    opacity: 1;
    /* Full opacity */
    transition: all 0.3s ease;
}

.client-logo:hover {
    /* No change on hover needed if always full color */
    transform: scale(1.05);
    /* Optional: slight scale effect instead */
}

.case-study {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-study:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #e0e0e0;
}

.case-study h3 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text);
    font-family: var(--serif);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.case-description {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 90%;
}

.case-grid {
    display: grid;
    gap: 24px;
}


/* 4. Why Upsolut (Philosophy & Process) */
.why-upsolut-grid {
    display: grid;
    gap: 60px;
}

.how-we-work h3,
.the-difference h3 {
    margin-top: 0;
    margin-bottom: 32px;
}

/* Work Process (Numbered List) */
.work-process {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.work-process li {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.work-process .step-num {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 14px;
    color: var(--brand);
    min-width: 24px;
}

.work-process .step-title {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 18px;
    /* Bigger, bolder */
    color: var(--text);
}

.work-philosophy {
    margin-top: 40px;
    font-style: italic;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 18px;
    border-left: 3px solid var(--line);
    padding-left: 16px;
}

/* The Difference (Check List) */
.difference-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.difference-list li {
    position: relative;
    padding-left: 32px;
    font-size: 17px;
    font-family: var(--serif);
    /* Keep serif for "voice" */
}

.difference-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0px;
    color: var(--brand);
    font-weight: bold;
    font-size: 18px;
}

/* Case rows inside the card (Redesigned) */
.case-rows {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 0;
    border-top: none;
}

.case-row h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    margin-bottom: 8px;
    font-weight: 700;
    font-family: var(--sans);
    border-bottom: none;
    padding-bottom: 0;
}

.case-row p,
.case-row li {
    font-family: var(--sans);
    font-size: 16px;
    color: var(--text);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Delivered Tags (Pill style) */
.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.case-tags span {
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    color: var(--text);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--sans);
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
}

/* Custom Checkmark List for Impact */
.case-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.case-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
}

.case-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 10px;
    border: solid var(--brand);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Animation Container (Desktop) */
@media (min-width: 768px) {
    .why-upsolut-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        /* Vertically center the grid items */
    }

    .why-upsolut-grid .flex-col {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Centers the animation block vertically */
    }

    .work-philosophy-anim {
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Vertically center */
        gap: 32px;
        /* Consistent spacing */
        width: 100%;
        /* Prevent horizontal shift */
        height: 100%;
        padding-top: 0;
    }

    .work-philosophy-anim p {
        margin: 0;
        white-space: nowrap;
        /* Prevent wrapping */
    }

    /* Removed unnecessary p:last-child margin override since we use gap */

    #workPhilosophy p {
        margin: 0;
        font-family: "Cormorant Garamond", var(--serif);
        font-size: 1.9rem;
        font-weight: 300;
        font-style: italic;
        line-height: 1.3;
        color: #888;
        display: block;
    }
}

/* Force override for mobile impact list */
@media (max-width: 600px) {
    .impact-list li {
        font-size: 15px !important;
        line-height: 1.4 !important;
    }
}

/* Force spacing for homepage start-journey on mobile */
@media (max-width: 700px) {
    #primaryNav.start-journey {
        margin-top: 60px !important;
    }
}

/* ============================================
   NAVIGATION (Mobile/Desktop Overlay)
   ============================================ */

.nav-trigger {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 200;
    /* Ensure high z-index above everything */
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    user-select: none;
}

/* Closed State Hover: Rotate & Brand Color */
body:not(.nav-open) .nav-trigger:hover {
    transform: rotate(90deg);
    background: var(--brand);
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(255, 75, 46, 0.3);
}

/* Open State Hover: Just Brand Color (No Rotation) */
.nav-open .nav-trigger:hover {
    background: var(--brand);
    border-color: transparent;
    transform: none;
}

.nav-trigger:hover .nav-trigger__line {
    background-color: #ffffff;
}

.nav-trigger:active {
    transform: translateY(0);
}

.nav-trigger__icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 18px;
    height: 18px;
    position: relative;
}

.nav-trigger__line {
    width: 100%;
    height: 2px;
    background-color: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Open State (X icon) */
.nav-open .nav-trigger__line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-trigger__line:nth-child(2) {
    opacity: 0;
}

.nav-open .nav-trigger__line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 150;
    /* Below trigger */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nav-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.nav-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.nav-overlay.is-active .nav-item {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.nav-overlay.is-active .nav-item:nth-child(1) {
    transition-delay: 0.1s;
}

.nav-overlay.is-active .nav-item:nth-child(2) {
    transition-delay: 0.15s;
}

.nav-overlay.is-active .nav-item:nth-child(3) {
    transition-delay: 0.2s;
}

.nav-overlay.is-active .nav-item:nth-child(4) {
    transition-delay: 0.25s;
}

.nav-overlay.is-active .nav-item:nth-child(5) {
    transition-delay: 0.3s;
}

.nav-link {
    font-family: var(--serif);
    font-size: 40px;
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--brand);
    text-decoration: none;
}

.nav-secondary {
    margin-top: 48px;
    opacity: 0;
    transition: all 0.5s ease 0.4s;
    display: flex;
    gap: 32px;
}

.nav-overlay.is-active .nav-secondary {
    opacity: 1;
}

.nav-branding {
    margin-top: 60px;
    /* Increased from 48px */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-overlay.is-active .nav-branding {
    opacity: 1;
    transform: translateY(0);
}

.nav-mission {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 300;
    color: #888;
    margin: 0 0 32px 0;
    /* Increased from 16px */
    text-align: center;
    max-width: 300px;
    line-height: 1.4;
    font-style: italic;
}

.nav-branding img {
    height: 24px;
    width: auto;
    display: block;
    /* margin: 0 auto; Not needed with flex align-items: center, but safe to keep if not flex */
}

.nav-link-sm {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.nav-link-sm:hover {
    color: var(--brand);
}

@media (max-width: 768px) {
    .nav-trigger {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        padding: 0;
    }

    .nav-link {
        font-size: 32px;
    }
}

/* Mobile Navigation Tightening (Small Screens) */
@media (max-width: 480px) {
    .nav-menu {
        gap: 16px;
        /* Tighten gap between items */
    }

    .nav-link {
        font-size: 28px;
        /* Slightly smaller font */
    }

    .nav-branding {
        margin-top: 40px;
        /* Bring branding closer */
    }

    .nav-mission {
        margin-bottom: 24px;
        font-size: 16px;
    }

    /* Fix Home Page Spacing (Subtitle to Image) */
    .home-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .hero {
        margin-bottom: 12px;
    }

    .cny-hero-image {
        margin-bottom: 30px;
    }

    /* Reduce Footer Padding on Mobile */
    .article-footer-wrapper {
        padding-top: 32px !important;
    }

    /* Force remove margin from last section on Work page */
    .page-work main>section:last-of-type {
        margin-bottom: 0 !important;
    }
}

/* NUCLEAR OPTION: Force Footer Spacing Fix */
@media (max-width: 800px) {

    /* Restore symmetrical margin to the section */
    .page-work main>section:last-of-type {
        margin-bottom: 60px !important;
    }

    /* Remove the huge 100px gap */
    #global-footer:not(.footer-context-home) {
        margin-top: 0 !important;
    }

    /* Remove the huge 100px padding */
    .article-footer-wrapper {
        padding-top: 0 !important;
    }

    /* Give the heading consistent symmetrical padding */
    .footer-cta {
        padding-top: 60px !important;
    }

    /* Fix Home Page Spacing (Subtitle to Image) - Moved to Nuclear Option */
    /* User requested standard heading padding (found to be 30px on other sections) */
    .home-content {
        margin-top: 0 !important;
        padding-top: 30px !important;
    }
}