/* ==========================================================================
   METALYOL — Premium Industrial Website
   ========================================================================== */

:root {
  --bg-0: #0a0b0d;
  --bg-1: #0f1115;
  --bg-2: #15181e;
  --bg-3: #1c2027;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);

  --steel-100: #e3e7ed;
  --steel-200: #c2c9d3;
  --steel-300: #9aa3b0;
  --steel-400: #6b7382;
  --steel-500: #444a55;

  --ember: #af0f0f;
  --ember-2: #d52828;
  --ember-soft: rgba(175, 15, 15, .14);

  --txt: #eef1f5;
  --txt-mute: #9aa3b0;
  --txt-dim: #6b7382;

  --grad-ember: linear-gradient(135deg, #af0f0f 0%, #d52828 100%);
  --shadow-glow: 0 0 0 1px rgba(175, 15, 15, .45), 0 20px 60px -10px rgba(175, 15, 15, .4);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;

  --ff-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
}

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

html,
body {
  margin: 0;
  padding: 0
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

/* Respect users who turn down motion — kill long-running and
   parallax animations, but keep instant transitions for state changes. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .15s !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}

/* Keyboard-only focus ring — hidden for mouse clicks */
:focus-visible {
  outline: 2px solid var(--ember-2);
  outline-offset: 3px;
  border-radius: 3px;
}

.btn:focus-visible,
.nav__menu a:focus-visible,
.hero__service:focus-visible,
.op-card:focus-visible,
.footer__social a:focus-visible {
  outline-offset: 4px;
}

body {
  background: var(--bg-0);
  color: var(--txt);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

body.lock {
  overflow: hidden;
  height: 100vh
}

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

a {
  color: inherit;
  text-decoration: none
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer
}

::selection {
  background: var(--ember);
  color: #0a0b0d
}

/* ---------- Magnetic cursor (desktop only) ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ember);
  pointer-events: none;
  z-index: 9998;
  transform: translate3d(-50%, -50%, 0);
  transition:
    width .3s cubic-bezier(.2, .8, .2, 1),
    height .3s cubic-bezier(.2, .8, .2, 1),
    background .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  will-change: transform, width, height;
}

.cursor.is-hover {
  width: 44px;
  height: 44px;
  background: transparent;
  border-color: var(--ember);
  box-shadow: 0 0 18px rgba(175, 15, 15, .55);
}

.cursor.is-down {
  transform: translate3d(-50%, -50%, 0) scale(.8);
}

@media (max-width: 900px), (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter)
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--txt-mute);
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--ember);
  box-shadow: 0 0 8px rgba(175, 15, 15, .6);
}

.eyebrow::after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--ember);
  margin-left: -4px;
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(175, 15, 15, .6);
}

.section {
  padding: clamp(72px, 8vw, 120px) 0;
  position: relative
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
  max-width: 780px
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-items: center
}

.section-head h2 {
  font-family: var(--ff-display);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

.section-head p {
  color: var(--txt-mute);
  font-size: 18px;
  max-width: 62ch;
  margin: 0;
  text-wrap: pretty
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn > * {
  position: relative;
  z-index: 2;
}

.btn i {
  transition: transform .25s ease;
  position: relative;
  z-index: 2;
}

.btn:hover i {
  transform: translateX(4px)
}

.btn-primary {
  background: var(--grad-ember);
  color: #fff
}

/* Slide-fill highlight sweep on primary buttons */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .25) 50%, transparent 100%);
  transform: translateX(-110%) skewX(-12deg);
  transition: transform .7s cubic-bezier(.4, 0, .2, 1);
  z-index: 1;
}

.btn-primary:hover::after {
  transform: translateX(110%) skewX(-12deg);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px)
}

.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--txt);
  background: rgba(255, 255, 255, .02);
}

/* Slide-fill ember on ghost buttons */
.btn-ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  z-index: 1;
}

.btn-ghost:hover::after {
  transform: scaleX(1);
}

.btn-ghost:hover {
  border-color: var(--ember);
  color: #fff;
  transform: translateY(-2px)
}

/* ==========================================================================
   PRELOADER — Metalyol scan-line loader
   Industrial intro: a vertical scan line wipes across the logo (left to
   right), revealing the real wordmark from a faint ghost. Sparks emit at
   the scan position, the hexagon flashes when the scan crosses it, and
   three service cards activate in sequence (Trading → Fabrication →
   Construction). Total runtime: 7 seconds.
   ========================================================================== */
.loader-stage {
  --bg: #0a0a0c;
  --ink: #f4f4f1;
  --ink-dim: #8a8a86;
  --ink-mute: #46464a;
  --red: #c8242c;
  --red-bright: #e63946;
  --grid: rgba(255, 255, 255, .04);
  --grid-strong: rgba(255, 255, 255, .07);
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(ellipse 90% 60% at 50% 50%, #16161a 0%, #0a0a0c 55%, #050506 100%),
    var(--bg);
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  overflow: hidden;
  will-change: transform, opacity;
}

.loader-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 50%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 50%, #000 30%, transparent 80%);
  opacity: .9;
}

.loader-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px);
  background-size: 240px 240px;
  -webkit-mask-image: radial-gradient(ellipse 50% 40% at 50% 50%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 50% 40% at 50% 50%, #000 10%, transparent 70%);
}

.loader-grain {
  position: absolute;
  inset: -50%;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .3;
  mix-blend-mode: overlay;
  animation: loader-grain 1.6s steps(6) infinite;
}

@keyframes loader-grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -2%); }
  60%  { transform: translate(-1%, 1%); }
  80%  { transform: translate(2%, 2%); }
  100% { transform: translate(0, 0); }
}

.loader-crosshair {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, .18);
}

.loader-crosshair::before,
.loader-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, .18);
}

.loader-crosshair::before { left: 50%; top: -6px; width: 1px; height: 34px; transform: translateX(-50%); }
.loader-crosshair::after  { top: 50%; left: -6px; height: 1px; width: 34px; transform: translateY(-50%); }

.loader-ch-tl { top: 32px; left: 32px; }
.loader-ch-tr { top: 32px; right: 32px; }
.loader-ch-bl { bottom: 32px; left: 32px; }
.loader-ch-br { bottom: 32px; right: 32px; }

/* HUD top */
.loader-hud-top {
  position: absolute;
  top: 32px;
  left: 64px;
  right: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.loader-sys { display: flex; gap: 18px; align-items: center; }

.loader-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: loader-led 1.2s ease-in-out infinite;
}

@keyframes loader-led {
  50% { opacity: .35; }
}

.loader-coords { display: flex; gap: 24px; }

/* Logo zone — moved up + slightly smaller so the wordmark and the
   service cards never collide on shorter viewports */
.loader-logo-zone {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  width: min(70vw, 800px);
  aspect-ratio: 866 / 288;
}

.loader-logo {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.loader-logo-ghost {
  opacity: .06;
  filter: blur(.4px);
}

.loader-logo-real {
  opacity: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 var(--rev, 0%), transparent calc(var(--rev, 0%) + 6%));
          mask-image: linear-gradient(90deg, #000 0%, #000 var(--rev, 0%), transparent calc(var(--rev, 0%) + 6%));
  animation: loader-real-in .4s ease-out .2s forwards;
}

@keyframes loader-real-in {
  to { opacity: 1; }
}

.loader-logo-bright {
  opacity: 0;
  filter: brightness(1.6) drop-shadow(0 0 18px rgba(255, 170, 80, .5));
  -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--rev, 0%) - 8%), #000 calc(var(--rev, 0%) - 4%), #000 var(--rev, 0%), transparent calc(var(--rev, 0%) + 4%));
          mask-image: linear-gradient(90deg, transparent calc(var(--rev, 0%) - 8%), #000 calc(var(--rev, 0%) - 4%), #000 var(--rev, 0%), transparent calc(var(--rev, 0%) + 4%));
  animation: loader-real-in .3s ease-out .2s forwards;
}

.loader-scan-line {
  position: absolute;
  top: -6%;
  bottom: -6%;
  left: var(--rev, 0%);
  width: 2px;
  background: linear-gradient(180deg, transparent, #fff 18%, var(--red-bright) 50%, #fff 82%, transparent);
  box-shadow:
    0 0 18px rgba(255, 180, 90, .9),
    0 0 36px rgba(230, 57, 70, .7),
    0 0 80px rgba(230, 57, 70, .4);
  opacity: 0;
  transform: translateX(-1px);
  pointer-events: none;
}

.loader-scan-line.is-on  { opacity: 1; }
.loader-scan-line.is-off { opacity: 0; transition: opacity .35s ease; }

.loader-scan-halo {
  position: absolute;
  top: 50%;
  left: var(--rev, 0%);
  width: 120px;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 160, 70, .35), rgba(230, 57, 70, .18) 40%, transparent 70%);
  filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.loader-scan-halo.is-on  { opacity: 1; }
.loader-scan-halo.is-off { opacity: 0; transition: opacity .5s ease; }

.loader-sparks {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  overflow: visible;
}

.loader-spark {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #ffd28a;
  box-shadow: 0 0 6px #ffb347, 0 0 14px rgba(255, 140, 40, .6);
  opacity: 0;
  animation: loader-spark 1.1s ease-out forwards;
}

@keyframes loader-spark {
  0%   { opacity: 0; transform: translate(0, 0) scale(.3); }
  8%   { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(.2); }
}

