/* ==========================================================================
   Al Raed for Engineering — site styles
   Palette : navy #00142B + crimson #84010E, taken from the Al-Raed logo
   Type    : Archivo (display) / IBM Plex Sans (body) / IBM Plex Mono (utility)
   ========================================================================== */

:root {
  --ink:          #00142B;
  --ink-2:        #04203E;
  --ink-3:        #0B2E52;
  --steel:        #47566E;
  --paper:        #F4F5F7;
  --white:        #FFFFFF;
  --line:         #DDE1E7;
  --line-dark:    rgba(255, 255, 255, 0.15);
  --accent:       #84010E;
  --accent-light: #D9525A;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-ar: "Noto Kufi Arabic", var(--font-body);

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(64px, 9vw, 128px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Type ---------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

.t-hero   { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
.t-h2     { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.t-h3     { font-size: clamp(1.15rem, 1.8vw, 1.35rem); letter-spacing: -0.018em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: var(--steel);
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.muted { color: var(--steel); }

/* ---------- Buttons ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

.btn--on-dark { background: var(--accent-light); border-color: var(--accent-light); color: var(--ink); }
.btn--on-dark:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.btn--ghost-dark { background: transparent; color: var(--white); border-color: var(--line-dark); }
.btn--ghost-dark:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header -------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 243, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header--dark {
  background: rgba(11, 32, 39, 0.82);
  border-bottom-color: var(--line-dark);
  color: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}
.brand-mark { height: 36px; width: auto; flex: none; display: block; }
.brand-mark--light { display: none; }
.site-header--dark .brand-mark--dark { display: none; }
.site-header--dark .brand-mark--light { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 5px;
}
.site-header--dark .brand-sub { color: var(--accent-light); }

.nav { display: flex; align-items: center; gap: 30px; }

.nav a {
  font-size: 0.94rem;
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.72rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 11px 18px !important;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--ink); color: var(--white); }
.site-header--dark .nav-cta { border-color: var(--line-dark); }
.site-header--dark .nav-cta:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: inherit;
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.site-header--dark .nav-toggle { border-color: var(--line-dark); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4.5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    color: var(--white);
    padding: 12px var(--gutter) 32px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-size: 1.15rem; }
  .nav-cta { margin-top: 20px; text-align: center; justify-content: center; border-color: var(--accent); color: var(--accent-light); }
}

/* ---------- Hero ---------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 12% 100%, rgba(132, 1, 14, 0.16), transparent 60%);
  z-index: -1;
}

.hero-contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.5;
}
.hero-contours path {
  fill: none;
  stroke: var(--accent-light);
  stroke-width: 1;
  opacity: 0.34;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: draw 2.6s var(--ease) forwards;
}
.hero-contours path:nth-child(2) { animation-delay: 0.12s; opacity: 0.26; }
.hero-contours path:nth-child(3) { animation-delay: 0.24s; opacity: 0.2; }
.hero-contours path:nth-child(4) { animation-delay: 0.36s; opacity: 0.15; }
.hero-contours path:nth-child(5) { animation-delay: 0.48s; opacity: 0.11; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-inner {
  padding-block: clamp(80px, 13vw, 168px) clamp(64px, 10vw, 120px);
  max-width: 900px;
}
.hero .eyebrow { color: var(--accent-light); }
.hero-lede {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.76);
  max-width: 56ch;
  margin: 26px 0 38px;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding-block: clamp(64px, 9vw, 112px) clamp(48px, 7vw, 84px);
  position: relative;
  overflow: hidden;
}
.page-hero .eyebrow { color: var(--accent-light); }
.page-hero .lede { color: rgba(255, 255, 255, 0.76); margin-top: 22px; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(100% 90% at 90% 0%, rgba(217, 82, 90, 0.13), transparent 62%);
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }

/* ---------- Sections ------------------------------------------------------ */

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark .lede, .section--dark .muted { color: rgba(255, 255, 255, 0.72); }
.section--dark .eyebrow { color: var(--accent-light); }
.section--white { background: var(--white); }

.section-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p { margin-top: 20px; }

/* Two-column statement */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 0.9fr 1.1fr; }
}

/* ---------- Figures strip ------------------------------------------------- */

.figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 8px;
}
@media (min-width: 720px) { .figures { grid-template-columns: repeat(4, 1fr); } }

.figure { background: var(--paper); padding: 26px 22px; }
.section--white .figure { background: var(--white); }
.figure-num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.figure-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 12px;
}

/* ---------- Card grid ----------------------------------------------------- */

.grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--paper);
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  position: relative;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.section--white .card { background: var(--white); }
a.card:hover { background: var(--ink); color: var(--white); }
a.card:hover .card-body { color: rgba(255, 255, 255, 0.74); }
a.card:hover .card-tag { color: var(--accent-light); }
a.card:hover .card-arrow { transform: translateX(6px); color: var(--accent-light); }

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.3s var(--ease);
}
.card-body { color: var(--steel); font-size: 0.97rem; transition: color 0.3s var(--ease); }
.card-arrow {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
  display: inline-block;
}

