:root {
    --am-ink: #111827;
    --am-muted: #4b5563;
    --am-line: #d7dde5;
    --am-surface: #f4f7fa;
    --am-teal: #075e63;
    --am-copper: #9a3f13;
    --am-white: #ffffff;
}

.am-expert-home,
.am-expert-resources {
    color: var(--am-ink);
    letter-spacing: 0;
}

.am-expert-home *,
.am-expert-resources * {
    box-sizing: border-box;
}

.am-expert-hero {
    min-height: 620px;
    position: relative;
    overflow: hidden;
    background: #dfe6ea;
    display: flex;
    align-items: center;
}

.am-expert-hero__portrait {
    position: absolute;
    inset: 0 0 0 auto;
    width: 64%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
}

.am-expert-hero__content {
    position: relative;
    z-index: 1;
    width: 58%;
    min-height: 620px;
    padding: 104px 64px;
    background: rgba(255, 255, 255, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.am-eyebrow {
    margin: 0 0 18px;
    color: var(--am-teal);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0;
}

.am-expert-hero h1 {
    margin: 0;
    max-width: 680px;
    font-size: 4.25rem;
    line-height: 1.02;
    letter-spacing: 0;
}

.am-expert-hero__lead {
    max-width: 700px;
    margin: 28px 0 0;
    font-size: 1.25rem;
    line-height: 1.55;
}

.am-expert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.am-button {
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid var(--am-ink);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 750;
    text-decoration: none;
}

.am-button--primary { background: var(--am-ink); color: var(--am-white); }
.am-button--secondary { background: var(--am-white); color: var(--am-ink); }
.am-button--light { background: var(--am-white); color: var(--am-ink); border-color: var(--am-white); }
.am-button:hover { background: var(--am-teal); border-color: var(--am-teal); color: var(--am-white); }

.am-proof {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--am-line);
    border-bottom: 1px solid var(--am-line);
}

.am-proof div { min-height: 130px; padding: 28px; border-right: 1px solid var(--am-line); }
.am-proof div:last-child { border-right: 0; }
.am-proof strong { display: block; margin-bottom: 8px; font-size: 1.1rem; }
.am-proof span { display: block; color: var(--am-muted); font-size: 0.92rem; line-height: 1.45; }

.am-section { padding: 88px 48px; }
.am-section-heading { max-width: 780px; margin-bottom: 42px; }
.am-section-heading h2,
.am-page-intro h1,
.am-contact-band h2 { margin: 0; font-size: 2.35rem; line-height: 1.16; letter-spacing: 0; }
.am-section-heading > p:last-child,
.am-page-intro > p:last-child { color: var(--am-muted); font-size: 1.06rem; line-height: 1.65; }

.am-work-grid,
.am-platform-grid,
.am-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.am-work-grid article,
.am-platform-grid a,
.am-resource-grid a {
    min-height: 210px;
    padding: 28px;
    border: 1px solid var(--am-line);
    border-radius: 6px;
    background: var(--am-white);
}

.am-work-grid article > span { color: var(--am-copper); font-weight: 800; }
.am-work-grid h3 { margin: 38px 0 10px; font-size: 1.2rem; }
.am-work-grid p { color: var(--am-muted); line-height: 1.55; }

.am-section--platform { background: var(--am-surface); }
.am-platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.am-platform-grid a,
.am-resource-grid a { color: var(--am-ink); text-decoration: none; }
.am-platform-grid a:hover,
.am-resource-grid a:hover { border-color: var(--am-teal); box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08); }
.am-platform-grid strong,
.am-resource-grid strong { display: block; margin-bottom: 12px; font-size: 1.15rem; }
.am-platform-grid span,
.am-resource-grid span { display: block; color: var(--am-muted); line-height: 1.55; }
.am-platform-note { margin: 26px 0 0; color: var(--am-muted); font-size: 0.88rem; }

.am-method-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.am-method-list { margin: 0; padding: 0; list-style: none; counter-reset: method; }
.am-method-list li { padding: 22px 0; border-bottom: 1px solid var(--am-line); display: grid; grid-template-columns: 180px 1fr; gap: 22px; }
.am-method-list strong { color: var(--am-teal); }
.am-method-list span { color: var(--am-muted); line-height: 1.55; }

.am-contact-band { padding: 56px 48px; background: var(--am-teal); color: var(--am-white); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.am-contact-band .am-eyebrow { color: var(--am-white); }
.am-contact-band p:last-child { margin-bottom: 0; opacity: 0.9; }

.am-page-intro { padding: 76px 48px 38px; max-width: 900px; }
.am-resource-grid { padding: 24px 48px 72px; }
.am-resource-boundary { margin: 0 48px 72px; padding: 24px; border-left: 4px solid var(--am-copper); background: var(--am-surface); }
.am-resource-boundary p { margin-bottom: 0; color: var(--am-muted); }

@media (max-width: 900px) {
    .am-expert-hero { min-height: 760px; align-items: flex-end; }
    .am-expert-hero__portrait { inset: 0 0 auto; width: 100%; height: 52%; object-position: center 25%; }
    .am-expert-hero__content { width: 100%; min-height: 400px; margin-top: 330px; padding: 44px 32px; background: var(--am-white); }
    .am-expert-hero h1 { font-size: 3rem; }
    .am-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .am-proof div:nth-child(2) { border-right: 0; }
    .am-proof div:nth-child(-n+2) { border-bottom: 1px solid var(--am-line); }
    .am-work-grid { grid-template-columns: 1fr; }
    .am-method-layout { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 640px) {
    .am-expert-hero { min-height: 0; display: block; }
    .am-expert-hero__portrait { position: relative; width: 100%; height: 360px; display: block; object-position: center 22%; }
    .am-expert-hero__content { min-height: 0; margin: 0; padding: 34px 24px 42px; }
    .am-expert-hero h1 { font-size: 2.55rem; }
    .am-expert-hero__lead { margin-top: 20px; font-size: 1.05rem; }
    .am-expert-actions { display: grid; }
    .am-proof { grid-template-columns: 1fr; }
    .am-proof div { min-height: 0; border-right: 0; border-bottom: 1px solid var(--am-line); }
    .am-proof div:last-child { border-bottom: 0; }
    .am-section,
    .am-page-intro { padding: 60px 24px; }
    .am-section-heading h2,
    .am-page-intro h1,
    .am-contact-band h2 { font-size: 1.9rem; }
    .am-platform-grid,
    .am-resource-grid { grid-template-columns: 1fr; }
    .am-resource-grid { padding: 0 24px 56px; }
    .am-method-list li { grid-template-columns: 1fr; gap: 8px; }
    .am-contact-band { padding: 44px 24px; align-items: stretch; flex-direction: column; }
    .am-resource-boundary { margin: 0 24px 56px; }
}
