/* =========================================
   POPE&CHARIOT — Stylesheet
   Palette: #F3FFFD · #A8DBDC · #41A0AC · #1E656D · #081F2C
   Fonts: Lancelot (headings), Inter Tight (body)
   Font colors: #081F2C (dark) or #F3FFFD (light) only
========================================= */

/* =========================================
   FONTS  (merged from fonts.css)
========================================= */

/* Inter Tight — normal, weights 400–700 (variable font) */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-tight-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-tight-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter Tight — italic, weight 400 */
@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-tight-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-tight-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Lancelot — normal, weight 400 */
@font-face {
  font-family: 'Lancelot';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lancelot-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lancelot';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lancelot-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Skip-link for keyboard / screen-reader users. Visible only when focused via Tab. */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 9999;
    background: var(--mint);
    color: var(--navy);
    padding: 12px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 6px 0;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--accent);
    outline-offset: 0;
}

/* Respect user OS-level reduced-motion preference. Disables transitions, animations, and smooth scroll. */
@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;
    }
}

:root {
    /* Site palette */
    --mint:         #F3FFFD;   /* light */
    --navy:         #081F2C;   /* dark */
    --accent:       #41A0AC;   /* medium teal */
    --light-teal:   #A8DBDC;   /* light teal */
    --dark-teal:    #1E656D;   /* dark teal */

    /* Text colors — only navy or mint */
    --text-on-light:  #081F2C;
    --text-on-dark:   #F3FFFD;
    --text-dim:       rgba(243, 255, 253, 0.65);

    /* Borders */
    --border-light:  rgba(8, 31, 44, 0.12);
    --border-dark:   rgba(243, 255, 253, 0.14);

    /* Fonts */
    --font-heading: 'Lancelot', Georgia, serif;
    --font-body:    'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --nav-h:   72px;
    --max-w:   1500px;
    --pad:     4vw;
    --pad-min: 20px;
    --ease:    0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-on-light);
    background: var(--mint);
    line-height: 1.5;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 max(var(--pad), var(--pad-min));
}

.section-header {
    margin-bottom: 56px;
}

.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(30px, 3.5vw, 48px);
    line-height: 1.15;
    letter-spacing: 0em;
    max-width: 700px;
}

/* label/title colors on light sections */
.section-label--light {
    color: rgba(8, 31, 44, 0.55);
}

.section-title--light {
    color: var(--text-on-light);
}

/* label/title colors on dark sections */
.section-label--dark {
    color: rgba(243, 255, 253, 0.5);
}

.section-title--dark {
    color: var(--text-on-dark);
}

/* =========================================
   BUTTONS
========================================= */

.btn {
    display: inline-block;
    padding: 16px 30px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    min-height: 44px;
    transition: opacity var(--ease), transform var(--ease);
}

/* Light button: mint bg, navy text — used on dark sections */
.btn-light {
    background: var(--mint);
    color: var(--navy);
}

.btn-light:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}


/* =========================================
   NAVIGATION
========================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navy);
}

.navbar {
    height: var(--nav-h);
}

.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 max(var(--pad), var(--pad-min));
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 32px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown {
    position: relative;
}

.nav-link {
    background: none;
    border: none;
    color: var(--text-on-dark);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: color var(--ease);
}

.nav-link:hover {
    color: var(--mint);
    opacity: 0.75;
}

.dropdown-arrow {
    font-size: 9px;
    transition: transform var(--ease);
    opacity: 0.55;
}

.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    min-width: 240px;
    background: var(--navy);
    border: 1px solid var(--border-dark);
    padding: 8px 0;
    z-index: 200;
}

.nav-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 11px 20px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(243, 255, 253, 0.6);
    transition: color var(--ease), background var(--ease);
}

.dropdown-item:hover {
    color: var(--mint);
    background: rgba(243, 255, 253, 0.05);
}

/* Mobile hamburger */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 8px;
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--mint);
    transition: all var(--ease);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   HERO  (dark navy background)