/* ---------- Stages (real sequence) ---------------------------------------- */

.stages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}
@media (min-width: 900px) {
  .stages { grid-template-columns: repeat(5, 1fr); border-top: none; }
}

.stage {
  padding: 30px 26px 34px 0;
  border-top: 1px solid var(--line-dark);
  position: relative;
}
@media (min-width: 900px) {
  .stage { padding: 34px 24px 0 0; }
  .stage::before {
    content: "";
    position: absolute;
    top: -1px; left: 0;
    width: 9px; height: 9px;
    transform: translateY(-4px);
    border-left: 1px solid var(--accent);
    border-top: 1px solid var(--accent);
  }
}
.stage-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--accent-light);
  display: block;
  margin-bottom: 14px;
}
.stage h3 { font-size: 1.05rem; margin-bottom: 10px; }
.stage p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.66); }

/* ---------- Sector list --------------------------------------------------- */

.sectors { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sectors li { border-bottom: 1px solid var(--line); }
.sectors a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 22px 6px;
  text-decoration: none;
  transition: padding 0.3s var(--ease), color 0.3s var(--ease);
}
.sectors a:hover { padding-left: 18px; color: var(--accent); }
.sector-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  color: var(--steel);
  flex: none;
  width: 44px;
}
.sector-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  letter-spacing: -0.025em;
}
.sector-note { margin-left: auto; font-size: 0.9rem; color: var(--steel); text-align: right; }
@media (max-width: 700px) { .sector-note { display: none; } }

/* ---------- CTA band ------------------------------------------------------ */

.cta-band {
  background: var(--ink-2);
  color: var(--white);
  padding-block: clamp(56px, 8vw, 96px);
}
.cta-band .t-h2 { max-width: 22ch; }
.cta-inner { display: grid; gap: 32px; align-items: end; }
@media (min-width: 860px) { .cta-inner { grid-template-columns: 1.2fr 0.8fr; } }

/* ---------- Contact ------------------------------------------------------- */

.contact-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--steel);
}
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 13px 15px;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(132, 1, 14, 0.16);
}
.field textarea { min-height: 150px; resize: vertical; }

.detail-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.detail-list li { border-bottom: 1px solid var(--line); padding: 20px 0; display: grid; gap: 6px; }
.detail-list dt, .detail-key {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--steel);
}
.detail-val { font-size: 1.05rem; }
.detail-val a { text-decoration: none; border-bottom: 1px solid var(--accent); }

.form-note {
  font-size: 0.85rem;
  color: var(--steel);
  margin-top: 14px;
}

/* ---------- Prose --------------------------------------------------------- */

.prose { max-width: 68ch; }
.prose h3 { margin: 44px 0 14px; }
.prose ul { padding-left: 20px; color: var(--steel); }
.prose li { margin-bottom: 8px; }

/* ---------- Footer -------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.68);
  padding-block: clamp(52px, 7vw, 84px) 32px;
  font-size: 0.93rem;
}
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-ar {
  font-family: var(--font-ar);
  font-size: 1.6rem;
  color: var(--accent-light);
  direction: rtl;
  margin: 0 0 10px;
  line-height: 1.8;
}
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 18px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-light); }

.footer-bottom {
  margin-top: clamp(40px, 6vw, 68px);
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Reveal on scroll --------------------------------------------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   Arabic / right-to-left support and later additions
   ========================================================================== */

:root {
  --font-body-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --font-display-ar: "Noto Kufi Arabic", "IBM Plex Sans Arabic", sans-serif;
}

html[lang="ar"] body { font-family: var(--font-body-ar); }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
  font-family: var(--font-display-ar);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}
html[lang="ar"] .t-hero { font-size: clamp(2rem, 5vw, 3.6rem); }
html[lang="ar"] .t-h2   { font-size: clamp(1.55rem, 3.2vw, 2.35rem); }
html[lang="ar"] .brand-name { font-family: var(--font-display-ar); font-size: 1rem; }
html[lang="ar"] .eyebrow,
html[lang="ar"] .card-tag,
html[lang="ar"] .figure-label,
html[lang="ar"] .stage-num,
html[lang="ar"] .detail-key,
html[lang="ar"] .field label,
html[lang="ar"] .btn,
html[lang="ar"] .nav-cta,
html[lang="ar"] .site-footer h4,
html[lang="ar"] .footer-bottom {
  font-family: var(--font-body-ar);
  letter-spacing: 0;
  text-transform: none;
}
html[lang="ar"] .brand-sub { font-family: var(--font-body-ar); letter-spacing: 0; text-transform: none; font-size: 0.68rem; }
html[lang="ar"] .figure-num,
html[lang="ar"] .sector-code { font-family: var(--font-display); }