.loader-hex-flash {
  position: absolute;
  left: 70%;
  top: 50%;
  width: 18%;
  aspect-ratio: 1/1;
  transform: translate(-50%, -50%) scale(.6);
  background: radial-gradient(circle, rgba(255, 220, 160, .95) 0%, rgba(230, 57, 70, .7) 35%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  mix-blend-mode: screen;
  filter: blur(2px);
  pointer-events: none;
}

.loader-hex-flash.is-on {
  animation: loader-hex-flash 1.1s cubic-bezier(.2, .8, .2, 1) forwards;
}

@keyframes loader-hex-flash {
  0%   { opacity: 0;  transform: translate(-50%, -50%) scale(.4); }
  20%  { opacity: 1;  transform: translate(-50%, -50%) scale(1.1); }
  60%  { opacity: .6; transform: translate(-50%, -50%) scale(1.6); }
  100% { opacity: 0;  transform: translate(-50%, -50%) scale(2.2); }
}

.loader-weld-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 46%, rgba(255, 200, 140, .55), transparent 28%);
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

.loader-weld-flash.is-on { animation: loader-weld 1.2s ease-out forwards; }

@keyframes loader-weld {
  0%   { opacity: 0; }
  10%  { opacity: .85; }
  18%  { opacity: .1; }
  25%  { opacity: .6; }
  32%  { opacity: .05; }
  45%  { opacity: .4; }
  60%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Tagline — sits BELOW the logo zone with a clear gap.
   Half-height = (full width × 288/866) ÷ 2 ≈ width × 0.166 — that's why
   we use full logo width (not half) × 0.166 here. */
.loader-tagline {
  position: absolute;
  left: 50%;
  top: calc(38% + min(70vw, 800px) * .166 + 28px);
  transform: translateX(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .5em;
  color: var(--ink-dim);
  text-transform: uppercase;
  opacity: 0;
  white-space: nowrap;
}

.loader-tagline.is-on { animation: loader-fade-up .8s ease-out forwards; }

@keyframes loader-fade-up {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.loader-dash {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--ink-mute);
  vertical-align: middle;
  margin: 0 14px;
}

/* Services — slightly more compact + lower so they don't crowd the logo */
.loader-services {
  position: absolute;
  left: 64px;
  right: 64px;
  bottom: 88px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.loader-svc {
  position: relative;
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  opacity: .32;
  transition: opacity .5s ease, border-color .5s ease, background .5s ease;
}

.loader-svc.is-active {
  opacity: 1;
  border-top-color: var(--red);
  background: linear-gradient(180deg, rgba(200, 36, 44, .06) 0%, transparent 100%);
}

.loader-svc.is-done { opacity: .55; }

.loader-svc-num {
  font-family: "Anton", "Barlow Condensed", sans-serif;
  font-size: 60px;
  line-height: .85;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(255, 255, 255, .35);
  letter-spacing: .02em;
  transition: color .4s ease, -webkit-text-stroke .4s ease;
}

.loader-svc.is-active .loader-svc-num {
  color: var(--ink);
  -webkit-text-stroke: 0;
}

.loader-svc.is-done .loader-svc-num {
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(255, 255, 255, .55);
}

.loader-svc-num small {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--ink-dim);
  margin-left: 10px;
  vertical-align: top;
  -webkit-text-stroke: 0;
}

/* The single service name — was previously cat + ttl + desc */
.loader-svc-name {
  margin-top: 14px;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .4s ease;
}

.loader-svc.is-done .loader-svc-name { color: var(--ink-dim); }

.loader-svc-bar {
  position: absolute;
  left: 0;
  top: -1px;
  height: 2px;
  width: 0%;
  background: var(--red);
  transition: width .25s linear;
  box-shadow: 0 0 12px rgba(200, 36, 44, .5);
}

.loader-svc-ticks {
  position: absolute;
  right: 22px;
  top: 24px;
  display: flex;
  gap: 4px;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: var(--ink-mute);
  letter-spacing: .18em;
}

.loader-svc-ticks i {
  display: block;
  width: 2px;
  height: 10px;
  background: var(--ink-mute);
}

.loader-svc.is-active .loader-svc-ticks i { background: var(--red); }

/* HUD bottom */
.loader-hud-bot {
  position: absolute;
  left: 64px;
  right: 64px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.loader-track {
  position: relative;
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.loader-track-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--ink);
  box-shadow: 0 0 12px rgba(255, 255, 255, .4);
  transition: width .12s linear;
}

.loader-track-mark {
  position: absolute;
  top: -3px;
  width: 1px;
  height: 8px;
  background: var(--red);
  transition: left .12s linear;
}

.loader-pct {
  min-width: 54px;
  text-align: right;
  color: var(--ink);
}

.loader-load-label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 280px;
}

/* End state — fade peripherals, slide stage off, then hide */
.loader-stage.is-done .loader-services,
.loader-stage.is-done .loader-hud-bot,
.loader-stage.is-done .loader-hud-top,
.loader-stage.is-done .loader-crosshair,
.loader-stage.is-done .loader-tagline {
  transition: opacity .6s ease;
  opacity: 0;
  pointer-events: none;
}

.loader-stage.is-done .loader-logo-zone {
  transition: top 1s cubic-bezier(.7, 0, .2, 1);
  top: 50%;
}

.loader-stage.is-finishing {
  transform: translateY(-100%);
  transition: transform .6s cubic-bezier(.65, 0, .35, 1);
}

/* ---- Short screens: shrink the cards so they never reach the logo --- */
@media (max-height: 760px) {
  .loader-services { bottom: 76px; }
  .loader-svc-num  { font-size: 52px; }
  .loader-svc-name { margin-top: 10px; font-size: 19px; }
}

@media (max-height: 620px) {
  .loader-tagline { display: none; }
  .loader-svc-num  { font-size: 42px; }
  .loader-svc-name { margin-top: 8px; font-size: 16px; }
  .loader-services { bottom: 64px; }
}

/* ---- Mobile width ------------------------------------------------------- */
@media (max-width: 820px) {
  .loader-services {
    grid-template-columns: 1fr;
    gap: 8px;
    bottom: 24px;
    left: 16px;
    right: 16px;
  }
  .loader-svc { padding: 12px 14px 14px; }
  .loader-svc-num  { font-size: 40px; }
  .loader-svc-name { margin-top: 6px; font-size: 16px; }
  .loader-svc-ticks { display: none; }
  .loader-hud-top, .loader-hud-bot { left: 16px; right: 16px; }
  .loader-crosshair { display: none; }
  .loader-load-label { min-width: 0; }
  .loader-logo-zone { top: 28%; width: 86vw; }
  /* Tagline below logo bottom = 28% + 86vw * 0.166 + gap */
  .loader-tagline {
    top: calc(28% + 86vw * .166 + 18px);
    font-size: 9px;
    letter-spacing: .4em;
  }
  .loader-dash { width: 16px; margin: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .loader-grain, .loader-led { animation: none; }
  .loader-spark { display: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .35s ease, padding .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  padding: 14px var(--gutter);
  background: rgba(10, 11, 13, .7);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .02em;
}

.nav__logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: transform .3s ease;
}

.nav__logo:hover .nav__logo-img {
  transform: scale(1.04)
}

.footer__brand .nav__logo-img {
  height: 120px
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 6px
}

.nav__menu a {
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--steel-200);
  transition: color .2s ease;
  position: relative;
}

.nav__menu a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.nav__menu a:hover,
.nav__menu a.active {
  color: var(--txt)
}

.nav__menu a:hover::after,
.nav__menu a.active::after {
  transform: scaleX(1);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 14px
}

/* The drawer CTA only renders inside the mobile menu — desktop hides it. */
.nav__menu-cta {
  display: none;
}

.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--txt);
  transition: transform .3s ease, opacity .3s ease
}

.nav.open .nav__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.nav.open .nav__burger span:nth-child(2) {
  opacity: 0
}

.nav.open .nav__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(112px, 14vw, 140px) 0 64px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 100%, rgba(175, 15, 15, .22) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 0%, rgba(80, 120, 180, .08) 0%, transparent 60%),
    linear-gradient(180deg, #0a0b0d 0%, #0f1115 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .4;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__scene-layer {
  will-change: transform;
}

.hero__scene-spark .hero__spark-core {
  filter: drop-shadow(0 0 4px #ff8a3a) drop-shadow(0 0 12px rgba(255, 90, 30, .8));
  transform-box: fill-box;
  transform-origin: center;
  animation: heroSparkCore 2.6s ease-in-out infinite;
}

.hero__scene-spark .hero__spark-glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: heroSparkGlow 2.6s ease-in-out infinite;
}

@keyframes heroSparkCore {
  0%, 92%, 100% { opacity: 0; transform: scale(0); }
  6%            { opacity: 1; transform: scale(1.4); }
  20%           { opacity: .6; transform: scale(.8); }
}

@keyframes heroSparkGlow {
  0%, 92%, 100% { opacity: 0; transform: scale(.6); }
  6%            { opacity: .9; transform: scale(1.3); }
  30%           { opacity: .25; transform: scale(.9); }
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 2
}

.hero .container {
  position: relative;
  z-index: 3;
  width: 100%
}

.hero .eyebrow {
  margin-bottom: 18px
}

.hero__headline {
  font-family: var(--ff-display);
  font-size: clamp(40px, 6.8vw, 96px);
  line-height: .96;
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 0 0 22px;
  text-wrap: balance;
}

.hero__headline .line {
  display: block;
  overflow: hidden
}

.hero__headline .line span {
  display: inline-block
}

.hero__headline em {
  font-style: normal;
  background: var(--grad-ember);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--steel-200);
  margin: 0 0 36px;
}

