/* SDLC umbrella: scroll drives the era, click a panel to open the phase */
.sdlc { position: relative; height: 620vh; background: #fff; transition: background-color .2s linear; }
.sdlc__sticky { position: sticky; top: var(--sdlc-top, 0px); height: calc(100vh - var(--sdlc-top, 0px)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sdlc__canvas { display: block; width: min(100vw, calc((100vh - var(--sdlc-top, 0px)) * 16 / 9)); aspect-ratio: 16 / 9; height: auto; }
.sdlc__eras { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.82); backdrop-filter: blur(6px); box-shadow: 0 2px 12px rgba(0,0,0,.12); z-index: 3; }
.sdlc__eras button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font: 600 14px/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif; color: #1b1f27; cursor: pointer; }
.sdlc__eras button[aria-pressed="true"] { background: #0073aa; color: #fff; }
.sdlc__hint { position: absolute; bottom: 18px; right: 22px; font: 600 13px/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif; color: #fff; background: rgba(0,0,0,.55); padding: 8px 12px; border-radius: 8px; z-index: 3; pointer-events: none; transition: opacity .3s; }
.sdlc__card { position: absolute; top: 72px; right: 24px; width: min(420px, calc(100vw - 48px)); max-height: calc(100vh - var(--sdlc-top, 0px) - 110px); overflow: auto; background: #fff; color: #1b1f27; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.28); padding: 22px 24px; z-index: 4; font: 400 15px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif; }
.sdlc__card[hidden] { display: none; }
.sdlc__card h3 { margin: 0 0 12px; font-size: 22px; color: #0073aa; }
.sdlc__card dl { margin: 0; }
.sdlc__card dt { font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #5d6470; margin-top: 12px; }
.sdlc__card dd { margin: 2px 0 0; }
.sdlc__card .sdlc__ai { margin-top: 14px; padding: 10px 12px; border-left: 4px solid #22d3ee; background: #ecfeff; }
.sdlc__close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: #5d6470; }
.sdlc--video { height: 1080px; width: 1920px; }
.sdlc--video .sdlc__sticky { height: 1080px; }
.sdlc--video .sdlc__canvas { width: 1920px; }
.sdlc--shorts { width: 1080px; height: 1920px; }
.sdlc--shorts .sdlc__sticky { height: 1920px; }
.sdlc--shorts .sdlc__canvas { width: 1080px; aspect-ratio: 9 / 16; }
@media (prefers-reduced-motion: reduce) { .sdlc { transition: none; } }

/* Summary under the scene: timeline + the seven phases */
.sdlc-sum { max-width: 1100px; margin: 0 auto; padding: 64px 24px 24px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #1b1f27; }
.sdlc-sum__title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.2; margin: 0 0 32px; }
.sdlc-sum__line { list-style: none; margin: 0; padding: 28px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; position: relative; }
.sdlc-sum__line::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #c7ccd4, #565d69 40%, #0f1115 70%, #d97757); }
.sdlc-sum__line li { position: relative; display: flex; flex-direction: column; gap: 4px; }
.sdlc-sum__line li::before { content: ""; position: absolute; top: -26px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #0073aa; border: 3px solid #fff; box-shadow: 0 0 0 2px #0073aa; }
.sdlc-sum__line li:last-child::before { background: #d97757; box-shadow: 0 0 0 2px #d97757; }
.sdlc-sum__line b { font-size: 22px; }
.sdlc-sum__line span { font-weight: 700; color: #0073aa; }
.sdlc-sum__line em { font-style: normal; font-size: 14px; color: #5d6470; }
.sdlc-sum__sub { margin: 48px 0 16px; font-size: 22px; font-weight: 700; }
.sdlc-sum__phases { display: flex; flex-wrap: wrap; gap: 8px; }
.sdlc-sum__phases button { border: 2px solid #0073aa; background: #fff; color: #0073aa; border-radius: 999px; padding: 8px 16px; font: 700 15px/1.2 inherit; font-family: inherit; cursor: pointer; }
.sdlc-sum__phases button[aria-selected="true"], .sdlc-sum__phases button:hover { background: #0073aa; color: #fff; }
.sdlc-sum__phases button[data-phase="3"] { border-color: #22d3ee; }
.sdlc-sum__panel { margin-top: 16px; padding: 20px 24px; border-radius: 14px; background: #f4f8fb; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sdlc-sum__panel[hidden] { display: none; }
.sdlc-sum__panel dt { font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #5d6470; }
.sdlc-sum__panel dd { margin: 4px 0 0; }
.sdlc-sum__panel .sdlc__ai { grid-column: 1 / -1; padding: 10px 12px; border-left: 4px solid #22d3ee; background: #ecfeff; }
@media (max-width: 800px) {
	.sdlc-sum__line { grid-template-columns: 1fr; padding: 0 0 0 28px; }
	.sdlc-sum__line::before { top: 0; bottom: 0; left: 6px; right: auto; width: 4px; height: auto; background: linear-gradient(180deg, #c7ccd4, #565d69 40%, #0f1115 70%, #d97757); }
	.sdlc-sum__line li::before { top: 4px; left: -28px; }
	.sdlc-sum__panel { grid-template-columns: 1fr; }
}

/* breathing room above the footer */
main.sdlc-page { padding-bottom: var(--wp--preset--spacing--80, 96px); }

/* 2027 ad (page only) */
.sdlc__ad { position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 12px); width: min(760px, calc(100vw - 32px)); box-sizing: border-box; padding: 16px 20px; border-radius: 14px; background: #fff; color: #1b1f27; box-shadow: 0 8px 30px rgba(217,119,87,.25); border: 2px solid #f3d3c4; font: 400 15px/1.45 "Helvetica Neue", Helvetica, Arial, sans-serif; z-index: 3; opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s; }
.sdlc__ad.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.sdlc__ad.is-side { left: auto; right: 24px; bottom: auto; top: 52%; width: min(340px, 30vw); transform: translate(0, 12px); }
.sdlc__ad.is-side.is-on { transform: none; }
.sdlc__ad p { margin: 0 0 6px; }
.sdlc__ad-title { font-weight: 800; font-size: 18px; }
.sdlc__ad-note { color: #5d6470; font-size: 14px; }
.sdlc__ad-link { display: inline-block; margin-top: 4px; padding: 8px 14px; border-radius: 999px; background: #d97757; color: #fff !important; font-weight: 700; text-decoration: none; }
.sdlc__ad-link:hover { background: #c4623f; }
