/* ==========================================================================
   The Framework page (/framework/). Loaded only on that page.
   ========================================================================== */

.fw svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fw-head { max-width: 760px; margin-bottom: 3rem; }

/* 1. HERO ---------------------------------------------------------------- */
.fw-hero { background: var(--aa-navy); padding: 5rem var(--aa-gutter) 4.5rem; position: relative; overflow: hidden; }
.fw-hero::before { content: ''; position: absolute; right: -120px; top: -140px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(201, 168, 76, .1); pointer-events: none; }
.fw-hero__inner { position: relative; }
.fw-hero .aa-label { color: var(--aa-gold); }
.fw-hero .aa-h1 { max-width: 760px; }
.fw-hero__intro { margin-top: 1.5rem; max-width: 620px; font-size: 1.1rem; font-weight: 300; line-height: 1.82; color: var(--aa-ice); }
.fw-index { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-top: 3rem; }
.fw-index a {
	display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1rem 1.1rem;
	border: 1px solid rgba(202, 220, 252, .16); background: rgba(255, 255, 255, .03);
	font-size: .92rem; color: var(--aa-white); transition: border-color .2s, background-color .2s;
}
.fw-index a:hover { border-color: rgba(201, 168, 76, .55); background: rgba(201, 168, 76, .07); }
.fw-index span { font-family: var(--aa-serif); font-size: 1.05rem; font-weight: 700; color: var(--aa-gold); }
@media (max-width: 860px) { .fw-index { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fw-hero { padding: 3.5rem var(--aa-gutter); } }

/* 2. PRINCIPLE ----------------------------------------------------------- */
.fw-principle { display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: center; }
.fw-principle .aa-h2 { margin-bottom: 0; }
.fw-principle__text { font-size: 1.15rem; font-weight: 300; line-height: 1.85; color: var(--aa-body); padding-left: 2rem; border-left: 3px solid var(--aa-gold); }
@media (max-width: 860px) { .fw-principle { grid-template-columns: 1fr; gap: 1.75rem; } .fw-principle__text { padding-left: 1.25rem; } }

/* 3. STAGES -------------------------------------------------------------- */
.fw-stages .aa-wrap { display: grid; gap: 1.5rem; }
.fw-stage {
	display: grid; grid-template-columns: 120px 1fr; gap: 2.5rem;
	background: var(--aa-white); border-top: 3px solid var(--aa-gold); padding: 2.75rem 2.75rem 2.5rem;
	box-shadow: 0 2px 16px rgba(30, 39, 97, .05);
	scroll-margin-top: calc(var(--aa-header-h) + var(--aa-admin-bar) + 20px);
}
.fw-stage__side { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.fw-stage__num { font-family: var(--aa-serif); font-size: 3.4rem; font-weight: 700; line-height: .9; color: rgba(201, 168, 76, .55); }
.fw-stage__icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--aa-navy); color: var(--aa-gold); }
.fw-stage__icon svg { width: 24px; height: 24px; }
.fw-stage__title { font-family: var(--aa-serif); font-size: 2rem; font-weight: 600; line-height: 1.2; color: var(--aa-navy); margin-bottom: 1rem; }
.fw-stage__body > p, .fw-adapt p { font-weight: 300; line-height: 1.85; color: var(--aa-body); }
.fw-stage__body > p + p, .fw-adapt p + p { margin-top: 1rem; }
.fw-stage__body em { font-style: italic; color: var(--aa-navy); font-weight: 400; }

.fw-observe { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1.5rem 0; }
.fw-observe li { padding: 1rem 1.15rem; background: var(--aa-mist); border-left: 3px solid var(--aa-gold); }
.fw-observe strong { display: block; font-weight: 500; color: var(--aa-navy); margin-bottom: .2rem; }
.fw-observe span { font-size: .9rem; font-weight: 300; line-height: 1.55; color: var(--aa-body); }

.fw-trace { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1.5rem 0; }
.fw-trace__step { padding: .65rem 1rem; border: 1px solid var(--aa-line); font-size: .9rem; color: var(--aa-body); }
.fw-trace__step--key { background: var(--aa-navy); border-color: var(--aa-navy); color: var(--aa-white); font-weight: 500; }
.fw-trace__arrow { color: var(--aa-gold-on-light); }

.fw-plan { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; margin: 1.25rem 0; }
.fw-plan li { display: flex; gap: .7rem; align-items: baseline; font-weight: 300; color: var(--aa-body); }
.fw-plan li::before { content: ''; width: 7px; height: 7px; background: var(--aa-gold); flex-shrink: 0; transform: translateY(-2px); }

.fw-outcome {
	margin-top: 1.75rem !important; padding: 1rem 1.25rem; background: var(--aa-mist);
	display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: baseline;
	font-weight: 400 !important; color: var(--aa-navy) !important;
}
.fw-outcome span { font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--aa-gold-on-light); }

