/* ================================================================
   BENYAN MUSANDAM — ULTRA LAYER
   Loaded after premium.css. Engineered-premium finish:
   depth system, spec-sheet motifs, motion choreography, micro-interactions.
   ================================================================ */

:root {
  /* Elevation scale — one ramp, used everywhere */
  --e1: 0 1px 2px rgba(26, 24, 20, 0.04), 0 2px 8px rgba(26, 24, 20, 0.04);
  --e2: 0 2px 4px rgba(26, 24, 20, 0.04), 0 8px 24px rgba(26, 24, 20, 0.06);
  --e3: 0 4px 10px rgba(26, 24, 20, 0.05), 0 18px 48px rgba(26, 24, 20, 0.09);
  --e4: 0 8px 20px rgba(26, 24, 20, 0.07), 0 32px 80px rgba(26, 24, 20, 0.13);
  --hairline: rgba(26, 24, 20, 0.09);
  --hairline-soft: rgba(26, 24, 20, 0.055);
  --hairline-dark: rgba(255, 255, 255, 0.12);
  --ink-deep: #121316;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------------------
   1. TYPOGRAPHY — tighter optical scale, engineered numerals
   --------------------------------------------------------------- */
body { font-feature-settings: "kern" 1, "liga" 1, "calt" 1; text-rendering: optimizeLegibility; }

h1, h2, h3, .inner-hero__title, .hero-title {
  font-feature-settings: "kern" 1, "liga" 1;
  text-wrap: balance;
}
h2 { letter-spacing: -0.022em; }
p, .capability-desc, .card-text, .ss-desc { text-wrap: pretty; }

/* Numerals in data contexts line up */
.score-value, .stat-num, .stat-number, .contact-stats__num,
.result-value, .plant-card__meta, .mix-tag, .project-item__meta,
.footer-contact-value, .trust-pill, .calc-inputs input {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Eyebrow: hairline + dot, drawn on reveal */
.eyebrow { position: relative; }
.section-header .eyebrow::after,
.material-story__header .eyebrow::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  margin-left: 12px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--brand) 0%, transparent 100%);
  transition: width 0.9s var(--ease-out-expo) 0.15s;
}
.reveal.revealed .eyebrow::after,
.revealed > .eyebrow::after { width: 54px; }

/* ---------------------------------------------------------------
   2. ENGINEERED SURFACE — corner ticks + spec hairlines
   --------------------------------------------------------------- */
.tick-frame { position: relative; }
.tick-frame::before,
.tick-frame::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.35s var(--ease-smooth), width 0.35s var(--ease-out-expo), height 0.35s var(--ease-out-expo);
}
.tick-frame::before { top: 10px; left: 10px; border-top: 1.5px solid var(--brand); border-left: 1.5px solid var(--brand); }
.tick-frame::after { bottom: 10px; right: 10px; border-bottom: 1.5px solid var(--brand); border-right: 1.5px solid var(--brand); }
.tick-frame:hover::before,
.tick-frame:hover::after { opacity: 1; width: 18px; height: 18px; }

/* ---------------------------------------------------------------
   3. BUTTONS — light sweep, weighted press
   --------------------------------------------------------------- */
.btn { overflow: hidden; isolation: isolate; will-change: transform; }
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.38) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease-out-expo);
}
.btn:hover::after { transform: translateX(130%); }
.btn-primary { box-shadow: 0 1px 2px rgba(194, 65, 12, 0.2), 0 8px 22px rgba(249, 115, 22, 0.22); }
.btn-primary:hover { box-shadow: 0 2px 6px rgba(194, 65, 12, 0.24), 0 16px 34px rgba(249, 115, 22, 0.3); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ---------------------------------------------------------------
   4. CARDS — layered depth, cursor spotlight, image zoom
   --------------------------------------------------------------- */
.capability-card,
.card,
.material-step,
.plant-card,
.note-card,
.secondary-service {
  position: relative;
  isolation: isolate;
  box-shadow: var(--e1);
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s var(--ease-smooth),
              border-color 0.35s var(--ease-smooth);
}
.capability-card::after,
.card::after,
.material-step::after,
.plant-card::after,
.secondary-service::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              rgba(249, 115, 22, 0.1), transparent 68%);
}
.capability-card:hover,
.card:hover,
.material-step:hover,
.plant-card:hover,
.secondary-service:hover {
  transform: translateY(-5px);
  box-shadow: var(--e3);
  border-color: rgba(249, 115, 22, 0.24);
}
.capability-card:hover::after,
.card:hover::after,
.material-step:hover::after,
.plant-card:hover::after,
.secondary-service:hover::after { opacity: 1; }

