/* =========================================================
   Kenneth Foley – Premium Board Advisory Web Experience
   Typography-forward, architectural spacing, buttery motions
   ========================================================= */

:root {
    --color-text: #000000;
    --color-background: #FFFFFF;
    --color-background-alt: #FAFAFA;
    --color-border: #E0E0E0;
    --color-muted: #555555;
    --color-shadow: rgba(0, 0, 0, 0.08);

    --font-headline: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --section-padding-desktop: 7.5rem;
    --section-padding-tablet: 5rem;
    --section-padding-mobile: 2.5rem;

    --container-padding: clamp(1.25rem, 3.5vw, 4rem);
    --container-max: 1400px;

    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 4px;
}

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

section {
    padding: var(--section-padding-desktop) 0;
    scroll-margin-top: 120px;
}

/* =========================================
   Navigation
   ========================================= */

.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-background);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, var(--container-max));
    margin: 0 auto;
    padding: 1.2rem var(--container-padding);
}

.nav-logo {
    font-family: var(--font-headline);
    letter-spacing: 0.12em;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a {
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-text);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { bottom: 0; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* =========================================
   Scroll Progress
   ========================================= */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--color-text);
    z-index: 1001;
    transition: width 0.1s ease-out;
}

/* =========================================
   Hero
   ========================================= */

.hero {
    position: relative;
    background: #f6f6f6;
    padding: clamp(6rem, 12vw, 10rem) 0 clamp(4rem, 10vw, 8rem);
}

.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(3rem, 7vw, 5rem);
    align-items: center;
    justify-items: start;
    min-height: calc(90vh - 80px);
    position: relative;
}

.hero-content {
    max-width: 680px;
    justify-self: start;
    text-align: left;
}

.hero-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4f4f4f;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-intro-item {
    opacity: 0;
    transform: translateY(28px);
}

.hero-content.is-visible .hero-intro-item {
    animation: heroIntroFade 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-content.is-visible .hero-intro-item[data-order="1"] {
    animation-delay: 0s;
}

.hero-content.is-visible .hero-intro-item[data-order="2"] {
    animation-delay: 0.15s;
}

.hero-content.is-visible .hero-intro-item[data-order="3"] {
    animation-delay: 0.3s;
}

.hero-title {
    display: grid;
    gap: 0.35rem;
    margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}

.hero-title-line {
    display: block;
    font-family: var(--font-headline);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: #111111;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s cubic-bezier(0.42, 0, 0.24, 1),
                transform 0.6s cubic-bezier(0.42, 0, 0.24, 1);
}

.hero-title-line.line-1 {
    font-size: clamp(3rem, 7.5vw, 5.4rem);
    font-weight: 720;
}

.hero-title-line.line-2 {
    font-size: clamp(3.6rem, 9vw, 6.8rem);
    font-weight: 840;
    letter-spacing: -0.03em;
}

.hero-title-line.line-3 {
    font-size: clamp(2.3rem, 6vw, 4.4rem);
    font-weight: 560;
    color: #4a4a4a;
}

.retired-text {
    font-weight: 400;
    color: #888888;
}

.hero-content.is-visible .hero-title-line {
    opacity: 1;
    transform: translateY(0);
}

.hero-content.is-visible .hero-title-line:nth-child(1) {
    transition-delay: 0s;
}

.hero-content.is-visible .hero-title-line:nth-child(2) {
    transition-delay: 0.12s;
}

.hero-content.is-visible .hero-title-line:nth-child(3) {
    transition-delay: 0.24s;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.9vw, 1.3rem);
    line-height: 1.7;
    color: #404040;
    margin: 0 0 clamp(1.5rem, 3.5vw, 2.4rem);
    max-width: 48ch;
    text-align: left;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
}

.cta-link {
    font-size: 1.05rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.cta-link.primary {
    border-bottom: 2px solid #1f1f1f;
}

.cta-link.secondary {
    color: var(--color-muted);
}

.cta-link.secondary::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--color-muted);
    transition: transform var(--transition-base);
    transform-origin: left;
    transform: scaleX(0);
}