/* === Hero 3-services row === */
.hero__services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 0 32px;
  max-width: 920px;
}

.hero__service {
  background: rgba(15, 17, 21, .7);
  backdrop-filter: blur(8px);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: background .3s ease, transform .3s ease;
}

.hero__service::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--grad-ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.hero__service:hover,
.hero__service.is-active {
  background: rgba(28, 32, 39, .85);
  transform: translateY(-4px)
}

.hero__service:hover::after,
.hero__service.is-active::after {
  transform: scaleX(1)
}

/* Auto-cycle active state — ember halo on the icon */
.hero__service.is-active::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 24px 80px, rgba(175, 15, 15, .22) 0%, transparent 55%);
  pointer-events: none;
  animation: heroServicePulse 3.5s ease-in-out infinite;
}

@keyframes heroServicePulse {
  0%, 100% { opacity: .6; }
  50%      { opacity: 1; }
}

.hero__service.is-active i {
  background: var(--grad-ember);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 22px -4px rgba(175, 15, 15, .55);
}

.hero__service-num {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--txt-dim);
  letter-spacing: .2em;
}

.hero__service i {
  font-size: 22px;
  color: var(--ember);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--ember-soft);
  border-radius: 8px;
}

.hero__service h3 {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -.01em;
}

.hero__service p {
  font-size: 13px;
  color: var(--txt-mute);
  margin: 0;
  line-height: 1.5;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  right: var(--gutter);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--txt-dim);
  letter-spacing: .25em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: .65;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--ember));
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: var(--ember);
  animation: scrollDown 2.4s ease-in-out infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateY(-100%)
  }

  100% {
    transform: translateY(330%)
  }
}

/* ==========================================================================
   SERVICES section
   ========================================================================== */
.services {
  background: var(--bg-1)
}

.services__grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.services__grid--three {
  grid-template-columns: repeat(3, 1fr)
}

.service {
  background: var(--bg-1);
  padding: 44px 32px;
  position: relative;
  overflow: hidden;
  transition: background .3s ease;
  cursor: pointer;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(175, 15, 15, .16) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.service:hover {
  background: var(--bg-2)
}

.service:hover::before {
  opacity: 1
}

/* Hard-edge corner bracket — industrial blueprint accent */
.service::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  transition: border-color .3s ease, width .3s ease, height .3s ease;
  pointer-events: none;
}

.service:hover::after {
  border-color: var(--ember);
  width: 22px;
  height: 22px;
}

.service__num {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--txt-dim);
  letter-spacing: .2em
}

.service__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .02);
  margin: 22px 0 28px;
  font-size: 20px;
  color: var(--ember);
  transition: border-color .3s ease, background .3s ease, transform .3s ease;
}

.service:hover .service__icon {
  border-color: var(--ember);
  background: var(--ember-soft);
  transform: translateY(-4px)
}

.service__title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 14px;
  letter-spacing: -.005em;
}

.service__desc {
  color: var(--txt-mute);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 22px;
  flex: 1
}

.service__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--steel-200);
  letter-spacing: .16em;
  text-transform: uppercase;
  align-self: flex-start;
  position: relative;
  padding-bottom: 4px;
  transition: color .3s ease;
}

.service__more::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.service:hover .service__more::before { transform: scaleX(1); }

.service__more i {
  transition: transform .3s ease
}

.service:hover .service__more {
  color: var(--ember)
}

.service:hover .service__more i {
  transform: translateX(6px)
}

/* Stats below services */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--line);
}

.stat {
  padding: 32px 24px 0 0;
  border-right: 1px solid var(--line);
  position: relative;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--ember);
  box-shadow: 0 0 8px rgba(175, 15, 15, .55);
}

.stat:last-child {
  border-right: 0
}

.stat__num {
  font-family: var(--ff-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  background: linear-gradient(180deg, #fff 0%, #888 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat__num sub {
  font-size: .5em;
  color: var(--ember);
  -webkit-text-fill-color: var(--ember);
  margin-left: 4px;
  vertical-align: baseline
}

.stat__label {
  display: block;
  margin-top: 10px;
  color: var(--txt-mute);
  font-size: 13px;
  letter-spacing: .06em
}

/* ==========================================================================
   PROJECTS — BLUEPRINT → REALITY
   ========================================================================== */
.projects {
  background: var(--bg-0);
  padding-bottom: 0
}

.projects .section-head {
  margin-bottom: 48px
}

.bp-stage {
  height: 420vh;
  /* extended scroll length for 3-act scrub: lines → fabrication → reality */
  position: relative;
}

/* Sticky stage sits BELOW the fixed nav so the bp__info title is never
   obscured by the header during scroll. --nav-h tracks the rendered nav
   height (set in JS) and falls back to 92px before the script runs. */
.bp-stage__inner {
  position: sticky;
  top: var(--nav-h, 92px);
  height: calc(100vh - var(--nav-h, 92px));
  display: grid;
  place-items: center;
  padding: 32px var(--gutter);
}

.bp {
  position: relative;
  width: 100%;
  max-width: min(1440px, 75vw);
  /* Cap height too — aspect-ratio + max-height keeps the bp inside the
     viewport even on shorter screens (laptops, tablets in landscape). */
  max-height: calc(100vh - var(--nav-h, 92px) - 64px);
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0c1722;
  /* deep blueprint navy */
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px var(--line) inset;
  transition: box-shadow .6s ease;
}

.bp.is-forging {
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, .8),
    0 0 0 1px rgba(255, 91, 31, .35) inset,
    0 0 80px -10px rgba(255, 91, 31, .35);
}

.bp.is-real {
  box-shadow:
    0 40px 90px -10px rgba(0, 0, 0, .9),
    0 0 0 1px rgba(175, 15, 15, .55) inset,
    0 0 120px -10px rgba(175, 15, 15, .35);
}

/* Scrim gradients above & below the bp container — guarantees the
   title and meta stay readable across blueprint, fabrication and photo
   phases. They sit above the reality/blueprint layers but below the info. */
.bp::before,
.bp::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 4;
  pointer-events: none;
  /* Fade the scrim back during fabrication so welds + sparks shine through */
  transition: opacity .6s ease;
}

.bp::before {
  top: 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .12) 65%, transparent 100%);
}

.bp::after {
  bottom: 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .15) 60%, transparent 100%);
}

.bp.is-forging::before,
.bp.is-forging::after {
  opacity: .55;
}

/* Lift the info/meta above the scrims */
.bp__info,
.bp__meta,
.bp__progress {
  z-index: 5 !important;
}

/* "View full project" CTA inside the featured bp__info */
.bp__view {
  pointer-events: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(10, 11, 13, .35);
  backdrop-filter: blur(8px);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
  transition: background .25s ease, border-color .25s ease, gap .25s ease;
}

.bp__view i { transition: transform .25s ease; }
.bp__view:hover {
  background: var(--ember);
  border-color: var(--ember);
  gap: 16px;
}
.bp__view:hover i { transform: translateX(3px); }

/* Blueprint SVG layer */
.bp__blueprint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(127, 178, 224, .2));
  transition: filter .6s ease;
}

/* During fabrication phase, the steel structure heats up red-hot */
.bp.is-forging .bp__blueprint {
  filter:
    drop-shadow(0 0 6px rgba(255, 120, 60, .55))
    drop-shadow(0 0 20px rgba(255, 60, 20, .35));
}

.bp__blueprint .bp__lines {
  stroke-dasharray: 2000;
  stroke-dashoffset: 0;
}

/* === Image-based blueprint variant (Lusail Yacht Club, etc.) ===
   The blueprint isn't an inline SVG but a high-res blueprint rendering loaded
   as a background image. Same fabrication / reality animation hooks still apply. */
.bp__blueprint--image {
  background-color: #061534;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: filter .8s ease, opacity .8s ease;
}

/* Forge overlay sits over the image blueprint — must reach the corners */
.bp__blueprint--image .bp__forge-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Image blueprints heat up to red-hot during fabrication */
.bp.is-forging .bp__blueprint--image {
  filter:
    drop-shadow(0 0 6px rgba(255, 120, 60, .55))
    drop-shadow(0 0 20px rgba(255, 60, 20, .35))
    sepia(.55) hue-rotate(-35deg) saturate(1.65) brightness(1.05);
}

/* Yacht Club: blueprint and photo are framed differently in their source
   files (blueprint zooms tight on the canopy; photo is a wide skyline shot).
   We zoom the photo up and re-centre it so the canopy occupies the same
   region as the blueprint's canopy — making the wipe transition feel like
   the *same* view morphing between drawing and reality. */
.bp[data-bp="yacht"] .bp__blueprint--image {
  /* Slight upscale crops out the compass/title-block, keeps focus on the canopy. */
  background-size: 118% auto;
  background-position: 50% 52%;
}

.bp[data-bp="yacht"] .bp__reality--yacht {
  /* The photo has two background layers (gradient + photo). The photo zooms
     ~1.55x and shifts so the canopy lands on the same coordinates as in the
     blueprint, so the wipe morphs drawing into the same building position. */
  background-size: cover, 155% auto;
  background-position: center, 50% 55%;
  background-repeat: no-repeat;
}

/* === FORGE / FABRICATION layer (welds + sparks, inside SVG) === */
.bp__forge {
  pointer-events: none;
}

.bp__weld {
  fill: rgba(255, 138, 50, .55);
  filter: blur(2.5px);
  transform-box: fill-box;
  transform-origin: center;
  animation: bpWeldPulse 1.6s ease-in-out infinite alternate;
}