/* Project tiles: image zoom + caption lift */
.project-item__visual img { transition: transform 0.9s var(--ease-out-expo), filter 0.6s var(--ease-smooth); }
.project-item__visual:hover img { transform: scale(1.06); filter: saturate(1.06); }
.project-item__overlay { transition: background 0.45s var(--ease-smooth); }
.project-item__visual .project-tags {
  opacity: 0.86;
  transform: translateY(4px);
  transition: opacity 0.4s var(--ease-smooth), transform 0.45s var(--ease-out-expo);
}
.project-item__visual:hover .project-tags { opacity: 1; transform: none; }

/* ---------------------------------------------------------------
   5. HERO — blueprint grid, depth vignette, choreographed entrance
   --------------------------------------------------------------- */
.blueprint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(249, 115, 22, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 115, 22, 0.1) 1px, transparent 1px);
  background-size: 34px 34px, 34px 34px, 170px 170px, 170px 170px;
  mask-image: radial-gradient(120% 90% at 18% 50%, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 90% at 18% 50%, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 85%);
  animation: bpDrift 46s linear infinite;
}
@keyframes bpDrift { to { background-position: 34px 34px, 34px 34px, 170px 170px, 170px 170px; } }

.inner-hero__bg, .cinematic-media img { will-change: transform; }

/* Word-by-word headline reveal */
.split-line { display: block; overflow: hidden; }
.split-word {
  display: inline-block;
  transform: translateY(105%) rotate(2.4deg);
  opacity: 0;
  transition: transform 0.95s var(--ease-out-expo), opacity 0.7s var(--ease-smooth);
}
.split-ready .split-word { transform: none; opacity: 1; }

/* Hero meta rail — engineered detail under the CTA */
.hero-rail {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font: 600 10.5px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}
.hero-rail b { color: var(--hero-ink); font-weight: 700; }
.hero-rail span { display: inline-flex; align-items: center; gap: 8px; }
.hero-rail span::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

/* ---------------------------------------------------------------
   6. SPEC BAND — monospace key/value grid (engineered credibility)
   --------------------------------------------------------------- */
.spec-band {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.spec-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 68px 100%;
  pointer-events: none;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.spec-cell {
  padding: 34px 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.4s var(--ease-smooth);
}
.spec-cell:first-child { border-left: 0; }
.spec-cell:hover { background: rgba(249, 115, 22, 0.06); }
.spec-cell__label {
  font: 700 9.5px/1 var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  display: block;
  margin-bottom: 14px;
}
.spec-cell__value {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 700;
  line-height: 1;
  color: #FAF8F3;
  letter-spacing: -0.02em;
  display: block;
}
.spec-cell__value em { font-style: italic; color: var(--hero-ink); }
.spec-cell__note {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------------------------------------------------------------
   7. MARQUEE — coverage strip
   --------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-elevated);
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 26px;
  font: 600 12px/1 var(--font-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}
.marquee__item::after {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.55;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------
   8. MIX COMPOSITION GRAPHIC
   --------------------------------------------------------------- */
.mix-figure {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}
.mix-dial { position: relative; }
.mix-dial svg { width: 100%; height: auto; display: block; overflow: visible; }
.mix-dial__ring { cursor: default; transition: stroke-dashoffset 1.4s var(--ease-out-expo), opacity 0.3s ease, stroke-width 0.3s ease; }
.mix-dial__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.mix-dial__pct {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.mix-dial__name {
  margin-top: 8px;
  font: 700 8.5px/1.4 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  max-width: 104px;
}
.mix-legend { display: grid; gap: 2px; }
.mix-legend__row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 12px;
  border-radius: 10px;
  border-bottom: 1px solid var(--hairline-soft);
  cursor: default;
  transition: background 0.3s var(--ease-smooth), transform 0.35s var(--ease-out-expo);
}
.mix-legend__row:hover { background: rgba(249, 115, 22, 0.05); transform: translateX(4px); }
.mix-legend__row:last-child { border-bottom: 0; }
.mix-legend__swatch { width: 12px; height: 12px; border-radius: 3px; }
.mix-legend__name { font-size: 15px; font-weight: 600; color: var(--ink); }
.mix-legend__name small { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-muted); margin-top: 3px; letter-spacing: 0; text-transform: none; }
.mix-legend__val {
  font: 700 17px/1 var(--font-mono);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------
   9. TIMELINE — material journey as a drawn process line
   --------------------------------------------------------------- */
.material-steps { position: relative; }
.material-steps::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 46px;
  height: 1px;
  background: var(--hairline);
}
.material-steps::after {
  content: '';
  position: absolute;
  left: 0;
  top: 46px;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), rgba(249, 115, 22, 0.15));
  transition: width 1.8s var(--ease-out-expo) 0.2s;
}
.material-steps.revealed::after { width: 100%; }
.material-step { background: var(--bg); }
.material-step__number {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------
   10. NAVIGATION — refined chrome
   --------------------------------------------------------------- */
.site-nav { border-bottom: 1px solid transparent; transition: background 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth), border-color 0.4s; }
.site-nav.scrolled { border-bottom-color: var(--hairline); box-shadow: var(--e1); }
.nav-links a { transition: color 0.25s var(--ease-smooth); }
.scroll-progress-bar {
  background: linear-gradient(90deg, var(--brand-deep), var(--brand) 45%, #FDBA74);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.5);
}

/* Back to top */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 89;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--e2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.9);
  transition: opacity 0.35s var(--ease-smooth), transform 0.45s var(--ease-out-expo), visibility 0s linear 0.4s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { border-color: var(--brand); color: var(--brand-ink); transform: translateY(-2px); }