.cta-link.secondary:hover::after {
    transform: scaleX(1);
}

.cta-arrow {
    display: inline-flex;
    transition: transform var(--transition-base);
}

.cta-link:hover .cta-arrow {
    transform: translateX(6px);
}

.cta-link:focus-visible .cta-arrow {
    transform: translateX(6px);
}



.hero-watermark {
    grid-column: 2;
    justify-self: end;
    align-self: center;
    opacity: 0.12;
    width: clamp(240px, 28vw, 360px);
    pointer-events: none;
}

.hero-watermark img {
    filter: grayscale(100%);
    width: 100%;
}

.hero-watermark-pulse {
    position: absolute;
    right: 28%;
    top: 32%;
    width: clamp(14px, 2vw, 20px);
    height: clamp(14px, 2vw, 20px);
    border-radius: 50%;
    background: #3bb7ff;
    box-shadow: 0 0 0 rgba(59, 183, 255, 0.4);
    animation: keyPulse 3.4s ease-in-out infinite;
    opacity: 0.75;
}

/* =========================================
   About / Career Highlights Section
   ========================================= */

.about {
    position: relative;
    background: #ffffff;
}

.about-highlights {
    background: #f9f9f9;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: clamp(3rem, 5vw, 4rem);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.08);
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
}

.about-highlights h3 {
    font-size: 0.95rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #5a5a5a;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
}

.highlight-card {
    background: #ffffff;
    border-radius: 16px;
    padding: clamp(2rem, 4vw, 2.6rem);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    display: grid;
    gap: 1rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.1);
}

.highlight-value {
    font-family: var(--font-headline);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #000000;
}

.highlight-label {
    font-size: 1rem;
    color: #4a4a4a;
    line-height: 1.6;
}

/* =========================================
   Experience Section
   ========================================= */

.experience {
    background: var(--color-background);
}

.experience-lead {
    margin-top: clamp(1.2rem, 2.6vw, 2.1rem);
    font-size: 1.1rem;
    color: #3a3a3a;
    max-width: 820px;
    line-height: 1.7;
}

.experience-collection {
    margin-top: clamp(3rem, 6vw, 4.5rem);
    display: grid;
    gap: clamp(2.4rem, 5vw, 3.4rem);
}

.experience-entry {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: clamp(2.4rem, 4vw, 3.2rem);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.06);
    display: grid;
    gap: 1.2rem;
    max-width: 100%;
    overflow: hidden;
}

.experience-entry h3 {
    font-family: var(--font-headline);
    font-size: clamp(1.35rem, 2.5vw, 1.7rem);
    letter-spacing: 0.02em;
}

.experience-organization {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6a6a6a;
}

.experience-summary {
    font-size: 1.05rem;
    color: #333333;
    line-height: 1.75;
}

.experience-metrics {
    margin-top: clamp(1.6rem, 3.2vw, 2.5rem);
    display: grid;
    gap: 1.1rem;
}

.impact-label {
    font-family: var(--font-headline);
    font-size: 0.92rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #6a6a6a;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 3.5vw, 3rem);
    margin-top: 0;
}

.impact-item {
    position: relative;
    background: linear-gradient(150deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #333333;
    border-radius: 16px;
    padding: clamp(1.85rem, 3.4vw, 2.6rem);
    display: grid;
    gap: 0.75rem;
    color: #ffffff;
    opacity: 0;
    transform: translateY(24px);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                opacity 0.3s ease;
    overflow: hidden;
}

.impact-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.impact-item::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 14%;
    bottom: 14%;
    width: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    transition: background 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

.metric-value {
    font-family: var(--font-headline);
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 820;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.metric-caption {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
}

.impact-item:hover,
.impact-item:focus-within {
    transform: translateY(-8px) scale(1.035);
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.35);
}

.impact-item:hover::before,
.impact-item:focus-within::before {
    background: rgba(255, 255, 255, 0.85);
    transform: scaleY(1.08);
}

.impact-item:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 4px;
}

