/* Pioneer Engineering Consulting – base (no JavaScript on this site) */
:root {
  --ink: #121826;
  --ink-soft: #3B4252;
  --grey: #6B7280;
  --hair: #E4E6EA;
  --paper: #FFFFFF;
  --wine: #7A1F2B;
  --display: "Markazi Text", "Noto Naskh Arabic", serif;
  --text: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --side: clamp(1.25rem, 7vw, 8rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--text); font-weight: 300; font-size: 1.02rem; line-height: 1.85; color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0 0 .5em; line-height: 1.25; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 500; }
h3 { font-size: 1.55rem; }
b, strong { font-weight: 500; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-underline-offset: .25em; }
.skip { position: absolute; top: -50px; right: 1rem; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 99; }
.skip:focus { top: .5rem; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }

.masthead { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; flex-wrap: wrap; padding: 2rem var(--side); }
.brand { font-family: var(--display); font-size: 2rem; font-weight: 700; text-decoration: none; display: flex; align-items: baseline; gap: .8rem; line-height: 1; }
.brand span { font-family: var(--text); font-size: .72rem; font-weight: 400; color: var(--grey); letter-spacing: .04em; }
.links { display: flex; gap: 2rem; flex-wrap: wrap; }
.links a { text-decoration: none; font-size: .92rem; color: var(--ink-soft); }
.links a:hover { color: var(--wine); }

.end { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding: 2rem var(--side); font-size: .8rem; color: var(--grey); }
.end p { margin: 0; }

@media (max-width: 700px) {
  .masthead { padding-top: 1.4rem; padding-bottom: 1rem; }
  .brand span { display: none; }
  .links { gap: .4rem 1.3rem; }
}