.to-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .to-top { right: 16px; bottom: 76px; width: 42px; height: 42px; } }

/* ---------------------------------------------------------------
   11. SECTION RHYTHM & DIVIDERS
   --------------------------------------------------------------- */
.tile + .tile { border-top: 1px solid var(--hairline-soft); }
.section-elevated { position: relative; }
.rule-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.rule-label::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }

/* CTA card: engineered frame */
.cta-card { box-shadow: var(--e3); }
.cta-card::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: 10px;
  pointer-events: none;
}

/* ---------------------------------------------------------------
   12. FORM & CALCULATOR POLISH
   --------------------------------------------------------------- */
.calc-form-panel { box-shadow: var(--e4); }
.calc-inputs input:focus, .calc-inputs select:focus { transform: translateY(-1px); }
.calc-result-card { box-shadow: var(--e3); }
.result-row { transition: background 0.25s var(--ease-smooth); }
.result-row:hover { background: rgba(249, 115, 22, 0.04); }
.contact-form-card { box-shadow: var(--e4); }

/* ---------------------------------------------------------------
   13. ACCESSIBILITY & MOTION SAFETY
   --------------------------------------------------------------- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 500;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 10px;
  font: 600 13px/1 var(--font-sans);
  transition: top 0.25s var(--ease-out-expo);
}
.skip-link:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
  .split-word { transform: none !important; opacity: 1 !important; }
  .marquee__track, .blueprint { animation: none !important; }
  .material-steps::after { transition: none; width: 100%; }
  .btn::after { display: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------
   14. RESPONSIVE
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-cell:nth-child(3) { border-left: 0; }
  .spec-cell { border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .spec-cell:nth-child(-n+2) { border-top: 0; }
  .mix-figure { grid-template-columns: 1fr; gap: 32px; }
  .mix-dial { max-width: 300px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .material-steps::before, .material-steps::after { display: none; }
  .hero-rail { gap: 12px 16px; font-size: 9.5px; }
}
@media (max-width: 560px) {
  .spec-grid { grid-template-columns: 1fr; }
  .spec-cell { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 24px 20px; }
  .spec-cell:first-child { border-top: 0; }
  .mix-legend__row { grid-template-columns: 12px minmax(0, 1fr) auto; gap: 12px; padding: 14px 6px; }
}

/* Hero rail legibility over photography */
.hero-rail { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55); }
.cinematic-hero .cinematic-overlay::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(8, 10, 14, 0.55), transparent);
  pointer-events: none;
}

/* Spec band top line — credibility strip */
.spec-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  padding: 24px 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}
.spec-topline__item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
}
.spec-topline__item b {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--hero-ink);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .spec-topline { gap: 10px 22px; padding: 20px 0 18px; }
  .spec-topline__item { font-size: 12px; }
  .spec-topline__item b { font-size: 17px; }
}

/* ---------------------------------------------------------------
   15. CONTRAST CORRECTIONS (WCAG AA on small text)
   Measured against the ivory surfaces and the dark bands.
   --------------------------------------------------------------- */