.metric-context-icon {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 24px;
    height: 24px;
    color: #ffffff;
    opacity: 0.2;
    stroke-width: 1.5px;
    transition: opacity 0.3s ease;
}

.impact-item:hover .metric-context-icon,
.impact-item:focus-within .metric-context-icon {
    opacity: 0.35;
}

.impact-label {
    font-family: var(--font-headline);
    font-size: 0.92rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #6a6a6a;
    margin-bottom: clamp(1.2rem, 2.5vw, 1.8rem);
}

.impact-context {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: clamp(1.8rem, 3vw, 2.4rem);
    text-align: center;
}

.impact-context-info {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.9rem, 2.4vw, 1.6rem);
}

.context-badge {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.7rem, 1.6vw, 1rem);
    font-size: clamp(1.35rem, 3.2vw, 1.8rem);
    font-weight: 780;
    color: #000000;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: normal;
    max-width: 100%;
    text-align: center;
    justify-content: center;
}

.context-icon {
    width: clamp(20px, 3vw, 26px);
    height: clamp(20px, 3vw, 26px);
    stroke-width: 2.2px;
}

.impact-context-logo {
    width: clamp(130px, 18vw, 210px);
    height: auto;
    display: block;
}


.experience-points {
    display: grid;
    gap: 0.65rem;
    padding-left: 0;
    color: #3f3f3f;
    font-size: 0.98rem;
    line-height: 1.6;
    list-style: none;
}

.experience-points li {
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* =========================================
   Services
   ========================================= */

.mega-title {
    font-family: var(--font-headline);
    font-size: clamp(3.6rem, 9vw, 6.8rem);
    font-weight: 780;
    letter-spacing: -0.035em;
    line-height: 0.96;
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.experience .mega-title,
.boards .mega-title,
.credentials .mega-title,
.contact .mega-title {
    margin-bottom: clamp(2.8rem, 6vw, 3.8rem);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2.5rem, 6vw, 4rem);
}

.service-card {
    position: relative;
    padding: clamp(2.8rem, 5vw, 3.5rem);
    border: 1px solid transparent;
    background: var(--color-background);
    min-height: 100%;
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.service-card h3 {
    transition: color var(--transition-base), font-weight var(--transition-base);
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08);
    border-color: var(--color-border);
}

.service-card:hover h3,
.service-card:focus-within h3 {
    color: #000000;
    font-weight: 700;
}

.service-number {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 200;
    color: rgba(0, 0, 0, 0.12);
    margin-bottom: 2rem;
}

.service-card h3 {
    font-family: var(--font-headline);
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
    margin-bottom: 1.5rem;
}

.service-card p {
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.service-icon {
    width: 56px;
    height: 56px;
    color: #000000;
    margin-bottom: 1.5rem;
    stroke-width: 1.5px;
    animation: gentle-float 3s ease-in-out infinite;
}

@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.service-card:hover .service-icon {
    color: #333333;
}

/* =========================================
   Credentials & Education
   ========================================= */

.credentials {
    background: var(--color-background-alt);
    position: relative;
    overflow: hidden;
}

.credentials-frame {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 28px;
    padding: clamp(3rem, 6vw, 4.5rem);
    box-shadow: 0 34px 90px rgba(10, 18, 36, 0.12);
    display: grid;
    gap: clamp(3rem, 6vw, 4.5rem);
    max-width: 100%;
    overflow: hidden;
}

.credentials-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.5rem, 5vw, 3.5rem);
}

.credentials-column h3 {
    font-family: var(--font-headline);
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #4a4a4a;
    margin-bottom: 1.6rem;
}

.expertise-badges {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1rem;
    padding: 0;
    margin: 0;
}

