/*
 * ABOUT-PAGE-001: «عن الشركة», on this page only. The site's language with a rhythm of its own: a short intro
 * with one image, an editorial split, vision and mission joined by one line, ruled priorities, an open
 * grid of services, a dark band for the works, two unequal paths, the dark closing into the footer.
 * Motion stays the inner pages' small reveal.
 */
.about-page h2 { letter-spacing: 0; text-wrap: balance; }
.about-page .band { padding-block: 56px; }
@media (min-width: 768px) { .about-page .band { padding-block: 80px; } }
@media (min-width: 1024px) { .about-page .band { padding-block: 104px; } .about-page h2 { font-size: 38px; line-height: 1.32; } }

/* Intro: shorter than the home page's; the image runs to the edge. */
.about-hero { position: relative; overflow: hidden; overflow: clip; container-type: inline-size; background: var(--surface); }
.about-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); }
.about-hero-text { padding-block: 24px 36px; }
.about-page-eyebrow { margin: 12px 0 8px; color: var(--link); font-weight: 600; font-size: 15px; }
.about-hero h1 { margin: 0; font-size: 34px; line-height: 1.28; letter-spacing: 0; text-wrap: balance; }
.about-hero .stripe { width: 72px; margin-block-start: 18px; }
.about-hero .lead { margin: 18px 0 0; max-width: 38rem; }
.about-hero .hero-actions { margin-block-start: 24px; gap: 8px 24px; }
.about-hero-figure { position: relative; height: 280px; margin: 0 calc(-1 * var(--gutter)); background: var(--primary); clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 56px, 100% 100%, 0 100%); }
.about-hero-figure > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.about-hero-figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26, 19, 110, .08), rgba(26, 19, 110, .24)); pointer-events: none; }
.about-hero-figure.no-image > img { position: absolute; inset: 15%; width: 70%; height: 70%; object-fit: contain; opacity: .1; }
.about-hero-frame { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.about-hero-frame path { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 1; vector-effect: non-scaling-stroke; }
@media (min-width: 768px) { .about-hero h1 { font-size: 44px; } .about-hero-figure { height: 340px; } }
@media (min-width: 1024px) {
	.about-hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; }
	.about-hero-text { align-self: center; padding-block: 40px 56px; padding-inline-end: 56px; }
	.about-hero h1 { font-size: clamp(42px, 4vw, 54px); }
	.about-hero-figure { height: auto; min-height: 520px; margin: 0; margin-inline-end: calc(-1 * var(--gutter) - max(0px, (100cqw - var(--wrap) - 2 * var(--gutter)) / 2)); clip-path: polygon(0 0, calc(100% - 96px) 0, 100% 96px, 100% 100%, 0 100%); }
	.about-hero-figure > img { position: absolute; inset: 0; }
}

/* Heading on one side, text on the other. */
.about-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.about-split h2 { margin: 0; }
.about-page .stripe { display: block; }
@media (min-width: 1024px) { .about-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; } }

.about-story-text p { margin: 0 0 18px; font-size: 18px; line-height: 1.95; }
.about-story-text p:last-child { margin-block-end: 0; }
.about-story-text .about-story-key { margin-block-start: 28px; padding-inline-start: 20px; border-inline-start: 3px solid var(--accent); color: var(--primary); font-weight: 600; }