:root {
  --ink-faint: #6F6B63;        /* was #9E9A92 — 2.5:1, now 4.8:1 */
  --brand-ink-sm: #AD450A;     /* small text / labels — 5.2:1 on ivory */
}
.spec-cell__label { color: rgba(255, 255, 255, 0.55); }   /* 6.2:1 on the dark band */
.spec-cell__note  { color: rgba(255, 255, 255, 0.58); }
.marquee__item { color: var(--ink-soft); }

/* Small brand-coloured labels use the darker ramp */
.plant-card__tag,
.mix-tag,
.capability-tags .mix-tag,
.ss-link,
a.secondary-service .ss-link,
.cf-field label span,
.cf-success a,
.projects-empty a,
.plant-map__note a,
.footer-badge-text,
.result-label,
.service-spec { color: var(--brand-ink-sm); }
.builder-stat-item .stat-number { color: var(--brand-ink-sm) !important; }
.capability-tags .mix-tag { border-color: rgba(173, 69, 10, 0.26); }

/* ---------------------------------------------------------------
   16. AA CONTRAST — brand colour ramps for small text and buttons
   #F97316 gives 2.5:1 behind white text and 3.6:1 as label colour,
   so small text and filled buttons move one step down the ramp.
   --------------------------------------------------------------- */
:root {
  --ink-faint: #666259;
  --brand-ink-sm: #AD450A;
  --brand-btn: #C2410C;
  --brand-btn-hover: #A8380A;
}

/* Filled buttons: 4.6:1 behind white */
.btn-primary,
.project-filter.is-active,
.skip-link {
  background: var(--brand-btn);
  border-color: var(--brand-btn);
}
.btn-primary:hover,
.project-filter.is-active:hover {
  background: var(--brand-btn-hover);
  border-color: var(--brand-btn-hover);
}

/* Small brand-coloured text */
.nav-links a.active,
.trust-pill.brand,
.trust-pill,
.material-step__number,
.quote-attribution,
.stats-label,
.stat-unit,
.spot-num-unit,
.eco-badge,
.wastage-val,
.plant-card__tag,
.service-spec,
.stat-label,
.footer-badge-text,
.spot-label,
.ss-link,
.mix-tag,
.plant-map__note a,
.cf-field label span { color: var(--brand-ink-sm); }

.stats-row .stat-num .stat-unit,
.services .stat-number,
.stat-card .stat-number { color: var(--brand-ink-sm) !important; }