.bp__welds circle:nth-child(2n)  { animation-delay: -.3s; animation-duration: 1.4s; }
.bp__welds circle:nth-child(3n)  { animation-delay: -.7s; animation-duration: 1.8s; }
.bp__welds circle:nth-child(5n)  { animation-delay: -1s;  animation-duration: 1.5s; }

@keyframes bpWeldPulse {
  0%   { opacity: .35; transform: scale(.7); }
  100% { opacity: .95; transform: scale(1.25); }
}

.bp__spark {
  fill: #ffd982;
  filter:
    drop-shadow(0 0 3px #ff8a3a)
    drop-shadow(0 0 8px rgba(255, 90, 30, .8));
  transform-box: fill-box;
  transform-origin: center;
  animation: bpSpark 1.4s var(--d, 0s) ease-out infinite;
}

@keyframes bpSpark {
  0%   { opacity: 0; transform: translate(0, 0) scale(0); }
  12%  { opacity: 1; transform: translate(0, -2px) scale(1.3); }
  100% { opacity: 0; transform: translate(6px, -32px) scale(.2); }
}

/* offset variants — give different sparks different fly directions */
.bp__sparks circle:nth-child(3n)   { animation-name: bpSparkLeft; }
.bp__sparks circle:nth-child(3n+1) { animation-name: bpSparkRight; }
.bp__sparks circle:nth-child(5n)   { animation-name: bpSparkSteep; }

@keyframes bpSparkLeft {
  0%   { opacity: 0; transform: translate(0, 0) scale(0); }
  12%  { opacity: 1; transform: translate(-2px, -2px) scale(1.3); }
  100% { opacity: 0; transform: translate(-10px, -30px) scale(.2); }
}

@keyframes bpSparkRight {
  0%   { opacity: 0; transform: translate(0, 0) scale(0); }
  12%  { opacity: 1; transform: translate(2px, -2px) scale(1.3); }
  100% { opacity: 0; transform: translate(12px, -28px) scale(.2); }
}

@keyframes bpSparkSteep {
  0%   { opacity: 0; transform: translate(0, 0) scale(0); }
  12%  { opacity: 1; transform: translate(0, -2px) scale(1.4); }
  100% { opacity: 0; transform: translate(2px, -38px) scale(.15); }
}

.bp__forge-label {
  /* Sits behind the meta scrim so it never fights with project info text */
  opacity: .85;
}

.bp__forge-label rect {
  animation: bpForgeBlink 1.2s ease-in-out infinite alternate;
}

@media (max-width: 900px) {
  /* Decorative label clutters the smaller bp viewport — hide it on narrow screens */
  .bp__forge-label { display: none; }
}

@keyframes bpForgeBlink {
  0%   { opacity: .55; }
  100% { opacity: 1; }
}

/* Reality (real photo) layer — revealed via clip-path */
.bp__reality {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image:
    linear-gradient(180deg, rgba(10, 11, 13, .15) 0%, rgba(10, 11, 13, .55) 100%),
    url('https://metalyol.com/wp-content/uploads/2025/09/katara-towers-e1756975505905-uai-815x1018.jpg');
  background-size: cover;
  background-position: center;
  /* clip-path is animated by GSAP — start hidden */
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
  transition: filter .8s ease;
}

/* During constructed phase, ember glow on the building photo */
.bp.is-real .bp__reality {
  filter:
    saturate(1.05)
    contrast(1.05)
    drop-shadow(0 0 30px rgba(175, 15, 15, .35));
}

/* Info panel on top */
.bp__info {
  position: absolute;
  left: 32px;
  top: 32px;
  right: 32px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
}

.bp__phase {
  display: flex;
  gap: 22px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.bp__phase-item {
  color: rgba(255, 255, 255, .58);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .3s ease;
}

.bp__phase-item::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  border: 1px solid rgba(255, 255, 255, .22);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.bp__phase-item.is-active {
  color: #fff;
}

.bp__phase-item.is-active::before {
  background: var(--ember);
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(175, 15, 15, .18), 0 0 14px var(--ember);
}

.bp__title {
  font-family: var(--ff-display);
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 600;
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.04;
  color: #fff;
  /* Readable on both deep-navy blueprint and bright photo */
  text-shadow:
    0 1px 2px rgba(0, 0, 0, .55),
    0 6px 24px rgba(0, 0, 0, .55);
}

.bp__meta {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
  z-index: 4;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  pointer-events: none;
}

.bp__meta div {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.bp__meta span {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, .7);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55)
}

.bp__meta strong {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -.01em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55), 0 1px 2px rgba(0, 0, 0, .65)
}

/* Progress indicator */
.bp__progress {
  position: absolute;
  right: 32px;
  bottom: 120px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.bp__progress-bar {
  width: 80px;
  height: 2px;
  background: rgba(255, 255, 255, .15);
  position: relative;
  overflow: hidden
}

.bp__progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--ember)
}

.bp__progress-pct {
  color: var(--ember)
}

/* Other projects below */
.other-projects {
  padding: 88px 0 40px
}

.other-projects__title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.01em;
  margin: 0 0 28px;
  color: var(--txt-mute);
}

.other-projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 24px;
}

.op-card {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  transition: transform .3s ease, box-shadow .3s ease;
}

.op-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -16px rgba(0,0,0,.6), 0 0 0 1px rgba(175,15,15,.4) inset;
}

/* Top-right ember corner bracket — blueprint annotation feel */
.op-card__bracket {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 16px;
  height: 16px;
  border-top: 1.5px solid var(--ember);
  border-right: 1.5px solid var(--ember);
  z-index: 3;
  opacity: .8;
  transition: width .3s ease, height .3s ease, opacity .3s ease;
}

.op-card:hover .op-card__bracket {
  width: 28px;
  height: 28px;
  opacity: 1;
}

.op-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(.7) contrast(1.05);
  transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .6s ease;
}

.op-card:hover .op-card__img {
  transform: scale(1.06);
  filter: saturate(1)
}

.op-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(10, 11, 13, .35) 45%,
    rgba(10, 11, 13, .92) 100%);
  z-index: 1;
}

.op-card__body {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
}

.op-card__body span {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--ember);
  letter-spacing: .18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px
}

.op-card__body h4 {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  line-height: 1.2
}

.op-card__meta {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--steel-300);
  margin: 8px 0 0;
  line-height: 1.5
}

/* ==========================================================================
   WHY US
   ========================================================================== */
.why {
  background: var(--bg-1);
  position: relative;
  overflow: hidden
}

.why::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 100% 50%, rgba(175, 15, 15, .08) 0%, transparent 60%);
  pointer-events: none;
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: start;
  position: relative
}

.why__list {
  display: flex;
  flex-direction: column
}

.why__item {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 20px;
  align-items: start;
  cursor: pointer;
  transition: padding .3s ease;
}

.why__item:first-child {
  padding-top: 0
}

.why__item:hover {
  padding-left: 12px
}

.why__num {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--txt-dim);
  letter-spacing: .16em;
  padding-top: 8px
}

.why__body h3 {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.01em;
  margin: 0 0 10px;
}

.why__body p {
  color: var(--txt-mute);
  font-size: 15px;
  margin: 0;
  line-height: 1.55;
  max-width: 50ch
}

.why__plus {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
  color: var(--steel-300);
}

/* Hover only tints — full rotation happens on open */
.why__item:hover .why__plus {
  background: rgba(175, 15, 15, .14);
  border-color: var(--ember);
  color: var(--ember);
}

/* Open state — + becomes × on ember background */
.why__item.is-open .why__plus,
.why__item[aria-expanded="true"] .why__plus {
  background: var(--ember);
  border-color: var(--ember);
  color: #0a0b0d;
  transform: rotate(45deg);
}

/* Expandable detail — modern grid-rows 0fr → 1fr trick for smooth height animation */
.why__detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.4, 0, .2, 1);
}

.why__detail > div {
  overflow: hidden;
  min-height: 0;
}

.why__detail p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--txt-mute);
  margin: 14px 0 0;
  max-width: 56ch;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .35s ease, transform .35s ease;
}

.why__item.is-open .why__detail,
.why__item[aria-expanded="true"] .why__detail {
  grid-template-rows: 1fr;
}

.why__item.is-open .why__detail p,
.why__item[aria-expanded="true"] .why__detail p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .12s;
}

.why__item.is-open .why__detail p + p,
.why__item[aria-expanded="true"] .why__detail p + p {
  transition-delay: .22s;
}

/* Stop the hover lift from fighting the open state */
.why__item.is-open:hover { padding-left: 0; }

.why__item:focus-visible {
  outline: 2px solid var(--ember-2);
  outline-offset: 6px;
  border-radius: 4px;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  background: var(--bg-0)
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px
}

.contact__head h2 {
  font-family: var(--ff-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-weight: 600;
  margin: 24px 0 24px;
}

.contact__head p {
  color: var(--txt-mute);
  font-size: 17px;
  margin: 0 0 48px;
  max-width: 46ch
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius)
}

.contact__detail {
  background: var(--bg-1);
  padding: 24px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
  transition: background .25s ease;
}

.contact__detail:hover {
  background: var(--bg-2);
}

.contact__detail i {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--ember-soft);
  color: var(--ember);
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: background .25s ease, transform .25s ease;
}

.contact__detail:hover i {
  background: rgba(175, 15, 15, .22);
  transform: scale(1.04);
}

.contact__detail span {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--txt-mute);
  letter-spacing: .18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px
}