/* Direction-sensitive flips */
[dir="rtl"] .nav a::after { transform-origin: right; }
[dir="rtl"] .eyebrow::before { transform: none; }
[dir="rtl"] .sectors a:hover { padding-left: 6px; padding-right: 18px; }
[dir="rtl"] .sector-note { margin-left: 0; margin-right: auto; text-align: left; }
[dir="rtl"] .prose ul { padding-left: 0; padding-right: 20px; }
[dir="rtl"] a.card:hover .card-arrow { transform: translateX(-6px); }
[dir="rtl"] .stage { padding: 30px 0 34px 26px; }
@media (min-width: 900px) {
  [dir="rtl"] .stage { padding: 34px 0 0 24px; }
  [dir="rtl"] .stage::before { left: auto; right: 0; border-left: 0; border-right: 1px solid var(--accent); }
}
[dir="rtl"] .item { border-inline-start: 3px solid var(--accent); }

/* Language switch */
.lang-switch {
  font-family: var(--font-mono);
  font-size: 0.74rem !important;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  padding: 9px 13px !important;
  min-width: 42px;
  text-align: center;
}
.lang-switch::after { display: none; }
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }
.site-header--dark .lang-switch { border-color: var(--line-dark); }
.site-header--dark .lang-switch:hover { border-color: var(--accent-light); color: var(--accent-light); }
@media (max-width: 900px) {
  .lang-switch { margin-top: 20px; border-color: var(--accent); color: var(--accent-light); text-align: center; }
}

/* Later additions */
.figures-wrap { margin-top: clamp(40px, 6vw, 72px); }
.service-block { padding-block: clamp(36px, 5vw, 60px); border-top: 1px solid var(--line); }
.contact-h { margin-bottom: 28px; }
.footer-blurb { max-width: 38ch; margin: 0; }
.bullets { margin-top: 22px; }
.card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 4px; }

/* Logo lockups */
.footer-logo { width: 190px; height: auto; margin-bottom: 18px; }
@media (max-width: 760px) { .footer-logo { width: 150px; } }
.footer-ar { font-size: 1.25rem; }

/* ==========================================================================
   Site photography
   ========================================================================== */

/* --- Hero: photograph behind the type ------------------------------------ */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  animation: heroDrift 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.2%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; transform: scale(1.04); }
}

/* Legibility: the photo is bright, the type is white. */
.hero::after {
  background:
    linear-gradient(180deg, rgba(0, 20, 43, 0.80) 0%, rgba(0, 20, 43, 0.62) 45%, rgba(0, 20, 43, 0.90) 100%),
    linear-gradient(100deg, rgba(0, 20, 43, 0.72) 0%, rgba(0, 20, 43, 0.18) 70%);
  z-index: -1;
}
.hero-inner { position: relative; z-index: 1; }
.hero { min-height: min(84vh, 760px); display: flex; align-items: center; }
.hero-inner { padding-block: clamp(88px, 12vw, 150px) clamp(64px, 9vw, 110px); }

/* --- Inner page heroes ---------------------------------------------------- */
.page-hero-media { position: absolute; inset: 0; overflow: hidden; }
.page-hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.30;
  transform: scale(1.03);
}
.page-hero--photo::after {
  background:
    linear-gradient(180deg, rgba(0, 20, 43, 0.86) 0%, rgba(0, 20, 43, 0.70) 60%, rgba(0, 20, 43, 0.94) 100%);
}

/* --- Scrolling strip of site photography ---------------------------------- */
.strip-section {
  background: var(--ink);
  padding-block: clamp(28px, 4vw, 46px);
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
}
.strip { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
         mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.strip-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 64s linear infinite;
  will-change: transform;
}
.strip:hover .strip-track,
.strip:focus-within .strip-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
[dir="rtl"] .strip-track { animation-direction: reverse; }

.strip-item { margin: 0; flex: none; width: clamp(200px, 26vw, 310px); position: relative; overflow: hidden; }
.strip-item img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block;
  filter: grayscale(0.35) contrast(1.05);
  transition: filter 0.5s var(--ease), transform 0.5s var(--ease);
}
.strip-item:hover img { filter: none; transform: scale(1.05); }

@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .strip-item:nth-child(n+7) { display: none; }
  .strip { mask-image: none; -webkit-mask-image: none; }
}

/* --- Project card images -------------------------------------------------- */
.card-img {
  width: calc(100% + 2 * clamp(26px, 3vw, 38px));
  margin: calc(-1 * clamp(26px, 3vw, 38px)) calc(-1 * clamp(26px, 3vw, 38px)) 6px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card { overflow: hidden; }
.card:hover .card-img { transform: scale(1.04); }

/* --- About page photo band ------------------------------------------------ */
.photo-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}
.photo-band img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 700px) {
  .photo-band { grid-template-columns: 1fr 1fr; }
  .photo-band img:nth-child(3) { display: none; }
}