/* Footer badges sit on the dark panel — lighten instead */
.site-footer .footer-badge-text { color: rgba(255, 255, 255, 0.72); }
.site-footer .footer-dispatch-text { color: #FFC28A; }

/* Page-level overrides that out-specify the base rules */
.editorial-quote .quote-attribution,
.about-stats .stats-head .stats-label,
.eco-spotlight .spot-num .spot-num-unit,
.wastage-current .wastage-val,
.section-header .eyebrow,
.material-story__header .eyebrow { color: var(--brand-ink-sm); }

/* Home hero eyebrow sits on photography — treat it like the inner-page heroes */
.cinematic-hero .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cinematic-hero .eyebrow::before { box-shadow: 0 0 10px rgba(249, 115, 22, 0.8); }

/* ================================================================
   17. IMAGE-FREE LAYOUTS
   Photography is now used only on the Home hero and the Contact
   band. Everywhere else the visual weight comes from engineered
   panels: graphite surfaces, blueprint grid, monospace data rows.
   ================================================================ */

/* ---- Inner heroes without a photo ---- */
.inner-hero--plain {
  background:
    radial-gradient(120% 140% at 12% 8%, rgba(249, 115, 22, 0.16), transparent 58%),
    radial-gradient(90% 120% at 88% 100%, rgba(249, 115, 22, 0.07), transparent 60%),
    linear-gradient(155deg, #1B1D21 0%, #121316 48%, #0C0D0F 100%);
  min-height: min(62vh, 620px);
}
.inner-hero--plain .inner-hero__shade { display: none; }
.inner-hero--plain .blueprint {
  opacity: 0.85;
  mask-image: radial-gradient(130% 110% at 10% 20%, #000 0%, rgba(0,0,0,0.45) 55%, transparent 88%);
  -webkit-mask-image: radial-gradient(130% 110% at 10% 20%, #000 0%, rgba(0,0,0,0.45) 55%, transparent 88%);
}
.inner-hero--plain::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, var(--brand) 0%, rgba(249, 115, 22, 0.15) 38%, transparent 72%);
}
.inner-hero--plain .inner-hero__content { padding-top: 132px; }

/* ---- Contact: half-height photo band ---- */
.inner-hero--half { min-height: min(46vh, 430px); }
.inner-hero--half .inner-hero__content { padding-top: 116px; padding-bottom: 42px; }
.inner-hero--half .inner-hero__title { font-size: clamp(34px, 4.4vw, 60px); margin-bottom: 16px; }
.inner-hero--half .inner-hero__sub { font-size: clamp(14px, 1.1vw, 16px); margin-bottom: 24px; max-width: 520px; }
.inner-hero--half .inner-hero__bg { object-position: center 62%; }
@media (max-width: 768px) {
  .inner-hero--half { min-height: auto; }
  .inner-hero--half .inner-hero__content { padding-top: 104px; padding-bottom: 36px; }
}

/* ---- Calculator hero keeps its dark plate ---- */
.calc-hero { background: linear-gradient(158deg, #1B1D21 0%, #121316 52%, #0B0C0E 100%); }
.calc-hero .blueprint { opacity: 0.75; }

/* ---- Engineered data panel (replaces photos beside body copy) ---- */
.panel-graphic {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-xl);
  padding: 38px 34px 34px;
  color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(249, 115, 22, 0.14), transparent 58%),
    linear-gradient(155deg, #1D1F23 0%, #141518 55%, #0E0F11 100%);
  box-shadow: var(--e3);
}
.panel-graphic .blueprint {
  opacity: 0.7;
  z-index: -1;
  mask-image: radial-gradient(120% 110% at 85% 0%, #000 0%, rgba(0,0,0,0.3) 60%, transparent 90%);
  -webkit-mask-image: radial-gradient(120% 110% at 85% 0%, #000 0%, rgba(0,0,0,0.3) 60%, transparent 90%);
}
.panel-graphic.tick-frame::before,
.panel-graphic.tick-frame::after { border-color: var(--hero-ink); }
.panel-label {
  display: block;
  font: 700 9.5px/1 var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}
.panel-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.9vw, 40px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #FAF8F3;
  margin-bottom: 26px;
}
.panel-rows { display: grid; }
.panel-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.panel-row:first-child { border-top: 0; padding-top: 0; }
.panel-row__k {
  font: 600 10.5px/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  flex-shrink: 0;
}
.panel-row__v {
  font-size: 15.5px;
  font-weight: 600;
  color: #FAF8F3;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.panel-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

/* ---- Services: primary service plate ---- */
.primary-service--plate {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-xl);
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding: 34px;
  color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(110% 120% at 0% 0%, rgba(249, 115, 22, 0.16), transparent 58%),
    linear-gradient(155deg, #1D1F23 0%, #141518 55%, #0E0F11 100%);
  box-shadow: var(--e3);
}
.primary-service--plate .blueprint { opacity: 0.7; z-index: -1; }
.primary-service--plate .plate-index {
  position: absolute;
  top: 18px;
  right: 26px;
  font-family: var(--font-display);
  font-size: clamp(72px, 9vw, 128px);
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.07);
  letter-spacing: -0.04em;
  pointer-events: none;
}
.primary-service--plate .plate-body { width: 100%; }
.primary-service--plate .plate-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  color: #FAF8F3;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.primary-service--plate .panel-row { padding: 11px 0; }

/* ---- Projects: text-only spec plates ---- */
.project-plate {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(249, 115, 22, 0.13), transparent 60%),
    linear-gradient(158deg, #1D1F23 0%, #141518 58%, #0D0E10 100%);
  height: clamp(230px, 22vw, 300px) !important;
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s var(--ease-smooth), border-color 0.35s;
}
.project-plate .blueprint { opacity: 0.6; z-index: -1; }
.project-plate:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.35) !important;
  box-shadow: var(--e3);
}
.project-plate__body {
  position: relative;
  width: 100%;
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-plate .project-item__number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--hero-ink) !important;
  margin-bottom: 4px;
}
.project-plate .project-item__title {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.9vw, 25px);
  font-weight: 700;
  color: #FAF8F3;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}
.project-plate .project-item__meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 6px;
}
.project-plate .project-tags { opacity: 1; transform: none; }
.project-plate .mix-tag {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82) !important;
}
@media (max-width: 640px) {
  .projects-masonry .project-plate { height: auto !important; min-height: 210px; }
}