.contact__detail strong {
  font-weight: 500;
  font-size: 15px;
  color: var(--txt);
  line-height: 1.4;
  display: block
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 18px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--txt);
  font-family: inherit;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--steel-300) 50%),
    linear-gradient(135deg, var(--steel-300) 50%, transparent 50%);
  background-position: calc(100% - 22px) center, calc(100% - 16px) center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
  cursor: pointer;
}

.field:hover input,
.field:hover textarea,
.field:hover select {
  border-color: var(--line-2);
}

.field textarea {
  min-height: 140px;
  resize: vertical
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--ember);
  background: var(--bg-3);
  box-shadow: 0 0 0 3px rgba(175, 15, 15, .18);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--txt-dim)
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px
}

.form__submit {
  align-self: flex-start;
  margin-top: 8px
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-1);
  padding: 72px 0 28px;
  border-top: 1px solid var(--line)
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px
}

.footer__brand p {
  color: var(--txt-mute);
  font-size: 14px;
  line-height: 1.6;
  margin: 20px 0 28px;
  max-width: 36ch
}

.footer__social {
  display: flex;
  gap: 10px
}

.footer__social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--steel-200);
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}

.footer__social a:hover {
  background: var(--ember);
  border-color: var(--ember);
  color: #0a0b0d;
  transform: translateY(-2px);
}

.footer__col h4 {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--txt-mute);
  margin: 0 0 24px;
  font-weight: 500;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px
}

.footer__col a {
  font-size: 14px;
  color: var(--steel-200);
  transition: color .2s ease
}

.footer__col a:hover {
  color: var(--ember)
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--txt-dim);
}

.footer__bottom a {
  color: var(--steel-300);
  transition: color .2s ease;
}

.footer__bottom a:hover {
  color: var(--ember);
}

.footer__monogram {
  margin-top: 48px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(72px, 15vw, 220px);
  line-height: .85;
  letter-spacing: -.04em;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  user-select: none;
}

/* ==========================================================================
   RESPONSIVE — three breakpoints: ≤1024 (tablet wide) · ≤900 (tablet) · ≤680 (mobile)
   ========================================================================== */

/* ---- Tablet wide: collapse nav + simplify multi-col grids ----------------- */
@media (max-width: 1024px) {
  .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 11, 13, .96);
    backdrop-filter: blur(20px);
    padding: 16px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    transform-origin: top;
    animation: navMenuIn .25s ease both;
  }

  @keyframes navMenuIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav.open .nav__menu { display: flex; }

  .nav__menu a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }

  .nav__menu a:last-child { border-bottom: 0; }
  .nav__menu a.active::after { display: none; }

  /* Hide top-bar CTA on mobile and surface a full-width CTA inside the
     drawer instead — keeps the scrolled nav clean and edge-to-edge. */
  .nav__cta > .btn-primary { display: none; }

  /* `.nav__menu a` has higher specificity than `.nav__menu-cta`, so the
     drawer CTA needs !important on padding/border to win the cascade. */
  .nav__menu a.nav__menu-cta {
    display: inline-flex;
    margin-top: 18px;
    padding: 16px 22px !important;
    border-bottom: 0 !important;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
  }

  .nav__burger { display: flex; }

  .why__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__top {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
  }

  .footer__col:last-child { grid-column: 1 / -1; }

  .bp__title { font-size: clamp(22px, 4vw, 32px); }
  .bp__meta  { gap: 18px; }
  .bp__meta strong { font-size: 14px; }
  .bp__progress { display: none; }
}

/* ---- Tablet narrow: card grids drop a column ----------------------------- */
@media (max-width: 900px) {
  .services__grid--three { grid-template-columns: 1fr 1fr; }

  /* Hero promotes the three-card row to a 2-col grid; the third card spans full width */
  .hero__services { grid-template-columns: 1fr 1fr; }
  .hero__service:last-child { grid-column: 1 / -1; }

  .footer__monogram { font-size: clamp(56px, 18vw, 140px); }

  .other-projects__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---- Mobile: full reset to single column + tightened rhythm ------------- */
@media (max-width: 680px) {
  /* Section + container density */
  .section { padding: clamp(56px, 14vw, 80px) 0; }
  .section-head { margin-bottom: 36px; gap: 14px; }
  .section-head h2 { font-size: clamp(28px, 8vw, 40px); }
  .section-head p { font-size: 15px; }

  /* Hero — tighter, less stacking pressure */
  .hero { padding: 96px 0 48px; min-height: 100vh; }
  .hero__headline { font-size: clamp(36px, 11vw, 56px); margin: 0 0 18px; }
  .hero__sub { font-size: 15px; line-height: 1.55; margin: 0 0 28px; }
  .hero__services { grid-template-columns: 1fr; margin: 0 0 24px; }
  .hero__service { padding: 20px 18px; gap: 10px; }
  .hero__service h3 { font-size: 18px; }
  .hero__service p { font-size: 12.5px; }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { flex: 1; justify-content: center; padding: 14px 18px; }
  .hero__scroll { display: none; }

  /* Services cards stack with their own borders rather than one big grid card */
  .services__grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
    background: transparent;
    border: 0;
    border-radius: 0;
  }
  .services__grid .service {
    min-height: auto;
    padding: 32px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-1);
  }
  .service__icon { width: 48px; height: 48px; font-size: 18px; margin: 16px 0 22px; }
  .service__title { font-size: 21px; margin: 0 0 12px; }
  .service__desc { font-size: 14px; }

  /* Stats — keep 1×3 grid neat */
  .stats { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .stat { padding: 24px 16px 0 0; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
  .stat__num { font-size: clamp(34px, 9vw, 48px); }

  /* Projects: portrait bp + bigger touch zones */
  .bp-stage { height: 240vh; }
  .bp {
    aspect-ratio: 4/5;
    max-width: 100%;
    /* Allow the bp to grow taller than 16:9 on mobile while still respecting nav */
    max-height: calc(100vh - var(--nav-h, 92px) - 24px);
  }
  .bp-stage__inner { padding: 16px var(--gutter); }
  .bp__info { left: 18px; right: 18px; top: 18px; gap: 10px; }
  .bp__phase { gap: 14px; flex-wrap: wrap; font-size: 10px; }
  .bp__title { font-size: 22px; line-height: 1.1; }
  .bp__meta {
    left: 18px;
    right: 18px;
    bottom: 18px;
    gap: 8px 18px;
    padding-top: 12px;
  }
  .bp__meta strong { font-size: 12.5px; }
  .bp__meta span { font-size: 9px; }
  /* On mobile (4:5 portrait bp) crop the canopy area more aggressively
     to keep the building large in the frame on both layers. */
  .bp[data-bp="yacht"] .bp__blueprint--image {
    background-size: 145% auto;
    background-position: 50% 50%;
  }
  .bp[data-bp="yacht"] .bp__reality--yacht {
    background-size: cover, 200% auto;
    background-position: center, 52% 56%;
  }
  .bp::before { height: 30%; }
  .bp::after  { height: 38%; }

  /* Other projects — stacked cards, edge-to-edge */
  .other-projects { padding: 56px 0 16px; }
  .other-projects__title { margin-bottom: 20px; font-size: 20px; }
  .other-projects__grid { gap: 16px; }
  .op-card { aspect-ratio: 4/3; }

  /* Why — narrower number column */
  .why__item {
    grid-template-columns: 36px 1fr 32px;
    gap: 12px;
    padding: 22px 0;
  }
  .why__num { font-size: 11px; padding-top: 4px; }
  .why__body h3 { font-size: 19px; }
  .why__body p { font-size: 14px; }
  .why__plus { width: 30px; height: 30px; }

  /* Contact — single column form fields */
  .field-row { grid-template-columns: 1fr; gap: 14px; }
  .form { gap: 14px; }
  .field input, .field textarea, .field select { padding: 14px 16px; font-size: 14px; }
  .contact__details { border-radius: var(--radius); }
  .contact__detail { padding: 18px 16px; gap: 14px; grid-template-columns: 40px 1fr; }
  .contact__detail i { width: 40px; height: 40px; font-size: 16px; }
  .form__submit { width: 100%; justify-content: center; }

  /* Footer — single column, monogram off */
  .footer { padding: 56px 0 24px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
  .footer__col:last-child { grid-column: auto; }
  .footer__brand p { max-width: 100%; }
  .footer__monogram { display: none; }
  .footer__bottom { font-size: 12px; gap: 12px; }
}

/* ---- Ultra-narrow phones (≤380px) — last-mile cleanup --------------- */
@media (max-width: 380px) {
  .nav__logo-img { height: 42px; }
  .nav { padding: 14px var(--gutter); }

  .hero { padding: 88px 0 40px; }
  .hero__headline { font-size: clamp(32px, 12vw, 44px); }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }

  .service { padding: 28px 20px; }
  .service__title { font-size: 19px; }

  .bp__phase { gap: 10px; font-size: 9px; letter-spacing: .18em; }
  .bp__title { font-size: 19px; }
  .bp__meta { gap: 6px 14px; }

  .why__item {
    grid-template-columns: 28px 1fr 28px;
    gap: 10px;
    padding: 18px 0;
  }
  .why__body h3 { font-size: 17px; }

  .contact__detail { padding: 14px 14px; }
  .contact__detail strong { font-size: 14px; }
}

/* ---- Subtle dark-themed scrollbar ----------------------------------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-0);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-3);
  border-radius: 8px;
  border: 2px solid var(--bg-0);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--steel-500);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-3) var(--bg-0);
}

/* ==========================================================================
   PROJECT DETAIL PAGES — /projects/*.html
   ========================================================================== */

.page-project { background: var(--bg-0); }

/* ----- HERO ---------------------------------------------------------- */
.proj-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 120px;
  overflow: hidden;
  isolation: isolate;
}