.expertise-badges li {
    background: #f8f8f8;
    border: 1px solid #d5d5d5;
    border-radius: 10px;
    padding: 0.8rem 1.4rem;
    font-family: var(--font-headline);
    font-size: 0.98rem;
    font-weight: 600;
    color: #222222;
    transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.expertise-badges li:hover,
.expertise-badges li:focus-visible {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.expertise-badges li:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

.certification-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 2rem;
    margin: 0;
    padding: 0;
    font-size: 0.98rem;
    color: #2b2b2b;
}

.certification-grid li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    line-height: 1.6;
}

.certification-grid li strong {
    font-family: var(--font-headline);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #111111;
    min-width: 3.5rem;
    flex-shrink: 0;
}

.certification-grid li span {
    display: inline-block;
}

.academic-foundation {
    display: grid;
    gap: clamp(2rem, 4vw, 3.5rem);
}

.academic-foundation > h3 {
    font-family: var(--font-headline);
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #4a4a4a;
    text-align: center;
}

.academic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.8rem, 4vw, 2.6rem);
}

.academic-card {
    background: linear-gradient(160deg, #fafafa 0%, #f0f0f0 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: clamp(1.6rem, 3vw, 2.3rem);
    text-align: center;
    display: grid;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 22px 60px rgba(10, 18, 36, 0.08);
}

.academic-card:hover,
.academic-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 32px 90px rgba(10, 18, 36, 0.16);
}

.academic-card:focus-visible {
    outline: 2px solid rgba(10, 18, 36, 0.4);
    outline-offset: 6px;
}

.academic-logo-shell {
    display: grid;
    place-items: center;
}

.academic-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    opacity: 0.92;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.academic-card:hover .academic-logo,
.academic-card:focus-within .academic-logo {
    opacity: 1;
    transform: translateY(-8px) scale(1.12);
}

.academic-card h4 {
    font-family: var(--font-headline);
    font-size: 1.08rem;
    letter-spacing: -0.01em;
    color: #151515;
}

.academic-card p {
    font-size: 0.96rem;
    color: #3a3a3a;
    line-height: 1.65;
}

.academic-appointment-card {
    background: #fdfdfd;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: clamp(1.8rem, 3vw, 2.4rem);
    text-align: center;
    box-shadow: 0 20px 60px rgba(10, 18, 36, 0.08);
    max-width: 680px;
    margin: 0 auto;
    display: grid;
    gap: 0.8rem;
}

.appointment-label {
    font-family: var(--font-headline);
    font-size: 0.92rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #565656;
}

.academic-appointment-card p {
    font-size: 0.98rem;
    color: #2f2f2f;
    line-height: 1.7;
}
/* =========================================
   Boards & Leadership
   ========================================= */

.boards {
    position: relative;
    background: var(--color-background);
}

.boards-intro {
    margin-top: clamp(1.6rem, 3vw, 2.2rem);
    max-width: 780px;
    font-size: 1.05rem;
    color: #3a3a3a;
    line-height: 1.7;
}

.board-leadership-unified {
    margin: clamp(2.8rem, 6vw, 4.2rem) auto 0;
    max-width: 920px;
    background: linear-gradient(165deg, #ffffff 0%, #f4f4f4 100%);
    border: 2px solid #d9d9d9;
    border-radius: 20px;
    padding: clamp(2.6rem, 5.4vw, 3.8rem);
    text-align: left;
    box-shadow: 0 36px 90px rgba(12, 18, 32, 0.12);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    display: grid;
    gap: clamp(1.8rem, 3.6vw, 2.6rem);
    overflow: hidden;
    word-wrap: break-word;
}

.board-leadership-unified:hover {
    transform: translateY(-6px);
    box-shadow: 0 44px 110px rgba(12, 18, 32, 0.18);
}


.board-logo-unified {
    max-width: 260px;
    margin: 0 auto clamp(2.2rem, 3.4vw, 2.6rem) auto;
    display: block;
    justify-self: center;
    transition: transform 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
    opacity: 0.98;
}

.board-leadership-unified:hover .board-logo-unified {
    transform: scale(1.08);
    opacity: 1;
}

.board-roles {
    display: grid;
    gap: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: clamp(2.2rem, 4vw, 2.8rem);
}

.board-role {
    position: relative;
    padding-left: 1.6rem;
    display: grid;
    gap: 0.35rem;
}

.board-role::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 4px;
    border-radius: 12px;
    background: #c5c5c5;
    transition: background 0.3s ease;
}