========================================= */

.hero {
    padding-top: calc(var(--nav-h) + 80px);
    padding-bottom: 100px;
    background: var(--navy);
    overflow: hidden;
}

.hero-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 max(var(--pad), var(--pad-min));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.hero-content {
    max-width: 580px;
}

.hero-label {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(243, 255, 253, 0.6);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.1;
    letter-spacing: 0em;
    color: var(--mint);
    margin-bottom: 28px;
}

.hero-subheadline {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-img {
    width: 100%;
    border-radius: 3px;
}

/* =========================================
   SERVICES — WHAT WE DO  (dark teal background — "dark" theme)
========================================= */

.services {
    padding: 100px 0;
    background: var(--navy);
}

.services .section-label {
    color: rgba(243, 255, 253, 0.82);
}

.services .section-title {
    color: var(--mint);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(243, 255, 253, 0.12);
    border: 1px solid rgba(243, 255, 253, 0.12);
}

.service-card {
    background: rgba(30, 101, 109, 0.3);
    border: 1px solid var(--border-dark);
    border-top: 2px solid var(--accent);
    padding: 44px 40px;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
    background: rgba(30, 101, 109, 0.55);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.service-title {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--mint);
    margin-bottom: 14px;
    line-height: 1.3;
}

.service-desc {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.75;
    color: rgba(243, 255, 253, 0.82);
}

.services-intro {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: rgba(243, 255, 253, 0.78);
    max-width: 820px;
    margin-bottom: 64px;
}

.services-cta {
    margin: 52px 0 80px;
}

.services-features {
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin-top: 80px;
}

.services-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.services-feature--reverse {
    direction: rtl;
}

.services-feature--reverse > * {
    direction: ltr;
}

.services-feature-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(22px, 2.2vw, 32px);
    line-height: 1.2;
    color: var(--mint);
    margin-bottom: 20px;
}

.services-feature-desc {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.78;
    color: rgba(243, 255, 253, 0.82);
    margin-bottom: 24px;
}

.services-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.services-feature-list li {
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.7;
    color: rgba(243, 255, 253, 0.82);
    padding-left: 20px;
    position: relative;
}

.services-feature-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: rgba(243, 255, 253, 0.6);
    font-size: 12px;
    top: 2px;
}

.services-feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   SELECTED ENGAGEMENTS  (mint background — empty "" theme)
========================================= */

.engagements {
    padding: 100px 0;
    background: var(--navy);
}

.engagements .section-label {
    color: rgba(243, 255, 253, 0.55);
}

.engagements .section-title {
    color: var(--mint);
}

.engagements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.engagement-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(243, 255, 253, 0.22);
    overflow: hidden;
    background: transparent;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.engagement-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.engagement-card--full {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.engagement-card--full .engagement-image {
    aspect-ratio: auto;
    height: 100%;
    min-height: 320px;
}

.engagement-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--navy);
}

.engagement-image > img:first-child {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0.82;
    transition: opacity 0.3s ease, transform 0.4s ease;
}


.engagement-card:hover .engagement-image > img:first-child {
    opacity: 0.95;
    transform: scale(1.03);
}

.engagement-logo-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1;
}

.engagement-logo-overlay img {
    max-width: 130px;
    max-height: 36px;
    width: auto;
    height: auto;
    display: block;
    filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0,0,0,0.5));
}

.engagement-logo-overlay--lg img {
    max-width: 140px;
    max-height: 56px;
}

.engagement-content {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.engagement-content p {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.8;
    color: rgba(243, 255, 253, 0.7);
}

/* =========================================
   CREDENTIALS  (dark navy background — "black" theme)
   All logos (academic + corporate) are on the dark bg.
========================================= */

.credentials {
    padding: 100px 0;
    background: var(--navy);
}

.credentials .section-label {
    color: rgba(243, 255, 253, 0.45);
}

.credentials .section-title {
    color: var(--mint);
}

.credentials-block {
    margin-bottom: 64px;
}

.credentials-block:last-child {
    margin-bottom: 0;
}

.credentials-block-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(243, 255, 253, 0.55);
    margin-bottom: 36px;
}