.proj-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.proj-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transform-origin: center;
}

.proj-hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(175, 15, 15, .14) 0%, transparent 55%),
    linear-gradient(180deg,
      rgba(10, 11, 13, .2) 0%,
      rgba(10, 11, 13, .65) 70%,
      rgba(10, 11, 13, .92) 100%);
}

.proj-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 56px;
}

.proj-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--steel-200);
  margin-bottom: 32px;
  transition: color .25s ease, gap .25s ease;
}

.proj-back:hover { color: var(--ember); gap: 14px; }
.proj-back i { transition: transform .25s ease; }
.proj-back:hover i { transform: translateX(-3px); }

.proj-hero .eyebrow { margin-bottom: 18px; }

.proj-hero__title {
  font-family: var(--ff-display);
  font-size: clamp(48px, 8.5vw, 130px);
  line-height: .94;
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 0 0 24px;
  text-wrap: balance;
}

.proj-hero__title .line { display: block; overflow: hidden; }
.proj-hero__title .line span { display: inline-block; }

.proj-hero__title em {
  font-style: normal;
  background: var(--grad-ember);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.proj-hero__lead {
  max-width: 640px;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
  color: var(--steel-200);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}

/* The mono spec ticker — auto-scrolls left forever */
.proj-hero__strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  background: rgba(6, 8, 12, .82);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  height: 50px;
}

.proj-hero__ticker {
  display: flex;
  gap: 56px;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: projTicker 70s linear infinite;
  padding: 0 28px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel-200);
  will-change: transform;
}

.proj-hero__ticker:hover { animation-play-state: paused; }

.proj-hero__ticker span {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.proj-hero__ticker span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--ember);
  transform: rotate(45deg);
  box-shadow: 0 0 6px var(--ember);
  flex-shrink: 0;
}

.proj-hero__ticker b { color: var(--txt-mute); font-weight: 500; }

@keyframes projTicker {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ----- BRIEF + ANIMATED METRIC LEDGER -------------------------------- */
.proj-brief { background: var(--bg-0); position: relative; }

.proj-brief::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(175, 15, 15, .05) 0%, transparent 55%),
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px) 0 0/100% 64px;
  mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 82%, transparent 100%);
}

.proj-brief__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
}

.proj-brief__head h2 {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -.015em;
  font-weight: 600;
  margin: 18px 0 0;
  text-wrap: balance;
}

.proj-brief__copy p {
  color: var(--steel-200);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 18px;
}

.proj-brief__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ember);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ember);
  margin-top: 8px;
  transition: gap .3s ease;
}

.proj-brief__cta:hover { gap: 18px; }
.proj-brief__cta i { transition: transform .3s ease; }
.proj-brief__cta:hover i { transform: translateY(3px); }

/* The metric ledger */
.proj-metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}

.proj-metric {
  position: relative;
  padding: 0 24px 0 0;
  border-right: 1px solid var(--line);
}

.proj-metric:last-child { border-right: 0; }

.proj-metric::before {
  content: "";
  position: absolute;
  top: -49px;
  left: 0;
  width: 36px;
  height: 1px;
  background: var(--ember);
  box-shadow: 0 0 8px rgba(175, 15, 15, .65);
}

.proj-metric__num {
  font-family: var(--ff-display);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 0%, #888 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.proj-metric__num sub {
  font-size: .42em;
  margin-left: 4px;
  vertical-align: baseline;
  color: var(--ember);
  -webkit-text-fill-color: var(--ember);
}

.proj-metric__label {
  display: block;
  margin-top: 12px;
  color: var(--txt-mute);
  font-size: 13px;
  letter-spacing: .06em;
}

/* ----- STICKY SPEC PANEL ----------------------
   `overflow: hidden` on the section breaks position:sticky for descendants in
   most browsers — we use the ::before pseudo as the contained gradient and
   rely on the section's intrinsic bounds instead.
   `align-items: stretch` (the grid default) lets the left cell match the
   right column's height so the sticky element has a tall track to stick in. */
.proj-spec {
  background: var(--bg-1);
  position: relative;
}

.proj-spec::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 100% 0%, rgba(175, 15, 15, .07) 0%, transparent 55%);
}

.proj-spec__layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}

.proj-spec__sticky {
  position: sticky;
  top: calc(var(--nav-h, 92px) + 32px);
  height: calc(100vh - var(--nav-h, 92px) - 64px);
  max-height: 720px;
  /* Anchor the sticky element to the top of its (now stretched) cell so it
     sticks at the entry of the section, not in the middle. */
  align-self: start;
}

.proj-spec__visual {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #06182f;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px var(--line) inset;
  margin: 0;
}

.proj-spec__layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .8s cubic-bezier(.4, 0, .2, 1), transform 1s cubic-bezier(.4, 0, .2, 1), filter .8s ease;
}

.proj-spec__layer.is-active {
  opacity: 1;
  transform: scale(1);
}

.proj-spec__layer[data-layer="1"].is-active {
  filter: hue-rotate(-12deg) saturate(1.15) brightness(1.05) contrast(1.05);
}

.proj-spec__layer[data-layer="3"].is-active {
  filter: saturate(1.2) contrast(1.1);
  transform: scale(1.08);
}

.proj-spec__caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .65);
  pointer-events: none;
}

.proj-spec__caption-page { color: var(--ember); }

.proj-spec__pages {
  display: flex;
  flex-direction: column;
  gap: 32vh;
  padding: 8vh 0 12vh;
}

.proj-spec__page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.proj-spec__page .eyebrow { margin-bottom: 16px; }

.proj-spec__page h3 {
  font-family: var(--ff-display);
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -.015em;
  font-weight: 600;
  margin: 0 0 18px;
  text-wrap: balance;
}

.proj-spec__page p {
  color: var(--steel-200);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 14px;
  max-width: 56ch;
}

.proj-spec__page p strong { color: #fff; font-weight: 500; }

.proj-spec__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.proj-spec__list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  align-items: baseline;
}

.proj-spec__list li span {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--txt-mute);
}

.proj-spec__list li strong {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--txt);
  letter-spacing: -.005em;
}

/* ----- PROCESS TIMELINE ------------------------- */
.proj-process {
  background: var(--bg-0);
  position: relative;
  padding-bottom: 0;
}

.proj-process__rail {
  position: relative;
  margin-top: 24px;
  padding: 0 var(--gutter) 80px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.proj-process__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 320px;
  gap: 0;
  align-items: stretch;
  position: relative;
}

.proj-process__track::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--line) 0%, var(--ember) 50%, var(--line) 100%);
  z-index: 0;
}

.proc-step {
  position: relative;
  padding: 0 28px 0 28px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}

.proc-step:first-child { border-left: 0; padding-left: 0; }

.proc-step__num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  background: var(--bg-0);
  padding-right: 10px;
  margin-bottom: 32px;
  align-self: flex-start;
}

.proc-step__num::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 1.5px solid var(--ember);
  box-shadow: 0 0 0 4px rgba(175, 15, 15, .12), 0 0 14px var(--ember);
  flex-shrink: 0;
}

.proc-step h3 {
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.005em;
  margin: 0 0 12px;
}

.proc-step p {
  color: var(--txt-mute);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}

.proc-step time {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel-300);
}

/* ----- GALLERY — magnetic-tilt tiles --------------------------------- */
.proj-gallery { background: var(--bg-1); }

.proj-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}

.proj-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: box-shadow .35s ease;
}

.proj-tile:hover {
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(175, 15, 15, .35) inset;
}

.proj-tile--wide { grid-column: span 2; grid-row: span 2; }

.proj-tile__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(.78) contrast(1.05);
  transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .5s ease;
}

.proj-tile:hover .proj-tile__img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.05);
}

.proj-tile__img--zoom { background-size: 145% auto; background-position: 65% 50%; }
.proj-tile__img--mono { filter: saturate(0) contrast(1.1) brightness(.9); }
.proj-tile:hover .proj-tile__img--mono { filter: saturate(.6) contrast(1.05) brightness(1); }

.proj-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(10, 11, 13, .25) 50%,
    rgba(10, 11, 13, .92) 100%);
}

.proj-tile__label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel-200);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.proj-tile__label b { font-weight: 500; color: var(--ember); }

/* ----- CTA + PAGER -------------------------------------------------- */
.proj-cta {
  background: var(--bg-0);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.proj-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(175, 15, 15, .12) 0%, transparent 55%);
}

.proj-cta__inner {
  position: relative;
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
}

.proj-cta__inner .eyebrow { margin-bottom: 18px; display: inline-flex; }

.proj-cta__inner h2 {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -.02em;
  font-weight: 600;
  margin: 0 0 18px;
  text-wrap: balance;
}

.proj-cta__inner p {
  color: var(--txt-mute);
  font-size: 17px;
  margin: 0 0 36px;
}

.proj-cta__btns {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.proj-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proj-pager__link {
  position: relative;
  padding: 56px var(--gutter);
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background .3s ease;
  overflow: hidden;
}

.proj-pager__link:hover { background: var(--bg-2); }

.proj-pager__link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: var(--origin, left);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}

.proj-pager__link:hover::before { transform: scaleX(1); }

.proj-pager__link--prev { --origin: right; }
.proj-pager__link--next { --origin: left; text-align: right; align-items: flex-end; }

.proj-pager__hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--txt-mute);
  transition: color .3s ease;
}

.proj-pager__link:hover .proj-pager__hint { color: var(--ember); }

