/* pages.css — shared styles for the conventional pages (projects, blog, contact). Page-specific rules live in css/pages/*.css */
@import url(pages/projects.css);
@import url(pages/blog.css);
@import url(pages/contact.css);
@import url(pages/services.css);
@import url(pages/about.css);
@import url(pages/fx.css);

/* ---------- page hero (dark band under the fixed nav) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--charcoal); color: #fff; padding-block: calc(var(--nav-h) + clamp(56px, 9vw, 140px)) clamp(48px, 7vw, 110px); }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(70% 90% at 30% 50%, #000 20%, transparent 100%); }
.page-hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.page-hero .eyebrow { color: var(--red-hot); }
.page-hero h1 { font-size: clamp(2.2rem, 5.4vw, 4.6rem); font-weight: 800; }
.page-hero .lead { color: #C9C9C9; }
.page-hero .hero-art { inline-size: 100%; max-block-size: 420px; }
.page-hero .hero-art svg { inline-size: 100%; block-size: 100%; overflow: visible; }
.page-hero .hero-art .iso-grid line { stroke: #fff; stroke-opacity: .08; }
.page-hero .crumbs { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: var(--steel); margin-block-end: 18px; }
.page-hero .crumbs a:hover { color: #fff; }
@media (max-width: 900px) { .page-hero .container { grid-template-columns: 1fr; } .page-hero .hero-art { max-block-size: 260px; } }

/* ---------- prose (articles, project bodies) ---------- */
.prose { max-inline-size: 70ch; font-size: clamp(1.02rem, 1.15vw, 1.15rem); line-height: 1.8; }
html[lang="ar"] .prose { line-height: 2; }
.prose > * + * { margin-block-start: 1.1em; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; margin-block-start: 2em; color: var(--charcoal); }
.prose h2::before { content: ""; display: block; inline-size: 34px; block-size: 3px; background: var(--red); transform: skewX(-20deg); margin-block-end: 12px; }
.prose ul { padding-inline-start: 1.2em; list-style: disc; }
.prose li + li { margin-block-start: .4em; }
.prose strong { font-weight: 700; color: var(--charcoal); }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- generic building blocks ---------- */
.art { inline-size: 100%; block-size: 100%; }
.art .f { stroke-width: .8; }
.art.blueprint .f { fill: none; stroke: var(--charcoal); stroke-width: .7; }
.art-frame { aspect-ratio: 16 / 10; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: grid; place-items: center; padding: 8%; }
.dark .art-frame { background: #262626; border-color: rgba(255,255,255,.08); }
.spec-table { inline-size: 100%; border-collapse: collapse; font-size: .98rem; }
.spec-table th, .spec-table td { padding: 12px 0; border-block-end: 1px solid var(--line); text-align: start; vertical-align: top; }
.spec-table th { font-weight: 500; color: var(--steel-dark); inline-size: 38%; }
.spec-table td { font-weight: 600; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: .86rem; color: var(--steel-dark); }
.cta-band { background: var(--charcoal); color: #fff; padding-block: clamp(48px, 7vw, 100px); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0; inline-size: 40%; block-size: 6px; background: var(--red); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 600; max-inline-size: 30ch; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--steel-dark); }
.field input, .field select, .field textarea { inline-size: 100%; font: inherit; color: inherit; background: var(--white); border: 1.5px solid var(--light); border-radius: 4px; padding: 12px 14px; transition: border-color .25s, box-shadow .25s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(163,25,32,.14); }
.field textarea { min-block-size: 140px; resize: vertical; }
.notice { padding: 14px 16px; border-radius: 4px; background: var(--paper); border-inline-start: 4px solid var(--red); font-size: .92rem; }