.credentials-logos {
    display: flex;
    align-items: center;
    gap: 52px;
    flex-wrap: wrap;
}

.credential-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity var(--ease);
}

/* Academic logos — invert dark logos to white for dark bg */
.credentials-block--academic .credential-logo img {
    filter: brightness(0) invert(1);
    opacity: 0.55;
}

.credentials-block--academic .credential-logo:nth-child(2) img {
    height: 57px;
}

.credentials-block--academic .credential-logo:nth-child(3) img {
    height: 35px;
}

.credentials-block--academic .credential-logo img:hover {
    opacity: 1;
}

/* Corporate logos are already light/white versions */
.credentials-block--corporate .credential-logo img {
    opacity: 0.55;
}

.credentials-block--corporate .credential-logo:nth-child(4) img {
    height: 53px;
}

.credentials-block--corporate .credential-logo:nth-child(5) img {
    height: 31px;
}

.credentials-block--corporate .credential-logo img:hover {
    opacity: 1;
}

/* =========================================
   MODELER  (dark teal background — "dark" theme)
========================================= */

.modeler {
    padding: 100px 0;
    background: var(--navy);
}

.modeler .section-label {
    color: rgba(243, 255, 253, 0.65);
}

.modeler-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 80px;
    align-items: center;
}

.modeler-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    object-position: top center;
}

.modeler-bio {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: rgba(243, 255, 253, 0.75);
    margin-bottom: 20px;
}

.modeler-bio strong {
    color: var(--mint);
    font-weight: 600;
}

.modeler-bio:last-of-type {
    margin-bottom: 40px;
}

/* =========================================
   TESTIMONIALS  (light teal background)
========================================= */

.testimonials {
    padding: 100px 0;
    background: var(--navy);
}

.testimonials .section-label {
    color: rgba(243, 255, 253, 0.55);
}

.testimonials .section-title {
    color: var(--mint);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.testimonial-card {
    background: rgba(30, 101, 109, 0.3);
    border: 1px solid var(--border-dark);
    border-top: 2px solid var(--accent);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.testimonial-card:hover {
    background: rgba(30, 101, 109, 0.55);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.testimonial-photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--accent);
}

.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-quote {
    font-family: var(--font-body);
    font-size: 13.5px;
    line-height: 1.75;
    color: rgba(243, 255, 253, 0.8);
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    margin-top: auto;
}

.testimonial-author strong {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--mint);
    margin-bottom: 3px;
}

.testimonial-author span {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(243, 255, 253, 0.55);
}

/* =========================================
   CONTACT CTA  (dark navy background)
========================================= */

.contact-cta {
    padding: 100px 0;
    background: var(--navy);
    text-align: center;
}

.contact-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-cta-content h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(30px, 3.5vw, 48px);
    line-height: 1.15;
    color: var(--mint);
    margin-bottom: 16px;
}

.contact-cta-content > p {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--text-dim);
    margin-bottom: 44px;
}

.contact-links {
    display: flex;
    gap: 52px;
    margin-top: 44px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.contact-link-label {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(243, 255, 253, 0.55);
    transition: color var(--ease);
}

.contact-link-value {
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(243, 255, 253, 0.55);
    transition: color var(--ease);
}

.contact-link:hover .contact-link-label,
.contact-link:hover .contact-link-value {
    color: var(--mint);
}

/* =========================================
   FOOTER  (dark navy background)
========================================= */

.site-footer {
    background: var(--navy);
    border-top: 1px solid var(--border-dark);
    padding: 64px 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-dark);
}

.footer-logo img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.55;
    transition: opacity var(--ease);
}

.footer-logo:hover img {
    opacity: 1;
}