/* ---- About: quote runs full width without its photo ---- */
.editorial-quote--wide { grid-template-columns: 1fr !important; }
.editorial-quote--wide .quote-content { max-width: 62ch; }
.editorial-quote--wide .quote-text { font-size: clamp(20px, 2.2vw, 30px); }

/* Contact band: the photo is busy on the left, so shift the framing and
   deepen the scrim behind the headline. */
.inner-hero--half .inner-hero__bg { object-position: 74% 52%; }
.inner-hero--half .inner-hero__shade {
  background:
    linear-gradient(90deg, rgba(8,9,11,0.94) 0%, rgba(8,9,11,0.8) 34%, rgba(8,9,11,0.42) 62%, rgba(8,9,11,0.12) 100%),
    linear-gradient(0deg, rgba(8,9,11,0.72) 0%, rgba(8,9,11,0) 60%),
    linear-gradient(180deg, rgba(8,9,11,0.6) 0%, rgba(8,9,11,0) 30%);
}
@media (max-width: 768px) {
  .inner-hero--half .inner-hero__shade {
    background: linear-gradient(0deg, rgba(8,9,11,0.95) 0%, rgba(8,9,11,0.7) 55%, rgba(8,9,11,0.5) 100%);
  }
}

/* ================================================================
   18. ENGRAVED MAIN HEADINGS
   A shallow carve, not an extrusion: a lit top edge, a short step
   down-right and a soft cast shadow. Enough relief to feel cut into
   the surface, without a slab that competes with the words.
   ================================================================ */
.hero-title,
.inner-hero__title,
.calc-hero__title,
.engraved-title {
  color: #FBF8F1;
  letter-spacing: -0.035em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.26),
    0 -1px 0 rgba(0, 0, 0, 0.42),
    1px 2px 0 rgba(0, 0, 0, 0.40),
    2px 4px 0 rgba(0, 0, 0, 0.28),
    3px 6px 0 rgba(0, 0, 0, 0.18),
    4px 8px 0 rgba(0, 0, 0, 0.10),
    5px 11px 16px rgba(0, 0, 0, 0.55),
    0 22px 54px rgba(0, 0, 0, 0.42);
  -webkit-text-fill-color: currentColor;
}

.hero-title .engraved-heading,
.inner-hero__title .engraved-heading,
.calc-hero__title .engraved-heading,
.engraved-title .engraved-heading {
  color: #FB8A3C !important;
  text-shadow:
    0 1px 0 rgba(255, 214, 170, 0.34),
    0 -1px 0 rgba(74, 28, 2, 0.5),
    1px 2px 0 rgba(84, 32, 3, 0.62),
    2px 4px 0 rgba(84, 32, 3, 0.46),
    3px 6px 0 rgba(84, 32, 3, 0.3),
    4px 8px 0 rgba(84, 32, 3, 0.16),
    5px 11px 16px rgba(0, 0, 0, 0.5),
    0 20px 46px rgba(0, 0, 0, 0.38);
}

/* Section headings on ivory */
.section-header h2,
.material-heading,
.intro-heading,
.editorial-statement h2,
.primary-text h2,
.cta-title,
.cta-card h2 {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 -1px 0 rgba(26, 24, 20, 0.07),
    1px 2px 0 rgba(26, 24, 20, 0.05),
    2px 4px 6px rgba(26, 24, 20, 0.07);
}
.section-header h2 .engraved-heading,
.material-heading .engraved-heading,
.intro-heading .engraved-heading,
.editorial-statement h2 .engraved-heading,
.primary-text h2 .engraved-heading,
.cta-card h2 .engraved-heading {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8),
    1px 2px 0 rgba(120, 48, 6, 0.16),
    2px 4px 7px rgba(120, 48, 6, 0.14);
}

/* Headings on the dark plates */
.panel-title,
.primary-service--plate .plate-title,
.spec-cell__value,
.project-plate .project-item__title {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14),
    0 -1px 0 rgba(0, 0, 0, 0.45),
    1px 2px 0 rgba(0, 0, 0, 0.32),
    2px 4px 8px rgba(0, 0, 0, 0.42);
}
.spec-cell__value em { color: var(--hero-ink); }

@media (max-width: 560px) {
  .hero-title, .inner-hero__title, .calc-hero__title, .engraved-title {
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.22),
      1px 2px 0 rgba(0, 0, 0, 0.38),
      2px 4px 0 rgba(0, 0, 0, 0.22),
      3px 7px 12px rgba(0, 0, 0, 0.5);
  }
}