.board-role.primary::before {
    background: #111111;
}

.board-role.primary h3 {
    font-family: var(--font-headline);
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    font-weight: 600;
    letter-spacing: -0.015em;
}

.board-role h4 {
    font-family: var(--font-headline);
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.board-role-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    stroke-width: 2px;
}

.board-role.primary .board-role-icon {
    color: #000000;
}

.board-role:not(.primary) .board-role-icon {
    color: #888888;
}

.board-role-meta {
    font-size: 0.96rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6a6a6a;
}

.board-role:hover::before,
.board-role:focus-within::before {
    background: #111111;
}

.board-unified-description {
    max-width: 640px;
    font-size: 1.05rem;
    color: #2f2f2f;
    line-height: 1.75;
}

/* =========================================
   Contact
   ========================================= */

.contact {
    background: var(--color-background-alt);
    text-align: center;
}

.cta-title {
    margin: 0 auto clamp(2.2rem, 4vw, 3.2rem);
    text-align: center;
    max-width: 18ch;
}

.cta-text {
    max-width: 760px;
    margin: 0 auto 4rem;
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    color: var(--color-muted);
}

.intake-form {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    text-align: left;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

label {
    font-weight: 600;
    font-size: 0.95rem;
}

input,
select,
textarea {
    font: inherit;
    padding: 1.1rem 1.3rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--color-background);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    max-width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-text);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.form-submit {
    justify-self: flex-start;
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
    background: var(--color-text);
    border: none;
    padding: 1.2rem 3.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: #111111;
}

.form-submit:hover .cta-arrow {
    transform: translateX(8px);
}

.form-submit:focus-visible {
    background: #111111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.16);
}

.form-submit:focus-visible .cta-arrow {
    transform: translateX(8px);
}

/* =========================================
   Footer
   ========================================= */

.footer {
    background: #000000;
    color: #FFFFFF;
    padding: 5rem 0 2.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-headline);
    letter-spacing: 0.12em;
    font-size: 1.05rem;
    text-transform: uppercase;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.95rem;
}

.footer-column a {
    color: #FFFFFF;
}

.footer-column a:hover {
    color: rgba(255, 255, 255, 0.6);
}