/* Vision and mission: unequal, one line runs from the first down into the second. */
.about-vm { padding-block-end: 56px; background: var(--white); }
.about-vm-inner { display: grid; grid-template-columns: minmax(0, 1fr); }
.about-vm h2 { margin: 0 0 12px; font-size: 22px; }
.about-vm p { margin: 0; font-size: 18px; line-height: 1.9; }
.about-vision { padding: 32px 26px 36px; background: var(--primary); color: #E0E5F7; clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 56px, 100% 100%, 0 100%); }
.about-vision h2 { color: #A9D4FF; }
.about-mission { position: relative; margin-block-start: 44px; padding: 28px 26px 30px; background: var(--surface); }
.about-mission::before { content: ""; position: absolute; inset-block-start: -44px; inset-inline-start: 40px; width: 2px; height: 44px; background: var(--accent); }
.about-mission::after { content: ""; position: absolute; inset-block-start: -5px; inset-inline-start: 36px; width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg); }
@media (min-width: 1024px) {
	.about-vm { padding-block-end: 104px; }
	.about-vm-inner { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
	.about-vision { grid-column: 1 / span 7; grid-row: 1; padding: 56px 56px 64px; }
	.about-vision p { font-size: 24px; line-height: 1.75; color: var(--white); }
	.about-mission { grid-column: 7 / span 6; grid-row: 2; margin-block-start: 56px; padding: 40px 44px 44px; }
	.about-mission::before { inset-block-start: -56px; height: 56px; }
}

.about-focus { background: var(--surface); }
.about-focus-list { list-style: none; margin: 0; padding: 0; border-block-end: 1px solid var(--input); }
.about-focus-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 12px; padding-block: 22px; border-block-start: 1px solid var(--input); }
.about-focus-list .row-num { grid-row: 1 / span 2; padding-block-start: 6px; }
.about-focus-list h3 { margin: 0; font-size: 20px; }
.about-focus-list p { grid-column: 2; margin: 0; font-size: 16px; line-height: 1.85; }
@media (min-width: 1024px) { .about-focus-head { position: sticky; inset-block-start: calc(var(--header-h) + 32px); } .about-focus-list li { padding-block: 26px; } }

.about-services h2 { margin: 0; max-width: 42rem; }
.about-services-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 40px; }
.about-services-grid li { padding-block: 24px; border-block-start: 2px solid var(--primary); }
.about-services-grid .service-icon { width: 40px; height: 40px; }
.about-services-grid h3 { margin: 12px 0 0; font-size: 20px; }
.about-services-grid p { margin: 6px 0 0; font-size: 16px; line-height: 1.85; }
.about-services-links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 12px 0 0; }
.about-services-links .text-link { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 768px) { .about-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .about-services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Works: the projects' dark band, as on the home page. */
.about-page .about-works { background: var(--primary); color: #E0E5F7; }
.about-works h2 { margin: 0; color: var(--white); }
.about-works-head { max-width: 46rem; }
.about-works-head p { margin: 14px 0 0; color: #E0E5F7; }
.about-works :focus-visible { outline-color: var(--white); }
.about-works-cards { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 40px; border-block-end: 1px solid rgba(255, 255, 255, .22); }
.about-works .project-card { background: none; border: 0; border-block-start: 1px solid rgba(255, 255, 255, .22); border-radius: 0; }
.about-works .project-card::before { content: none; }
.about-works .project-card .card-body { padding: 22px 0 26px; }
.about-works .project-card .card-title { padding: 0; font-size: 21px; }
.about-works .project-card .card-title a, .about-works .project-card:hover .card-title a { color: var(--white); text-decoration: none; }
.about-works .project-card .card-meta { padding: 0; color: #A9D4FF; }
.about-works .project-card .card-scope, .about-works .project-card .card-text, .about-works .project-card .card-scope .label { color: #D6DCF2; }
.about-works .project-card .card-more { color: #A9D4FF; }
.about-works-all { margin: 28px 0 0; }
.about-works-all .button { background: var(--white); color: var(--primary); border-color: var(--white); }
.about-works-all .button:hover { background: #E6EDFC; color: var(--primary); }
@media (min-width: 900px) { .about-works-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.about-audience h2 { margin: 0; }
.about-audience-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-block-start: 28px; }
.about-audience-grid h3 { margin: 0; font-size: 22px; color: var(--primary); }
.about-audience-grid p { margin: 10px 0 20px; font-size: 16px; line-height: 1.85; }
.about-audience-first { padding: 28px 26px; background: var(--surface); border-block-start: 3px solid var(--accent); }
.about-audience-second { padding: 28px 26px; border-block-start: 3px solid var(--border); }
@media (min-width: 1024px) { .about-audience-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; } .about-audience-first { padding: 44px; } .about-audience-second { padding: 44px 0 0; } }
@media (max-width: 479px) { .about-audience-grid .button, .about-closing .button { width: 100%; } }

.about-closing-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.about-closing h2 { margin: 0; }
.about-closing-inner p { margin: 10px 0 0; color: #E0E5F7; }
.about-closing .closing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 0; }
.about-closing .text-link, .about-closing .text-link:hover { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); }
@media (max-width: 479px) { .about-closing .text-link { justify-content: center; width: 100%; } }
@media (min-width: 1024px) { .about-closing-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 64px; } }

/*
 * INNER-EXPERIENCE-008: one quiet line in the margin from the story to the closing, where it ends at a point by the heading
 * (the home page's arrival, lighter); the works as the gallery's cards on the dark band; a short read-in for vision and
 * mission. The line never crosses text: it holds the page margin.
 */
.about-page { --lx: calc(var(--gutter) / 2); }
@media (min-width: 1200px) { .about-page { --lx: 3.333%; } }
.about-flow { position: relative; view-timeline: --about block; }
.about-rail { position: absolute; inset-block: 0; inset-inline-start: var(--lx); z-index: 2; width: 2px; background: var(--accent); transform-origin: top; pointer-events: none; }
.about-page .about-closing { position: relative; overflow: hidden; overflow: clip; container-type: inline-size; view-timeline: --about-end block; --line: #7CC0FF; --cx: calc(var(--gutter) / 2); }
.about-closing-head { position: relative; }
.about-closing-head::before { content: ""; position: absolute; inset-block: -1600px calc(100% - 22px); inset-inline-start: calc(-1 * var(--cx)); width: 2px; background: var(--line); transform-origin: top; pointer-events: none; }
.about-closing-head::after { content: ""; position: absolute; inset-block-start: 21px; inset-inline-start: calc(-1 * var(--cx)); width: calc(var(--cx) - 6px); height: 2px; background: var(--line); transform-origin: right; pointer-events: none; }
.about-closing-node { position: absolute; inset-block-start: 17px; inset-inline-start: calc(-4px - var(--cx)); width: 10px; height: 10px; background: var(--line); transform: rotate(45deg); }
.about-closing-call bdi { font: 700 18px/1 var(--font-en); }
@media (min-width: 900px) { .about-page .about-closing { --edge: calc(var(--gutter) + max(0px, (100cqw - var(--wrap) - 2 * var(--gutter)) / 2)); } }
@media (min-width: 1200px) { .about-page .about-closing { --cx: calc(var(--edge) - 3.333cqw); } }

/* Works: the gallery's cards (works.css) on the dark band. */
.about-works .works-gallery { margin-block-start: 36px; border: 0; }
.about-works .works-gallery .project-card { background: var(--white); border-block-start: 0; }
.about-works .works-gallery .is-wide { background: #F5F7FA; }
.about-works .works-gallery .project-card .card-title a { color: var(--primary); }
.about-works .works-gallery .project-card .card-meta, .about-works .works-gallery .project-card .card-more { color: var(--link); }
.about-works .works-gallery .project-card .card-scope, .about-works .works-gallery .project-card .card-text, .about-works .works-gallery .project-card .card-scope .label { color: var(--muted); }
.about-works .works-gallery .project-card .card-body { padding: 18px 18px 22px; }
@media (min-width: 1024px) { .about-works .works-gallery .is-wide .card-body { padding: 40px; } }
.about-closing .about-closing-call { gap: 6px; }
.about-works .works-gallery .project-card:has(:focus-visible) { outline-color: var(--white); }

@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.about-rail { animation: about-down linear both; animation-timeline: --about; animation-range: cover 30vh cover calc(100% - 40vh); }
		.about-closing-head::before { animation: about-down linear both; animation-timeline: --about-end; animation-range: entry 0% entry 40%; }
		.about-closing-head::after { animation: about-across linear both; animation-timeline: --about-end; animation-range: entry 40% entry 60%; }
		.about-closing-node { animation: about-node linear both; animation-timeline: --about-end; animation-range: entry 36% entry 46%; }
		.about-vision p, .about-mission p { animation: about-read linear both; animation-timeline: view(); animation-range: entry 10% entry 50%; }
		@keyframes about-down { from { transform: scaleY(0); } }
		@keyframes about-across { from { transform: scaleX(0); } }
		@keyframes about-node { from { opacity: 0; } }
		@keyframes about-read { from { opacity: .3; translate: 0 10px; } }
	}
}

/* The small reveal, as on the other inner pages. */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.about-focus-list li, .about-services-grid li, .about-vision, .about-mission, .about-audience-grid > div { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
		.about-focus-list li:focus-within, .about-services-grid li:focus-within, .about-vision:focus-within, .about-mission:focus-within, .about-audience-grid > div:focus-within { animation: none; }
	}
}