.footer-credential-logos {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-cred {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.55;
    transition: opacity var(--ease);
}

.footer-cred--ca  { height: 52px; }
.footer-cred--fmi { height: 26px; }


.footer-cred:hover {
    opacity: 1;
}

.footer-nav-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 48px;
}

.footer-nav,
.footer-contact-nav {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-nav a,
.footer-contact-nav a {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(243, 255, 253, 0.55);
    transition: color var(--ease);
}

.footer-nav a:hover,
.footer-contact-nav a:hover {
    color: var(--mint);
}

.footer-bottom {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(243, 255, 253, 0.55);
    transition: color var(--ease);
}

.footer-bottom a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--ease);
}

.footer-bottom a:hover {
    color: var(--mint);
}

/* Touch devices have no hover — pre-apply the brightened states so footer / contact-cta remain legible on phones/tablets */
@media (hover: none) and (pointer: coarse) {
    .footer-logo img,
    .footer-cred {
        opacity: 1;
    }
    .footer-nav a,
    .footer-contact-nav a,
    .footer-bottom,
    .footer-bottom a,
    .contact-link-label,
    .contact-link-value {
        color: var(--mint);
    }
}

/* =========================================
   RESPONSIVE — TABLET  (≤1024px)
========================================= */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-content {
        max-width: 100%;
    }

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

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

    .engagement-card--full {
        grid-template-columns: 1fr;
    }

    .engagement-card--full .engagement-image {
        height: auto;
        min-height: unset;
        aspect-ratio: 16 / 9;
    }

    .modeler-layout {
        grid-template-columns: 340px 1fr;
        gap: 52px;
    }

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

    .services-feature {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-feature--reverse {
        direction: ltr;
    }
}

/* =========================================
   RESPONSIVE — MOBILE  (≤768px)
========================================= */

@media (max-width: 768px) {
    /* Nav */
    .nav-menu {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--navy);
        padding: 20px max(var(--pad), var(--pad-min));
        overflow-y: auto;
        z-index: 999;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-menu.open {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-dropdown {
        width: 100%;
        border-bottom: 1px solid var(--border-dark);
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 18px 0;
        font-size: 13px;
    }

    .dropdown-menu {
        position: static;
        background: transparent;
        border: none;
        padding: 0 0 8px 0;
    }

    .dropdown-item {
        padding: 14px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Sections */
    section {
        padding: 72px 0 !important;
    }

    .hero {
        padding-top: calc(var(--nav-h) + 48px) !important;
    }

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

    .services-features {
        gap: 64px;
    }

    .services-feature {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .services-feature--reverse {
        direction: ltr;
    }

    .modeler-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .modeler-image img {
        height: 380px;
    }

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

    .contact-links {
        flex-direction: column;
        gap: 28px;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-nav-row {
        flex-direction: column;
        gap: 20px;
    }

    .footer-nav,
    .footer-contact-nav {
        flex-direction: column;
        gap: 14px;
    }

    .credentials-logos {
        gap: 32px;
    }
}

/* =========================================
   BACK TO TOP
========================================= */

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 997;
    width: 44px;
    height: 44px;
    background: var(--navy);
    color: var(--mint);
    border: 1px solid rgba(243, 255, 253, 0.2);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--dark-teal);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: calc(56px + env(safe-area-inset-bottom) + 16px);
        right: 16px;
    }
}

/* =========================================
   MOBILE STICKY CTA
========================================= */

.mobile-cta {
    display: none;
}

@media (max-width: 768px) {
    .mobile-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 998;
        background: var(--mint);
        color: var(--navy);
        font-family: var(--font-body);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-decoration: none;
        text-align: center;
        padding: 18px 24px;
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
        opacity: 0;
        transform: translateY(100%);
        transition: opacity 0.3s ease, transform 0.3s ease;
        pointer-events: none;
    }

    .mobile-cta.visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

@media (max-width: 480px) {
    .credentials-logos {
        gap: 28px;
    }

    .credential-logo img {
        height: 32px;
    }
}

@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;
    }
}