.footer-column-right {
    align-items: flex-end;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* =========================================
   Reveal Animation States
   ========================================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal[data-reveal="slide-left"] {
    transform: translateX(-60px);
}

.reveal[data-reveal="fade-up"] {
    transform: translateY(40px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.section-reveal {
    will-change: transform, opacity;
    transition-duration: 1s;
}

.section-reveal[data-reveal="fade-up"] {
    transform: translateY(60px);
}

.section-reveal.is-visible {
    transform: translateY(0);
}

/* =========================================
   Responsive Adjustments
   ========================================= */

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hero-watermark {
        justify-self: center;
        margin-top: 2.5rem;
        transform: none;
    }

    .about-highlights {
        grid-column: 1;
    }
}

@media (max-width: 1024px) {
    section {
        padding: var(--section-padding-tablet) 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: var(--container-padding);
        flex-direction: column;
        align-items: flex-end;
        gap: 1.2rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(0,0,0,0.06);
        border-radius: 12px;
        padding: 1.2rem 1.6rem;
        box-shadow: 0 12px 32px rgba(0,0,0,0.1);
        margin-top: 0.5rem;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
    }

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

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

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

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

    .impact-context {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: var(--section-padding-mobile) 0;
    }

    .nav-content {
        padding: 0.9rem var(--container-padding);
    }

    .nav-logo {
        font-size: 0.85rem;
    }

    .nav-toggle {
        width: 28px;
        height: 22px;
    }

    .nav-toggle span {
        height: 2px;
    }

    .nav-toggle span:nth-child(2) {
        top: 10px;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    .nav-links {
        gap: 1rem;
        padding: 1rem 1.4rem;
        font-size: 0.9rem;
    }

    .hero-container {
        min-height: auto;
        gap: 2rem;
    }

    .about-text {
        text-align: left;
    }

    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero-title {
        gap: 0.25rem;
    }

    .hero-title-line.line-1 {
        font-size: clamp(2.2rem, 8vw, 2.9rem);
    }

    .hero-title-line.line-2 {
        font-size: clamp(2.5rem, 9vw, 3.25rem);
    }

    .hero-title-line.line-3 {
        font-size: clamp(1.8rem, 6.5vw, 2.2rem);
    }

    .hero-subtitle {
        font-size: 1.02rem;
        margin-bottom: 1.8rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .hero-watermark {
        grid-column: 1;
        width: clamp(180px, 50vw, 280px);
        opacity: 0.08;
    }

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

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

    .mega-title {
        font-size: clamp(2.5rem, 8.5vw, 3.1rem);
        margin-bottom: 2rem;
        font-weight: 720;
        line-height: 1.1;
    }

    .credentials-frame {
        padding: 2rem;
        gap: 2rem;
    }

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

    .impact-item {
        padding: 1.5rem;
    }

    .metric-value {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .metric-caption {
        font-size: 0.95rem;
    }

    .impact-context {
        justify-content: center;
        text-align: center;
        gap: 1rem;
        flex-direction: column;
    }

    .impact-context-info {
        justify-content: center;
    }

    .impact-context-logo {
        width: clamp(140px, 40vw, 200px);
    }

    .context-badge {
        font-size: clamp(0.95rem, 3.8vw, 1.5rem);
        letter-spacing: 0.08em;
        word-break: break-word;
    }

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

    .form-submit {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-column-right {
        align-items: flex-start;
    }

    .board-leadership-unified {
        padding: 2.2rem;
        gap: 1.8rem;
    }

    .board-logo-unified {
        max-width: 200px;
    }

    .board-roles {
        gap: 1rem;
    }

    .board-role {
        padding-left: 1.2rem;
    }

    .board-role::before {
        top: 0.32rem;
        bottom: 0.32rem;
    }

    .cta-text {
        margin-bottom: 2.4rem;
    }

    .experience-lead {
        font-size: 1.05rem;
    }

    .experience-collection {
        margin-top: 2rem;
        gap: 2rem;
    }

    .experience-entry {
        padding: 2rem;
    }

    .experience-metrics {
        margin-top: 1.5rem;
    }

    .experience-summary {
        font-size: 1rem;
    }

    .experience-points {
        font-size: 0.95rem;
    }

    .boards-intro {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .nav-content {
        padding: 0.75rem 1.25rem;
    }

    .nav-logo {
        font-size: 0.8rem;
        letter-spacing: 0.1em;
    }

    .nav-toggle {
        width: 26px;
        height: 20px;
    }

    .nav-toggle span:nth-child(2) {
        top: 9px;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links {
        right: 1.25rem;
        padding: 1rem 1.3rem;
        font-size: 0.88rem;
        gap: 0.9rem;
    }

    .hero {
        padding: 2.5rem 0 2rem;
    }

    .hero-title-line.line-1 {
        font-size: clamp(1.9rem, 7.5vw, 2.4rem);
    }

    .hero-title-line.line-2 {
        font-size: clamp(2.2rem, 8.5vw, 2.7rem);
    }

    .hero-title-line.line-3 {
        font-size: clamp(1.6rem, 6vw, 1.85rem);
    }

    .hero-subtitle {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .hero-ctas {
        align-items: stretch;
    }

    .cta-link {
        justify-content: space-between;
        font-size: 0.98rem;
        padding-bottom: 4px;
    }

    .service-card {
        padding: 1.6rem;
    }

    .service-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }

    .service-number {
        margin-bottom: 1rem;
        font-size: 2rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .mega-title {
        font-size: clamp(2rem, 7.5vw, 2.5rem);
        line-height: 1.08;
        word-break: break-word;
    }

    .credentials-frame {
        padding: 1.5rem;
    }

    .credentials-column h3 {
        font-size: 1rem;
    }

    .expertise-badges {
        gap: 0.7rem;
    }

    .expertise-badges li {
        padding: 0.7rem 1.1rem;
        font-size: 0.9rem;
    }

    .certification-grid {
        gap: 0.9rem;
        font-size: 0.88rem;
    }

    .academic-logo {
        width: 80px;
        height: 80px;
    }

    .academic-card h4 {
        font-size: 1rem;
    }

    .academic-card p {
        font-size: 0.9rem;
    }

    .academic-card,
    .academic-appointment-card,
    .board-leadership-unified {
        padding: 1.6rem;
    }

    .board-logo-unified {
        max-width: 160px;
    }

    .impact-grid {
        gap: 1rem;
    }

    .impact-item {
        padding: 1.3rem;
    }

    .experience-collection {
        gap: 1.5rem;
    }

    .experience-entry {
        padding: 1.6rem;
    }

    .experience-metrics {
        margin-top: 1.2rem;
    }

    .metric-value {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .metric-caption {
        font-size: 0.9rem;
    }

    .context-badge {
        font-size: clamp(0.85rem, 3.2vw, 1rem);
        gap: 0.45rem;
        letter-spacing: 0.06em;
        white-space: normal;
        text-align: center;
    }

    .context-icon {
        width: 18px;
        height: 18px;
    }

    .cta-text {
        font-size: 0.98rem;
        margin-bottom: 2rem;
    }

    input,
    select,
    textarea {
        padding: 0.95rem 1.1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .form-submit {
        padding: 1.1rem 2.5rem;
        font-size: 1rem;
    }

    .footer {
        padding: 3.5rem 0 2rem;
    }

    .footer-content {
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-logo {
        font-size: 0.95rem;
    }

    .footer-column {
        font-size: 0.9rem;
        gap: 0.85rem;
    }
}

@media (max-width: 375px) {
    .container {
        padding: 0 1rem;
    }

    .nav-content {
        padding: 0.65rem 1rem;
    }

    .nav-logo {
        font-size: 0.75rem;
    }

    .nav-toggle {
        width: 24px;
        height: 18px;
    }

    .nav-toggle span:nth-child(2) {
        top: 8px;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        right: 1rem;
        padding: 0.9rem 1.2rem;
        font-size: 0.85rem;
        gap: 0.8rem;
    }

    .hero-title-line.line-1 {
        font-size: clamp(1.7rem, 7vw, 2rem);
    }

    .hero-title-line.line-2 {
        font-size: clamp(2rem, 8vw, 2.4rem);
    }

    .hero-title-line.line-3 {
        font-size: clamp(1.45rem, 5.5vw, 1.7rem);
    }

    .mega-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
    }

    .context-badge {
        font-size: clamp(0.75rem, 3vw, 0.9rem);
        flex-wrap: wrap;
    }

    .experience-entry {
        padding: 1.5rem;
    }

    .experience-collection {
        gap: 1.2rem;
    }

    .experience-metrics {
        margin-top: 1rem;
    }

    .impact-grid {
        gap: 0.8rem;
    }

    .impact-item {
        padding: 1.1rem;
    }

    .board-leadership-unified {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-intro-item {
        opacity: 1 !important;
        transform: none !important;
    }
}

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

@keyframes keyPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 183, 255, 0.4);
        opacity: 0.85;
    }
    50% {
        box-shadow: 0 0 0 14px rgba(59, 183, 255, 0);
        opacity: 0.6;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 183, 255, 0);
        opacity: 0.85;
    }
}