/* ================================================================
   19. LANDMARK PROJECTS + CLIENT STRIP
   ================================================================ */
.projects-masonry--flagship { grid-template-columns: repeat(2, 1fr) !important; }
.projects-masonry--flagship > .project-item { grid-column: span 1 !important; }
.projects-masonry--flagship > .project-item:first-child { grid-column: 1 / -1 !important; }
.projects-masonry--flagship .project-plate { height: auto !important; min-height: 320px; }
.projects-masonry--flagship .project-plate--featured { min-height: 380px; }
.project-plate--featured .project-item__title { font-size: clamp(26px, 3.2vw, 40px); }
.project-plate--featured .project-plate__body { max-width: 760px; padding: 36px 36px 32px; }

.project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 10px 0 4px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.project-facts dt {
  font: 700 9.5px/1.3 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}
.project-facts dd { margin: 0; font-size: 14.5px; font-weight: 600; color: #FAF8F3; line-height: 1.4; }
.project-note { font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, 0.66); margin: 8px 0 6px; max-width: 60ch; }
@media (max-width: 760px) {
  .projects-masonry--flagship { grid-template-columns: 1fr !important; }
  .project-facts { grid-template-columns: 1fr; gap: 12px; }
}

/* Client strip */
.client-strip { padding: 56px 0 0; background: var(--bg); border-top: 1px solid var(--hairline-soft); }
.client-strip__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 26px; }
.client-strip__title { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; color: var(--ink); }
.marquee--clients { padding: 26px 0; background: var(--bg-elevated); }
.marquee--clients .marquee__track { animation-duration: 48s; }
.marquee--clients .marquee__item {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ink-soft);
  padding: 0 34px;
  transition: color 0.3s var(--ease-smooth);
}
.marquee--clients .marquee__item:hover { color: var(--brand-ink-sm); }
.marquee--clients .marquee__item::after { width: 6px; height: 6px; opacity: 0.7; margin-left: 34px; }

/* ---------- Language switch (both versions) ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(26, 26, 24, 0.14);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font: 700 14px/1 "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  text-decoration: none;
  transition: border-color 0.25s var(--ease-smooth), color 0.25s var(--ease-smooth), background 0.25s var(--ease-smooth);
}
.lang-switch[lang="ar"] { font-size: 18px; padding-bottom: 3px; }
.lang-switch:hover { border-color: var(--brand); color: var(--brand-ink-sm); background: #fff; }

/* Nav logo: the lockup is ~6:1, so size it by height with enough specificity to win */
.nav-logo .nav-logo-img { height: 46px; width: auto; max-width: none; }
@media (max-width: 1100px) { .nav-logo .nav-logo-img { height: 40px; } }
@media (max-width: 900px)  { .nav-logo .nav-logo-img { height: 34px; } }
@media (max-width: 480px)  { .nav-logo .nav-logo-img { height: 28px; } }
@media (max-width: 360px)  { .nav-logo .nav-logo-img { height: 24px; } }
@media (max-width: 480px) {
  .nav-right { gap: 8px; }
  .lang-switch { min-width: 38px; height: 36px; }
  .menu-btn { width: 40px; height: 40px; }
}


/* Contact panel — keep email addresses on one line on small phones */
.direct-row[href^="mailto:"] .direct-value { white-space: nowrap; }
@media (max-width: 480px) {
  .direct-row[href^="mailto:"] .direct-value { font-size: 14.5px; }
  .contact-direct .direct-text { min-width: 0; }
}