.proj-pager__title {
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--txt);
}

/* ----- RESPONSIVE for project pages ---------------------------------- */
@media (max-width: 1024px) {
  .proj-hero { padding-bottom: 90px; }
  .proj-hero__strip { height: 44px; }
  .proj-brief__grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 56px; }
  .proj-metrics { grid-template-columns: 1fr 1fr; padding: 36px 0; gap: 32px 0; }
  .proj-metric { border-right: 0; padding-right: 16px; }
  .proj-metric::before { top: -37px; }

  .proj-spec__layout { grid-template-columns: 1fr; gap: 0; }
  .proj-spec__sticky {
    position: relative;
    top: auto;
    height: 50vh;
    max-height: 480px;
    margin-bottom: 32px;
  }
  .proj-spec__pages { gap: 6vh; padding: 4vh 0 8vh; }
  .proj-spec__page { min-height: auto; }

  .proj-gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .proj-tile--wide { grid-column: span 2; grid-row: span 1; }

  .proj-pager { grid-template-columns: 1fr; }
  .proj-pager__link--next { text-align: left; align-items: flex-start; }
}

@media (max-width: 680px) {
  .proj-hero { padding-bottom: 72px; min-height: 92vh; }
  .proj-hero__content { padding-bottom: 32px; }
  .proj-back { font-size: 10px; margin-bottom: 22px; }
  .proj-hero__title { font-size: clamp(40px, 12vw, 64px); margin-bottom: 18px; }
  .proj-hero__lead { font-size: 14.5px; }
  .proj-hero__strip { height: 38px; }
  .proj-hero__ticker { gap: 38px; font-size: 10.5px; }

  .proj-brief__grid { gap: 24px; margin-bottom: 40px; }
  .proj-brief__head h2 { font-size: clamp(24px, 6.5vw, 30px); }
  .proj-brief__copy p { font-size: 14.5px; }

  .proj-metrics { grid-template-columns: 1fr 1fr; padding: 28px 0; gap: 24px 0; }
  .proj-metric { padding-right: 8px; }
  .proj-metric__num { font-size: clamp(28px, 8vw, 38px); }

  .proj-spec__sticky { height: 40vh; }
  .proj-spec__page h3 { font-size: clamp(22px, 6vw, 28px); }
  .proj-spec__page p { font-size: 14.5px; }
  .proj-spec__list li { gap: 12px; }
  .proj-spec__list li strong { font-size: 14px; }

  .proj-process__rail { padding-bottom: 56px; }
  .proj-process__track { grid-auto-columns: 240px; }
  .proc-step { padding: 0 20px; }

  .proj-gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; gap: 12px; }
  .proj-tile--wide { grid-column: span 1; grid-row: span 1; }

  .proj-cta { padding: 72px 0; }
  .proj-cta__btns { flex-direction: column; align-items: stretch; }
  .proj-cta__btns .btn { justify-content: center; }

  .proj-pager__link { padding: 32px var(--gutter); }
}


/* ==========================================================================
   404 — page not found
   ========================================================================== */
.page-404 { background: var(--bg-0); min-height: 100vh; }

.not-found {
  min-height: calc(100vh - 92px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 96px 0 64px;
}

.not-found__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}

.not-found__inner .eyebrow {
  margin: 0 auto 22px;
  display: inline-flex;
}

.not-found__title {
  font-family: var(--ff-display);
  font-size: clamp(48px, 9vw, 110px);
  line-height: .96;
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 0 0 24px;
  text-wrap: balance;
}

.not-found__title em {
  font-style: normal;
  background: var(--grad-ember);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.not-found__lead {
  color: var(--steel-200);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 auto 36px;
  max-width: 52ch;
}

.not-found__actions {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
}

.not-found__links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--txt-mute);
}

.not-found__links a {
  color: var(--steel-200);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.not-found__links a:hover {
  color: var(--ember);
  border-bottom-color: var(--ember);
}

.not-found__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
}

.page-404 .nav {
  position: absolute;
  background: transparent;
  border-bottom: 0;
}

@media (max-width: 680px) {
  .not-found { padding: 80px 0 48px; }
  .not-found__title { font-size: clamp(40px, 11vw, 56px); }
  .not-found__lead { font-size: 15px; }
  .not-found__actions { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; }
  .not-found__actions .btn { justify-content: center; }
  .not-found__links { gap: 16px; font-size: 10.5px; }
}

/* ==========================================================================
   WhatsApp floating CTA — regional must-have, kept tasteful
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 95;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  font-size: 24px;
  box-shadow:
    0 12px 24px -8px rgba(37, 211, 102, .55),
    0 0 0 1px rgba(255, 255, 255, .08) inset;
  transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none;
}

.wa-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(37, 211, 102, .4);
  opacity: .6;
  animation: waPulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes waPulse {
  0%   { transform: scale(.95); opacity: .6; }
  100% { transform: scale(1.45); opacity: 0; }
}

.wa-float:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 32px -8px rgba(37, 211, 102, .65),
    0 0 0 1px rgba(255, 255, 255, .12) inset;
}

.wa-float__label {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--bg-2);
  color: var(--txt);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.wa-float:hover .wa-float__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 680px) {
  .wa-float { right: 16px; bottom: 16px; width: 50px; height: 50px; font-size: 22px; }
  .wa-float__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; }
}

/* ==========================================================================
   Trusted-by clients strip — subtle authority signal under the hero.
   Softer than a card — no dividers, just breathing room.
   ========================================================================== */
.trusted {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
  overflow: hidden;
}

.trusted__inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trusted__label {
  flex-shrink: 0;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--txt-mute);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.trusted__label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ember);
  box-shadow: 0 0 6px rgba(175, 15, 15, .55);
}

.trusted__list {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 44px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trusted__list li {
  font-family: var(--ff-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--steel-300);
  transition: color .25s ease;
  white-space: nowrap;
}

.trusted__list li:hover { color: var(--steel-100); }

.trusted__more {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--steel-200);
  transition: color .25s ease, gap .25s ease;
}

.trusted__more:hover { color: var(--ember); gap: 14px; }
.trusted__more i { transition: transform .25s ease; }
.trusted__more:hover i { transform: translateX(3px); }

@media (max-width: 900px) {
  .trusted { padding: 28px 0; }
  .trusted__inner { gap: 18px 32px; }
  .trusted__list { gap: 12px 28px; }
  .trusted__list li { font-size: 14px; }
  .trusted__more { width: 100%; justify-content: flex-start; }
}

@media (max-width: 680px) {
  .trusted { padding: 22px 0; }
  .trusted__list li { font-size: 13px; }
}


/* ==========================================================================
   PRODUCTS — homepage section
   ========================================================================== */
.products-sec {
  background: var(--bg-0);
  position: relative;
}

.products-sec::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 100% 100%, rgba(175, 15, 15, .05) 0%, transparent 55%);
}

.products__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.product {
  background: var(--bg-1);
  padding: 44px 32px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background .35s ease;
}

.product:hover { background: var(--bg-2); }

.product--featured { background: var(--bg-2); }

.product--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ember);
  box-shadow: 0 0 14px rgba(175, 15, 15, .5);
}

.product__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.product__num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--txt-dim);
}

.product__bracket {
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  transition: border-color .3s ease, width .3s ease, height .3s ease;
}

.product:hover .product__bracket {
  border-color: var(--ember);
  width: 22px;
  height: 22px;
}

.product__title {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 4px 0 14px;
}

.product__desc {
  color: var(--txt-mute);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 24px;
  max-width: 38ch;
}

.product__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  border-top: 1px solid var(--line);
  flex: 1;
}

.product__list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--steel-200);
  display: flex;
  align-items: center;
  gap: 12px;
}

.product__list li:last-child { border-bottom: 0; }

.product__list li::before {
  content: "";
  width: 8px;
  height: 1px;
  background: var(--ember);
  flex-shrink: 0;
}

.product__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel-200);
  transition: color .3s ease;
}

.product__cta i { transition: transform .3s ease; }

.product:hover .product__cta { color: var(--ember); }
.product:hover .product__cta i { transform: translateX(6px); }

@media (max-width: 1024px) {
  .products__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FOOTER — 5-column grid (now that Products is added)
   ========================================================================== */
.footer__top {
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
}

@media (max-width: 1024px) {
  .footer__top {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .footer__col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__col:last-child { grid-column: auto; }
}

/* ==========================================================================
   LEGAL PAGES — privacy / terms
   ========================================================================== */
.page-legal {
  background: var(--bg-0);
  min-height: 100vh;
}

.legal {
  padding: clamp(120px, 14vw, 160px) 0 80px;
  position: relative;
}

.legal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60vh;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(175, 15, 15, .07) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px) 0 0/100% 64px;
  mask-image: linear-gradient(180deg, black 0%, transparent 100%);
  z-index: 0;
}

.legal__head {
  position: relative;
  max-width: 760px;
  margin: 0 0 56px;
}

.legal__head .eyebrow {
  margin-bottom: 18px;
}

.legal__head h1 {
  font-family: var(--ff-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -.025em;
  font-weight: 600;
  margin: 0 0 18px;
}

.legal__updated {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--txt-mute);
  margin: 0;
}

.legal__doc {
  position: relative;
  max-width: 760px;
  color: var(--steel-200);
  font-size: 16px;
  line-height: 1.7;
}

.legal__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--steel-100);
  margin: 0 0 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.legal__doc h2 {
  font-family: var(--ff-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--txt);
  margin: 48px 0 16px;
}

.legal__doc h2:first-of-type { margin-top: 0; }

