/* AI Leadership — "sign-off": a light, editorial page built around one idea: a person stays accountable.
   A paper memo fills in, ticks its checks and gets signed. Index palette only. */

.svc--ai {
    --bg: #F8F6FA;
    --fg: #16131C;
    --muted: #4A4454;
    --line: #E8E2EF;
    --accent: #673A89;
    --accent-ink: #4E2C68;
    --on-accent: #fff;
    --card: #fff;
}
.svc--ai h1, .svc--ai h2, .svc--ai h3 { letter-spacing: -0.03em; font-weight: 600; }
.svc--ai h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.1; margin-top: 0.8rem; max-width: 22ch; text-wrap: balance; }
.ail-split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .ail-split { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; } }

/* ---------- Hero ---------- */
.ail-hero { background: #F8F6FA; }
.ail-hero__grid { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 1000px) { .ail-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 4.5rem; } }
.ail-hero h1 { font-size: clamp(2.3rem, 4.5vw, 3.8rem); line-height: 1.06; margin: 1rem 0 1.6rem; max-width: none; text-wrap: balance; }
.ail-hero h1 mark { background: none; color: inherit; position: relative; white-space: nowrap; z-index: 0; }
.ail-hero h1 mark::before { content: ""; position: absolute; left: -0.1em; right: -0.1em; bottom: 0.04em; height: 0.42em; background: #C9B5E0; z-index: -1; transform: scaleX(0); transform-origin: left; animation: ail-hl 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s forwards; }
@keyframes ail-hl { to { transform: scaleX(1); } }
.ail-hero .lead + .lead { margin-top: 1rem; }

.ail-stage { position: relative; padding: 2rem 0 2rem 2rem; }
.ail-stage::before { content: ""; position: absolute; right: -1.2rem; top: 0; width: 78%; height: 88%; background: #4E2C68; border-radius: 0.4rem; }
.ail-stage::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46%; height: 34%; background: #C9B5E0; border-radius: 0.4rem; }
.ail-memo { position: relative; z-index: 1; margin: 0; background: #fff; border-radius: 0.3rem; padding: 2.1rem 2rem 1.4rem; transform: rotate(-1.4deg); box-shadow: 0 28px 50px -22px rgba(22, 19, 28, 0.55), 0 2px 0 rgba(22, 19, 28, 0.04); }
.ail-memo__tape { position: absolute; top: -0.9rem; left: 50%; width: 6.2rem; height: 1.7rem; transform: translateX(-50%) rotate(2deg); background: rgba(201, 181, 224, 0.85); }
.ail-memo figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 1rem; border-bottom: 2px solid #16131C; }
.ail-memo figcaption span { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: #4A4454; font-weight: 600; }
.ail-memo figcaption b { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.ail-memo dl { margin: 0; }
.ail-memo dl > div { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid #E8E2EF; align-items: baseline; }
.ail-memo dt { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: #673A89; font-weight: 600; }
.ail-memo dd { margin: 0; font-size: 1rem; line-height: 1.45; color: #16131C; }
.js .ail-memo dl > div { opacity: 0; transform: translateY(6px); }
.js .ail-memo dl > div.on { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }

.ail-tick { position: relative; display: inline-block; margin: 0 1.1rem 0.15rem 0; padding-left: 1.5rem; font-size: 0.92rem; }
.ail-tick::before { content: ""; position: absolute; left: 0; top: 0.18em; width: 0.95rem; height: 0.95rem; border: 1.5px solid #4A4454; border-radius: 0.2rem; transition: background-color 0.25s ease, border-color 0.25s ease; }
.ail-tick::after { content: ""; position: absolute; left: 0.32rem; top: 0.3em; width: 0.28rem; height: 0.55rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg) scale(0); transition: transform 0.25s ease 0.1s; }
.ail-tick.ok::before { background: #673A89; border-color: #673A89; }
.ail-tick.ok::after { transform: rotate(42deg) scale(1); }

.ail-memo__sign { border-bottom: 0 !important; }
.ail-memo__sign svg { display: block; width: min(100%, 13.5rem); height: 3.2rem; margin: -0.2rem 0 0.2rem; overflow: visible; }
.ail-memo__sign path { fill: none; stroke: #4E2C68; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 460; stroke-dashoffset: 460; }
.ail-memo.signed .ail-memo__sign path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(0.5, 0, 0.2, 1); }
.no-js .ail-memo__sign path { stroke-dashoffset: 0; }
.ail-memo__sign dd > span { display: inline-block; padding: 0.3rem 0.7rem; background: #F0EBF5; border-left: 3px solid #673A89; font-size: 0.9rem; }
.ail-memo__foot { margin: 0.4rem 0 0; font-size: 0.72rem; color: #4A4454; }
@media (max-width: 600px) { .ail-stage { padding: 1.2rem 0 1.2rem 0.8rem; } .ail-memo { padding: 1.8rem 1.3rem 1.1rem; } .ail-memo dl > div { grid-template-columns: 4.2rem 1fr; gap: 0.6rem; } }

/* ---------- Start: big questions on deep purple ---------- */
.ail-start { background: #3F2254; color: #fff; --fg: #fff; --muted: rgba(255, 255, 255, 0.8); --line: rgba(255, 255, 255, 0.2); --accent: #C9B5E0; }
.ail-start h2 { color: #fff; }
.ail-start__head { display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 900px) { .ail-start__head { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } }
.ail-q { display: grid; gap: 0; margin-top: 3.5rem; border-top: 1px solid rgba(255, 255, 255, 0.25); }
@media (min-width: 800px) { .ail-q { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.ail-q li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; padding: 1.8rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.25); align-items: baseline; transition: padding-left 0.35s ease; }
.ail-q li:hover { padding-left: 0.6rem; }
.ail-q span { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; color: #C9B5E0; }
.ail-q p { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; color: #fff; }

/* ---------- Who ---------- */
.ail-who { background: #fff; }
.ail-who__grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .ail-who__grid { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; } }
.ail-roles { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
.ail-roles li { padding: 0.6rem 1.1rem; border-radius: 999px; background: #F0EBF5; border: 1px solid #E8E2EF; font-weight: 500; font-size: 0.95rem; transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.ail-roles li:hover { background: #673A89; color: #fff; border-color: #673A89; }
.ail-who__copy p { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.65; max-width: 34rem; color: #16131C; }

/* ---------- Staircase: six steps ---------- */
.ail-focus { background: #F8F6FA; }
.ail-steps { display: grid; gap: 0.9rem; margin-top: 3.2rem; }
@media (min-width: 640px) { .ail-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ail-steps { grid-template-columns: repeat(6, 1fr); align-items: end; gap: 0.8rem; } .ail-step { min-height: calc(13.5rem + var(--k) * 3.4rem); } }
.ail-step { position: relative; display: flex; flex-direction: column; padding: 1.4rem 1.2rem 1.5rem; background: #fff; border: 1px solid #E8E2EF; border-radius: 1rem; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease; }
.ail-step:hover { transform: translateY(-6px); border-color: #673A89; box-shadow: 0 20px 36px -20px rgba(103, 58, 137, 0.5); }
.ail-step__n { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; color: #673A89; margin-bottom: auto; padding-bottom: 1.6rem; }
.ail-step h3 { font-size: 1.12rem; line-height: 1.2; margin-bottom: 0.6rem; }
.ail-step p { font-size: 0.88rem; line-height: 1.55; color: #4A4454; }
.ail-step:nth-child(2) { background: #F0EBF5; }
.ail-step:nth-child(4) { background: #F0EBF5; }
.ail-step:last-child { background: #673A89; border-color: #673A89; }
.ail-step:last-child .ail-step__n { color: #C9B5E0; }
.ail-step:last-child h3 { color: #fff; } .ail-step:last-child p { color: rgba(255, 255, 255, 0.86); }
.ail-step:last-child::after { content: "Pilot"; position: absolute; top: 1.1rem; right: 1.1rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: #C9B5E0; color: #3F2254; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Gates: three checks in a row, the last one is a person ---------- */
.ail-practice { background: #fff; }
.ail-gates { display: grid; gap: 1rem; margin: 3rem 0 2.5rem; counter-reset: g; }
@media (min-width: 860px) { .ail-gates { grid-template-columns: repeat(3, 1fr); gap: 2.6rem; } }
.ail-gates li { position: relative; padding: 2rem 1.8rem 2.2rem; background: #F8F6FA; border: 1px solid #E8E2EF; border-radius: 1.25rem; counter-increment: g; }
.ail-gates li::before { content: "0" counter(g); display: block; font-size: 3.4rem; line-height: 0.9; font-weight: 600; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.2px #673A89; margin-bottom: 2.2rem; }
.ail-gates span { display: inline-block; padding: 0.25rem 0.7rem; border-radius: 999px; background: #C9B5E0; color: #3F2254; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.9rem; }
.ail-gates p { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.25; font-weight: 500; letter-spacing: -0.02em; }
@media (min-width: 860px) {
    .ail-gates li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -2.2rem; width: 1.8rem; height: 2px; background: #673A89; }
}
.ail-gates li:last-child { background: #673A89; border-color: #673A89; color: #fff; }
.ail-gates li:last-child::before { -webkit-text-stroke-color: #C9B5E0; }
.ail-gates li:last-child span { background: #fff; color: #4E2C68; }
.ail-practice__copy { display: grid; gap: 1rem; }
@media (min-width: 900px) { .ail-practice__copy { grid-template-columns: 1fr 1fr; gap: 3rem; } .ail-practice__copy p + p { margin-top: 0; } }
.ail-practice__copy p { max-width: none; }

/* ---------- People ---------- */
.ail-people { background: #C9B5E0; --muted: #16131C; --line: rgba(22, 19, 28, 0.2); --accent: #4E2C68; }
.ail-people h2 { color: #16131C; }
.ail-people .eyebrow { color: #4E2C68; }
.ail-people .body-copy p { color: #16131C; font-size: 1.08rem; }

/* ---------- Discuss: a brief on paper ---------- */
.ail-discuss { background: #F8F6FA; }
.ail-brief { position: relative; max-width: 30rem; background: #fff; border-radius: 0.3rem; padding: 1.8rem 1.8rem 1.4rem; transform: rotate(1.2deg); box-shadow: 0 26px 46px -24px rgba(22, 19, 28, 0.45); border-top: 6px solid #673A89; }
.ail-brief__h { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: #673A89; margin-bottom: 0.6rem; }
.ail-brief li { position: relative; display: flex; align-items: center; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid #E8E2EF; font-size: 1.08rem; font-weight: 500; }
.ail-brief li:last-child { border-bottom: 0; }
.ail-brief li i { position: relative; flex: none; width: 1.15rem; height: 1.15rem; border-radius: 0.25rem; background: #673A89; }
.ail-brief li i::after { content: ""; position: absolute; left: 0.36rem; top: 0.14rem; width: 0.3rem; height: 0.6rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg); }

.ail-faq { background: #fff; }

/* ---------- CTA ---------- */
.ail-cta { position: relative; overflow: hidden; background: #3F2254; color: #fff; padding: 5.5rem 0 3rem; --bg: #3F2254; --fg: #fff; --muted: rgba(255, 255, 255, 0.8); --line: rgba(255, 255, 255, 0.2); --accent: #C9B5E0; }
.ail-cta::before { content: ""; position: absolute; right: -5rem; top: -6rem; width: 22rem; height: 22rem; background: #4E2C68; transform: rotate(14deg); border-radius: 0.6rem; }
.ail-cta::after { content: ""; position: absolute; right: 6rem; bottom: 2rem; width: 9rem; height: 9rem; background: #673A89; transform: rotate(-8deg); border-radius: 0.5rem; }
.ail-cta .svc-w { position: relative; z-index: 1; }
.ail-cta h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; max-width: 16ch; margin: 0 0 2rem; color: #fff; }
.ail-cta .more a { background: #3F2254; }
.ail-cta .more a:hover { background: #4E2C68; }

@media (prefers-reduced-motion: reduce) {
    .ail-hero h1 mark::before { animation: none; transform: scaleX(1); }
    .ail-memo__sign path { stroke-dashoffset: 0; transition: none; }
}

/* beats the shared hero size so the headline sets in three clean lines */
.svc .svc-hero.ail-hero h1 { font-size: clamp(2.2rem, 3.9vw, 3.3rem); line-height: 1.08; }

.svc--ai { --photo-radius: 0.5rem; }