/* Contact panel — plant address row (Arabic-friendly, not forced LTR) */
.direct-place { display: block; font-size: 15px; font-weight: 600; color: #FAF8F3; line-height: 1.4; }
.direct-row:hover .direct-place { color: #fff; }

/* Contact — single plant site card (both plants share one site) */
.plant-grid--single { grid-template-columns: 1fr; }
.plant-card--site { display: flex; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
.plant-card--site .plant-card__body { flex: 1 1 auto; min-width: 0; }
.plant-card--site p { max-width: 62ch; }
.plant-card--site .plant-card__meta { margin-bottom: 0; }
.plant-card__actions { display: flex; flex-direction: column; gap: 10px; flex: 0 0 auto; }
.plant-card__actions .btn { justify-content: center; }
@media (max-width: 760px) {
  .plant-card--site { flex-direction: column; align-items: stretch; gap: 22px; }
  .plant-card__actions { flex-direction: row; flex-wrap: wrap; }
  .plant-card__actions .btn { flex: 1 1 180px; }
}

/* ================================================================
   20. PROJECT PHOTO PLATES (v6) — real photography behind the spec plate
   ================================================================ */
.project-plate--photo { background: #0D0E10; }
.projects-masonry--flagship .project-plate--photo { min-height: 440px; }
.projects-masonry--flagship .project-plate--featured.project-plate--photo { min-height: 520px; }
.project-plate__photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out-expo), filter 0.6s var(--ease-smooth);
  filter: saturate(0.92) contrast(1.04);
}
.project-plate__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13,14,16,0.10) 0%, rgba(13,14,16,0.28) 38%, rgba(13,14,16,0.86) 72%, rgba(13,14,16,0.96) 100%),
    radial-gradient(120% 90% at 100% 0%, rgba(249,115,22,0.16), transparent 55%);
}
.project-plate--photo:hover .project-plate__photo { transform: scale(1.07); filter: saturate(1.02) contrast(1.06); }
.project-plate--photo .project-facts { border-color: rgba(255,255,255,0.16); }
.photo-credit {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  max-width: calc(100% - 28px);
  font-size: 10px; line-height: 1.4; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.78);
  background: rgba(13,14,16,0.52);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 4px 9px; border-radius: 999px;
  opacity: 0.72; transition: opacity 0.3s;
}
.photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.project-plate--photo:hover .photo-credit, .photo-credit:focus-within { opacity: 1; }
[dir="rtl"] .photo-credit { right: auto; left: 14px; }
[dir="rtl"] .project-plate__shade {
  background:
    linear-gradient(180deg, rgba(13,14,16,0.10) 0%, rgba(13,14,16,0.28) 38%, rgba(13,14,16,0.86) 72%, rgba(13,14,16,0.96) 100%),
    radial-gradient(120% 90% at 0% 0%, rgba(249,115,22,0.16), transparent 55%);
}
@media (max-width: 640px) {
  .projects-masonry--flagship .project-plate--photo { min-height: 460px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-plate__photo, .project-plate--photo:hover .project-plate__photo { transition: none; transform: none; }
}

/* ---- 20b. Featured split plate: full image (never cropped) beside the text ---- */
.projects-masonry--flagship .project-plate--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas: "body figure";
  align-items: stretch;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}
.project-plate--split .blueprint { display: none; }
.project-plate--split .project-plate__body { grid-area: body; align-self: end; max-width: none; }
.project-plate__figure {
  grid-area: figure;
  margin: 0;
  padding: 18px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 70% 30%, rgba(249,115,22,0.10), transparent 60%);
}
.project-plate__figure img {
  display: block; width: 100%; height: auto;
  border-radius: calc(var(--radius-lg) - 6px);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
  transition: transform 0.9s var(--ease-out-expo);
}
.project-plate--split:hover .project-plate__figure img { transform: scale(1.015); filter: none; }
.project-plate__figure img { position: static !important; object-fit: contain; }
@media (max-width: 900px) {
  .projects-masonry--flagship .project-plate--split {
    grid-template-columns: 1fr;
    grid-template-areas: "figure" "body";
  }
  .project-plate__figure { padding: 12px 12px 0; }
  .project-plate--featured.project-plate--split .project-plate__body { padding: 22px 22px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-plate__figure img, .project-plate--split:hover .project-plate__figure img { transition: none; transform: none; }
}

/* ---- 21. Calculator hero: stack headline + calculator on tablets/phones (v9) ---- */
@media (max-width: 960px) {
  .calc-hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
  }
  .calc-hero__inner,
  .calc-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 680px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  .calc-hero__inner { padding-bottom: 28px; }
  .calc-card { padding-bottom: 56px; }
  .calc-form-panel, .calc-result-card { min-width: 0; max-width: 100%; }
  .calc-form, .calc-inputs { min-width: 0; }
  .calc-form select, .calc-form input { max-width: 100%; min-width: 0; }
}
@media (max-width: 640px) {
  /* result card sat inside two stacked side paddings (container + inner) — use one */
  .calc-result-inner { padding-left: 0; padding-right: 0; padding-bottom: 48px; }
  .result-row { gap: 12px; }
  .result-row > :first-child { flex: 1 1 45%; min-width: 0; }
  .result-row > :last-child { flex: 1 1 55%; min-width: 0; text-align: right; }
  [dir="rtl"] .result-row > :last-child { text-align: left; }
}