.fw-adapt { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.fw-chart { margin: 0; }
.fw-chart svg { width: 100%; height: auto; overflow: visible; }
.fw-chart__axis { stroke: var(--aa-line); stroke-width: 1.5; }
.fw-chart__target { stroke: var(--aa-gold); stroke-width: 1.5; stroke-dasharray: 6 6; }
.fw-chart__tlabel { fill: var(--aa-gold-on-light); stroke: none; font-family: var(--aa-sans); font-size: 17px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.fw-chart__area { fill: rgba(30, 39, 97, .06); stroke: none; }
.fw-chart__line { stroke: var(--aa-navy); stroke-width: 2.5; }
.fw-chart__dot { fill: var(--aa-white); stroke: var(--aa-navy); stroke-width: 2; }
.fw-chart__dot--end { fill: var(--aa-gold); stroke: var(--aa-gold); }
.fw-chart__xlabel { fill: var(--aa-muted); stroke: none; font-family: var(--aa-sans); font-size: 16px; }
.fw-chart figcaption { display: flex; justify-content: center; align-items: center; gap: .75rem; margin-top: 1rem; color: var(--aa-gold-on-light); }
.fw-chart figcaption span { font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--aa-navy); }

.fw-example { margin-top: 2rem; padding: 1.5rem 1.75rem; background: var(--aa-navy); }
.fw-example__label { font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--aa-gold); margin-bottom: .5rem; }
.fw-example p:not(.fw-example__label) { font-weight: 300; line-height: 1.8; color: var(--aa-ice); }

@media (max-width: 960px) {
	.fw-adapt { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.fw-stage { grid-template-columns: 1fr; gap: 1.25rem; padding: 2rem 1.5rem; }
	.fw-stage__side { flex-direction: row; align-items: center; justify-content: space-between; }
	.fw-stage__num { font-size: 2.6rem; }
	.fw-stage__title { font-size: 1.7rem; }
	.fw-observe, .fw-plan { grid-template-columns: 1fr; }
}

/* 4. REF ----------------------------------------------------------------- */
.fw-ref__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.fw-ref__text { font-size: 1.05rem; font-weight: 300; line-height: 1.85; color: var(--aa-ice); }
.fw-ref__quote {
	margin: 0; padding: 2rem 2.25rem; border: 1px solid rgba(201, 168, 76, .4); position: relative;
	font-family: var(--aa-serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-style: italic; line-height: 1.35; color: var(--aa-white);
}
.fw-ref__quote::before { content: ''; position: absolute; left: -1px; top: -1px; width: 48px; height: 3px; background: var(--aa-gold); }
.fw-ref__steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3.5rem; counter-reset: none; }
.fw-ref__steps li { position: relative; padding: 1.75rem 1.5rem; background: rgba(255, 255, 255, .04); border: 1px solid rgba(202, 220, 252, .12); }
.fw-ref__steps li:not(:last-child)::after {
	content: '→'; position: absolute; right: -1.05rem; top: 50%; transform: translateY(-50%);
	color: var(--aa-gold); font-size: 1.1rem; z-index: 1;
}
.fw-ref__n { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid var(--aa-gold); color: var(--aa-gold); font-family: var(--aa-serif); font-weight: 700; margin-bottom: .9rem; }
.fw-ref__steps strong { display: block; font-family: var(--aa-serif); font-size: 1.5rem; font-weight: 600; color: var(--aa-white); margin-bottom: .25rem; }
.fw-ref__steps span:not(.fw-ref__n) { font-size: .92rem; font-weight: 300; line-height: 1.6; color: var(--aa-muted-dark); }
@media (max-width: 860px) {
	.fw-ref__grid { grid-template-columns: 1fr; gap: 2rem; }
	.fw-ref__steps { grid-template-columns: 1fr; }
	.fw-ref__steps li:not(:last-child)::after { content: '↓'; right: auto; left: 1.5rem; top: auto; bottom: -1.15rem; transform: none; }
}

/* 5. CASE STUDY ---------------------------------------------------------- */
.fw-case__grid { display: grid; grid-template-columns: 340px 1fr; gap: 4rem; align-items: center; }
.fw-case__stat { background: var(--aa-navy); border-top: 3px solid var(--aa-gold); padding: 2.5rem 2.25rem; }
.fw-case__num { display: block; font-family: var(--aa-serif); font-size: 5.5rem; font-weight: 700; line-height: .9; color: var(--aa-gold); }
.fw-case__unit { display: block; margin-top: .6rem; font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--aa-ice); }
.fw-case__stat ul { list-style: none; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(202, 220, 252, .15); display: grid; gap: .6rem; }
.fw-case__stat li { display: flex; gap: .65rem; align-items: baseline; font-size: .95rem; color: var(--aa-white); }
.fw-case__stat li::before { content: '✓'; color: var(--aa-gold); font-size: .8rem; }
.fw-case__copy > p:not(.aa-label) { font-weight: 300; line-height: 1.85; color: var(--aa-body); margin-bottom: 1.5rem; }
@media (max-width: 860px) { .fw-case__grid { grid-template-columns: 1fr; gap: 2.5rem; } .fw-case__stat { max-width: 380px; } }

/* 7. CTA ----------------------------------------------------------------- */
.fw-cta__text { margin: 0 auto 2.25rem; max-width: 560px; }