.legal__doc p {
  margin: 0 0 16px;
}

.legal__doc ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.legal__doc ul li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 15px;
  line-height: 1.6;
}

.legal__doc ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 12px;
  height: 1px;
  background: var(--ember);
}

.legal__doc a {
  color: var(--ember-2);
  border-bottom: 1px solid rgba(175, 15, 15, .35);
  transition: color .2s ease, border-color .2s ease;
}

.legal__doc a:hover {
  color: #fff;
  border-bottom-color: var(--ember-2);
}

.legal__doc strong {
  color: var(--txt);
  font-weight: 500;
}

.legal__address {
  font-family: var(--ff-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--steel-300);
  padding: 20px 24px;
  border-left: 2px solid var(--ember);
  background: rgba(255, 255, 255, .015);
  margin: 24px 0 32px !important;
}

@media (max-width: 680px) {
  .legal { padding: 96px 0 56px; }
  .legal__head { margin-bottom: 36px; }
  .legal__head h1 { font-size: clamp(34px, 9vw, 48px); }
  .legal__lead { font-size: 16px; padding-bottom: 24px; margin-bottom: 28px; }
  .legal__doc { font-size: 15px; }
  .legal__doc h2 { margin: 36px 0 14px; }
  .legal__doc ul li { font-size: 14.5px; }
  .legal__address { font-size: 13px; padding: 16px 18px; }
}


/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.page-about { background: var(--bg-0); }

/* ----- Hero ----- */
.about-hero {
  position: relative;
  padding: clamp(140px, 18vw, 200px) 0 80px;
  overflow: hidden;
  isolation: isolate;
}

.about-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(175, 15, 15, .15) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 70%, rgba(80, 120, 180, .08) 0%, transparent 55%),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0/100% 80px,
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0/80px 100%;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.about-hero .eyebrow { margin-bottom: 22px; }

.about-hero__title {
  font-family: var(--ff-display);
  font-size: clamp(48px, 8vw, 120px);
  line-height: .95;
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 0 0 28px;
  text-wrap: balance;
}

.about-hero__title .line { display: block; overflow: hidden; }
.about-hero__title .line span { display: inline-block; }

.about-hero__title em {
  font-style: normal;
  background: var(--grad-ember);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-hero__lead {
  max-width: 680px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--steel-200);
  margin: 0;
}

/* ----- Story ----- */
.about-story { background: var(--bg-0); }

.about-story__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
}

.about-story__head h2 {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.05;
  letter-spacing: -.015em;
  font-weight: 600;
  margin: 18px 0 0;
  text-wrap: balance;
}

.about-story__copy p {
  color: var(--steel-200);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.about-story__copy p:last-child { margin-bottom: 0; }

/* Stats — same accent line as the project metric ledger */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}

.about-stat {
  position: relative;
  padding: 0 24px 0 0;
  border-right: 1px solid var(--line);
}

.about-stat:last-child { border-right: 0; }

.about-stat::before {
  content: "";
  position: absolute;
  top: -49px;
  left: 0;
  width: 36px;
  height: 1px;
  background: var(--ember);
  box-shadow: 0 0 8px rgba(175, 15, 15, .65);
}

.about-stat__num {
  font-family: var(--ff-display);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 0%, #888 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-stat__num sub {
  font-size: .42em;
  margin-left: 4px;
  vertical-align: baseline;
  color: var(--ember);
  -webkit-text-fill-color: var(--ember);
}

.about-stat__label {
  display: block;
  margin-top: 12px;
  color: var(--txt-mute);
  font-size: 13px;
  letter-spacing: .06em;
}

/* ----- Principles ----- */
.principles { background: var(--bg-1); }

.principles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.principle {
  background: var(--bg-1);
  padding: 44px 32px;
  position: relative;
  transition: background .3s ease;
}

.principle:hover { background: var(--bg-2); }

.principle::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  transition: border-color .3s ease, width .3s ease, height .3s ease;
}

.principle:hover::after {
  border-color: var(--ember);
  width: 22px;
  height: 22px;
}

.principle__num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--ember);
}

.principle h3 {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 600;
  margin: 22px 0 14px;
  letter-spacing: -.005em;
}

.principle p {
  color: var(--txt-mute);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}

/* ----- Certifications ----- */
.certs { background: var(--bg-0); }

.certs__head {
  max-width: 720px;
  margin: 0 0 56px;
}

.certs__head h2 {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -.015em;
  font-weight: 600;
  margin: 18px 0 16px;
}

.certs__head p {
  color: var(--txt-mute);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.certs__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cert {
  background: var(--bg-1);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: background .3s ease;
}

.cert:hover { background: var(--bg-2); }

.cert::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 1px;
  background: var(--ember);
  opacity: 0;
  transition: opacity .3s ease;
}

.cert:hover::before { opacity: 1; }

.cert__code {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.005em;
  color: var(--txt);
}

.cert__name {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt-mute);
}

/* ----- Sectors ----- */
.sectors { background: var(--bg-1); }

.sectors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sector {
  background: var(--bg-1);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .3s ease;
}

.sector:hover { background: var(--bg-2); }

.sector__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .02);
  font-size: 18px;
  color: var(--ember);
  transition: border-color .3s ease, background .3s ease;
}

.sector:hover .sector__icon {
  border-color: var(--ember);
  background: var(--ember-soft);
}

.sector h3 {
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 600;
  margin: 4px 0 0;
  letter-spacing: -.005em;
}

.sector p {
  color: var(--txt-mute);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* ----- About responsive ----- */
@media (max-width: 1024px) {
  .about-story__grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .about-stats { grid-template-columns: 1fr 1fr; padding: 36px 0; gap: 32px 0; }
  .about-stat { border-right: 0; padding-right: 16px; }
  .about-stat::before { top: -37px; }

  .principles__grid { grid-template-columns: 1fr; }
  .certs__grid { grid-template-columns: 1fr 1fr; }
  .sectors__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .about-hero { padding: 112px 0 56px; }
  .about-hero__title { font-size: clamp(40px, 11vw, 60px); margin-bottom: 22px; }
  .about-hero__lead { font-size: 15px; }

  .about-stats { grid-template-columns: 1fr 1fr; padding: 28px 0; gap: 24px 0; }
  .about-stat__num { font-size: clamp(30px, 8vw, 42px); }

  .principle { padding: 32px 24px; }
  .cert { padding: 22px 20px; }
  .cert__code { font-size: 19px; }

  .sectors__grid { grid-template-columns: 1fr; }
  .sector { padding: 28px 22px; }
}

/* ==========================================================================
   INDUSTRIES strip on homepage
   ========================================================================== */
.industries {
  background: var(--bg-0);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}

.industries .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.industries__label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--txt-mute);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.industries__label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ember);
  box-shadow: 0 0 6px rgba(175, 15, 15, .55);
}

.industries__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}

.industries__list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-display);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--steel-200);
  letter-spacing: -.005em;
}

.industries__list li i {
  font-size: 13px;
  color: var(--ember);
  width: 18px;
  text-align: center;
}

.industries__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--steel-200);
  white-space: nowrap;
  transition: color .25s ease, gap .25s ease;
}

.industries__more:hover { color: var(--ember); gap: 14px; }
.industries__more i { transition: transform .25s ease; }
.industries__more:hover i { transform: translateX(3px); }

@media (max-width: 1024px) {
  .industries .container { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 680px) {
  .industries { padding: 24px 0; }
  .industries__list { gap: 6px 20px; }
  .industries__list li { font-size: 13px; }
}

/* ==========================================================================
   CONTACT — office map embed
   ========================================================================== */
.contact__map {
  position: relative;
  display: block;
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  aspect-ratio: 16/9;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.contact__map:hover {
  border-color: rgba(175, 15, 15, .35);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6);
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(.6) contrast(.95) brightness(.85);
  transition: filter .4s ease;
}

.contact__map:hover iframe {
  filter: grayscale(0) contrast(1) brightness(1);
}

.contact__map-overlay {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(10, 11, 13, .82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--txt);
  pointer-events: none;
}

.contact__map-overlay i {
  color: var(--ember);
}

@media (max-width: 680px) {
  .contact__map { aspect-ratio: 4/3; margin-top: 18px; }
}

/* ==========================================================================
   COOKIE CONSENT — subtle, dismissible, no-tracking
   ========================================================================== */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  background: rgba(15, 17, 21, .96);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  padding: 18px 22px;
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .8);
  animation: cookieIn .35s cubic-bezier(.4, 0, .2, 1) both;
}

.cookie-bar[hidden] { display: none; }

@keyframes cookieIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cookie-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.cookie-bar__copy {
  flex: 1;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--steel-200);
}

.cookie-bar__copy a {
  color: var(--ember-2);
  border-bottom: 1px solid rgba(175, 15, 15, .35);
  transition: color .2s ease;
}

.cookie-bar__copy a:hover { color: #fff; }

.cookie-bar__btn {
  flex-shrink: 0;
  padding: 12px 20px;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .cookie-bar { left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; }
  .cookie-bar__inner { flex-direction: column; gap: 12px; align-items: stretch; }
  .cookie-bar__copy { font-size: 13px; }
  .cookie-bar__btn { width: 100%; justify-content: center; }
}

/* When the WhatsApp float is visible, lift the cookie bar above it */
.cookie-bar:not([hidden]) ~ .wa-float,
body:has(.cookie-bar:not([hidden])) .wa-float {
  bottom: 100px;
}

@media (max-width: 680px) {
  body:has(.cookie-bar:not([hidden])) .wa-float { bottom: 130px; }
}
