/* =========================================================
   RDE Mechanical Solutions Inc. — site styles
   Brand: orange #FF7F32, brown #B36924 (from logo)
   ========================================================= */

:root {
  /* Brand */
  --orange: #FF7F32;
  --orange-hi: #FF9554;
  --brown: #B36924;
  --brown-lo: #7A4518;

  /* Surfaces (dark steel) */
  --bg: #121314;
  --bg-alt: #1A1C1E;
  --surface: #202326;
  --surface-hi: #2A2E32;
  --line: #33383D;
  --line-soft: #26292D;

  /* Text */
  --text: #F2F0ED;
  --text-muted: #B4B0AA;   /* 8.6:1 on --bg */
  --text-dim: #8E8A85;     /* 5.4:1 on --bg */
  --on-orange: #141414;

  /* Type */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Spacing scale (8pt) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --radius: 2px;
  --container: 1240px;
  --gutter: 16px;
  --header-h: 72px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --dur-fast: 160ms;
  --dur: 240ms;
}

@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --header-h: 84px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
ul[role="list"], ol { list-style: none; }
button { font: inherit; color: inherit; }
figure { margin: 0; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 1000;
  background: var(--orange); color: var(--on-orange); padding: var(--s3) var(--s4);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: var(--s4); }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 24px; height: 24px; }

.accent { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 0 var(--s5);
  font-family: var(--font); font-weight: 700; font-size: .9375rem; letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 52px; padding: 0 var(--s6); font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--orange); color: var(--on-orange); }
.btn--primary:hover { background: var(--orange-hi); }
.btn--primary .icon { transition: transform var(--dur) var(--ease-out); }
.btn--primary:hover .icon { transform: translateX(3px); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: var(--text); background: rgba(0,0,0,.2); }
.btn--ghost:hover { border-color: var(--text); background: rgba(255,255,255,.08); }
.btn[disabled] { opacity: .5; cursor: progress; }

/* ---------- Utility bar ---------- */
.utility { background: #0B0C0D; border-bottom: 1px solid var(--line-soft); font-size: .8125rem; color: var(--text-muted); }
.utility__inner { display: flex; align-items: center; gap: var(--s5); min-height: 40px; }
.utility__item { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; white-space: nowrap; }
.utility__item .icon { width: 14px; height: 14px; color: var(--orange); }
a.utility__item { min-height: 40px; }
a.utility__item:hover { color: var(--text); }
.utility__spacer { flex: 1; }
@media (max-width: 767px) { .utility__hide-sm { display: none; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(18,19,20,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--s5); }
.brand { display: flex; align-items: center; gap: var(--s4); flex: none; text-decoration: none; }
.brand__slogan {
  display: none; padding-left: var(--s4); border-left: 2px solid var(--brown);
  font-weight: 900; font-stretch: 78%; font-size: 1rem; line-height: 1; letter-spacing: .02em; text-transform: uppercase;
  color: var(--orange); white-space: nowrap;
}
@media (min-width: 360px) { .brand__slogan { display: block; } }
@media (max-width: 419px) { .brand { gap: var(--s3); } .brand__slogan { padding-left: var(--s3); font-size: .875rem; } }
@media (min-width: 1024px) { .brand__slogan { font-size: 1.125rem; } }
.brand img { width: 158px; height: auto; }
@media (min-width: 420px) { .brand img { width: 180px; } }
@media (min-width: 1024px) { .brand img { width: 236px; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -8px;
  background: none; border: 0; cursor: pointer; color: var(--text);
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: var(--s4) var(--gutter) var(--s6);
  display: flex; flex-direction: column; gap: var(--s4);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.nav__list { list-style: none; display: flex; flex-direction: column; }
.nav__list a {
  display: flex; align-items: center; min-height: 52px;
  font-weight: 700; font-size: 1.25rem; font-stretch: 85%; text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none; border-bottom: 1px solid var(--line-soft);
}
.nav__list a:hover, .nav__list a[aria-current="true"] { color: var(--orange); }

@media (min-width: 1280px) {
  .nav-toggle { display: none; }
  .nav {
    position: static; flex-direction: row; align-items: center; gap: var(--s5);
    padding: 0; background: none; border: 0; opacity: 1; transform: none; visibility: visible;
  }
  .nav__list { flex-direction: row; gap: var(--s4); }
  .nav__list a { white-space: nowrap; }
  .nav__list a {
    position: relative; min-height: 44px; font-size: .9375rem; border: 0; letter-spacing: .06em;
  }
  .nav__list a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--orange);
    transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out);
  }
  .nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); }
  .nav__list a:hover { color: var(--text); }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: calc(100dvh - 40px - var(--header-h)); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12,13,14,.9) 0%, rgba(12,13,14,.72) 42%, rgba(12,13,14,.25) 80%),
    linear-gradient(0deg, rgba(12,13,14,.8) 0%, rgba(12,13,14,0) 30%);
}
.hero__video { background: #1a1c1e; }
.hero__pause {
  position: absolute; right: var(--gutter); bottom: calc(100% + var(--s4)); z-index: 2;
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: rgba(12,13,14,.6); border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.hero__pause:hover { background: rgba(12,13,14,.85); border-color: var(--text); }
.hero__play-icon, .hero__pause[aria-pressed="true"] .hero__pause-icon { display: none; }
.hero__pause[aria-pressed="true"] .hero__play-icon { display: block; }
.hero__content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: var(--s7) var(--s6); }
.hero__title .line { display: block; }
.hero__title.hero__title--slogan { font-size: clamp(3.5rem, 12vw, 9rem); line-height: .88; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s3);
  font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange);
  margin-bottom: var(--s5);
}
.eyebrow__rule { display: inline-block; width: 32px; height: 2px; background: var(--orange); }
.hero__title {
  font-size: clamp(2.375rem, 6.4vw, 5rem);
  font-weight: 900; font-stretch: 75%; line-height: .95; letter-spacing: -.01em; text-transform: uppercase;
  max-width: 13em;
  text-wrap: balance;
}
.hero__lead { margin-top: var(--s5); max-width: 56ch; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: #DAD6D0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

.hero__stats { position: relative; border-top: 1px solid rgba(255,255,255,.12); background: rgba(12,13,14,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.stat { padding: var(--s4) var(--s4) var(--s4) 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.stat:nth-child(even) { padding-left: var(--s4); border-left: 1px solid rgba(255,255,255,.08); }
.stat dt { font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); order: 2; }
.stats .stat--wide dd { font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.25; }
.stat dd { margin: 0; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; font-stretch: 80%; line-height: 1.1; color: var(--text); }
.stat { display: flex; flex-direction: column-reverse; }
@media (min-width: 768px) {
  .stats { grid-template-columns: 1fr 1fr 1fr 1.7fr; }
  .stat { padding: var(--s5) var(--s5); border-bottom: 0; border-left: 1px solid rgba(255,255,255,.08); }
  .stat:first-child { border-left: 0; padding-left: 0; }
  .stat:nth-child(even) { padding-left: var(--s5); }
}

/* ---------- Intro strip ---------- */
.intro { background: var(--surface); color: var(--text); border-top: 3px solid var(--orange); border-bottom: 1px solid var(--line); }
.intro__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s6); padding-block: var(--s6); }
.intro__text { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 500; line-height: 1.4; max-width: 60ch; }
.intro__text strong { font-weight: 800; color: var(--orange); }
.intro__mark { display: none; flex: none; width: 104px; height: auto; }
@media (min-width: 768px) { .intro__mark { display: block; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--s8); }
@media (min-width: 1024px) { .section { padding-block: var(--s9) var(--s9); } }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }

.section__head { max-width: 760px; margin-bottom: var(--s7); }
.section__head--split { max-width: none; display: grid; gap: var(--s4); align-items: end; }
@media (min-width: 1024px) { .section__head--split { grid-template-columns: 1fr 1fr; gap: var(--s8); } }

.kicker { font-family: var(--mono); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: var(--s3); }
.section__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; font-stretch: 80%; text-transform: uppercase; letter-spacing: -.005em; line-height: 1;
  text-wrap: balance;
}
.section__lead { margin-top: var(--s4); font-size: 1.125rem; color: var(--text-muted); max-width: 62ch; }
.section__head--split .section__lead { margin-top: 0; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service {
  position: relative; background: var(--bg); padding: var(--s6) var(--s5) var(--s6);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color var(--dur) ease;
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out);
}
.service:hover { background: var(--surface); }
.service:hover::before { transform: scaleX(1); }
.service__num { position: absolute; top: var(--s5); right: var(--s5); font-family: var(--mono); font-size: .75rem; color: var(--text-dim); }
.service__icon { width: 40px; height: 40px; fill: none; stroke: var(--orange); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--s5); }
.service__title { font-size: 1.25rem; font-weight: 800; font-stretch: 85%; text-transform: uppercase; letter-spacing: .01em; margin-bottom: var(--s3); }
.service p { color: var(--text-muted); font-size: .9375rem; line-height: 1.6; }

/* ---------- Projects: before / after ---------- */
.cases { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(2, 1fr); gap: var(--s7) var(--s6); } }
.case { background: var(--surface); border: 1px solid var(--line); }
.case__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.case__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-hi); }
.case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.case:hover .case__img img { transform: scale(1.03); }
.tag {
  position: absolute; left: var(--s3); top: var(--s3);
  font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 8px; border-radius: var(--radius);
}
.tag--before { background: rgba(12,13,14,.85); color: var(--text); border: 1px solid rgba(255,255,255,.25); }
.tag--after { background: var(--orange); color: var(--on-orange); }
.case__body { padding: var(--s5); }
.case__meta { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: var(--s2); }
.case__title { font-size: 1.5rem; font-weight: 800; font-stretch: 85%; text-transform: uppercase; margin-bottom: var(--s2); }
.case__body p:last-child { color: var(--text-muted); }

/* ---------- Gallery ---------- */
.gallery-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s3); margin: var(--s9) 0 var(--s5); padding-top: var(--s6); border-top: 1px solid var(--line); }
.gallery-head__title { font-size: 1.75rem; font-weight: 900; font-stretch: 80%; text-transform: uppercase; }
.gallery-head__note { color: var(--text-muted); font-size: .9375rem; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; grid-auto-flow: dense; gap: var(--s2); }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: var(--s3); } }
@media (min-width: 1200px) { .gallery { grid-auto-rows: 230px; } }
.gallery li { display: contents; }
.gallery__item {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; overflow: hidden;
  background: var(--surface-hi); cursor: zoom-in;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out), filter var(--dur) ease; }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(12,13,14,.85) 0%, rgba(12,13,14,0) 55%);
  transition: opacity var(--dur) ease;
}
.gallery__cap {
  position: absolute; left: var(--s3); right: var(--s3); bottom: var(--s3); z-index: 1;
  text-align: left; font-weight: 700; font-stretch: 85%; font-size: .875rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.2;
}
.gallery__item:hover img { transform: scale(1.05); }
.note { margin-top: var(--s5); font-size: .8125rem; color: var(--text-dim); }

/* ---------- About ---------- */
.about { display: grid; gap: var(--s7); align-items: start; }
@media (min-width: 1024px) { .about { grid-template-columns: 1.05fr 1fr; gap: var(--s8); align-items: center; } }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
.about__media::before {
  content: ""; position: absolute; inset: auto auto -12px -12px; width: 45%; height: 45%;
  border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); z-index: -1;
}
.about__badge {
  position: absolute; right: var(--s4); bottom: calc(-1 * var(--s6));
  max-width: 220px; padding: var(--s4) var(--s5);
  background: var(--orange); color: var(--on-orange);
}
.about__badge-num { display: block; font-size: 2.75rem; font-weight: 900; font-stretch: 78%; line-height: 1; }
.about__badge-txt { display: block; font-weight: 600; font-size: .875rem; line-height: 1.3; margin-top: 4px; }
.about__body > p:not(.kicker) { margin-top: var(--s4); color: var(--text-muted); font-size: 1.0625rem; max-width: 62ch; }
.about__body > p strong { color: var(--text); }
.about__body .section__title { margin-bottom: var(--s2); }
@media (max-width: 1023px) { .about__body { margin-top: var(--s5); } }

.timeline { margin-top: var(--s6); border-left: 2px solid var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: var(--s4); padding: 0 0 var(--s4) var(--s5); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px;
  background: var(--bg); border: 2px solid var(--orange); transform: rotate(45deg);
}
.timeline li:last-child::before { background: var(--orange); }
.timeline__year { font-family: var(--mono); font-weight: 500; font-size: .875rem; color: var(--orange); padding-top: 1px; }
.timeline li span:last-child { color: var(--text-muted); font-size: .9375rem; }

.values__title { margin-top: var(--s9); margin-bottom: var(--s5); font-size: 1.75rem; font-weight: 900; font-stretch: 80%; text-transform: uppercase; }
.values { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .values { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
.value { padding: var(--s6) var(--s5); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brown); }
.value__num { font-family: var(--mono); font-size: .75rem; color: var(--orange); }
.value h4 { margin: var(--s3) 0 var(--s2); font-size: 1.25rem; font-weight: 800; font-stretch: 85%; text-transform: uppercase; }
.value p { color: var(--text-muted); font-size: .9375rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--s9); text-align: center; }
.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,19,20,.88), rgba(18,19,20,.82)); }
.cta-band__inner { display: flex; flex-direction: column; align-items: center; gap: var(--s4); }
.cta-band__title { font-size: clamp(1.875rem, 4.5vw, 3.25rem); font-weight: 900; font-stretch: 80%; text-transform: uppercase; max-width: 20ch; text-wrap: balance; line-height: 1; }
.cta-band p { color: #D9D5CF; font-size: 1.125rem; margin-bottom: var(--s3); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: var(--s7); }
@media (min-width: 1024px) { .contact { grid-template-columns: 1fr 1.15fr; gap: var(--s8); } }
.contact__list { margin-top: var(--s6); display: grid; gap: var(--s5); }
.contact__list li { display: flex; gap: var(--s4); align-items: flex-start; }
.contact__list .icon { width: 22px; height: 22px; color: var(--orange); margin-top: 3px; }
.contact__label { display: block; font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 2px; }
.contact__list a { text-decoration: none; font-weight: 600; font-size: 1.0625rem; }
.contact__list a:hover { color: var(--orange); }

.form { background: var(--surface); border: 1px solid var(--line); padding: var(--s5); display: grid; gap: var(--s4); }
@media (min-width: 768px) { .form { padding: var(--s6); } }
.form__row { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9375rem; }
.req { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid #4A5056; border-radius: var(--radius);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; cursor: pointer; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #6B7279; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,127,50,.3); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #FF6B6B; }
.field__help { font-size: .8125rem; color: var(--text-dim); }
.field__err { font-size: .875rem; color: #FF8A8A; min-height: 0; }
.field__err:empty { display: none; }
.form__req { font-size: .8125rem; color: var(--text-dim); }
.form__status { font-size: .9375rem; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #7FD99A; }
.form__status.is-err { color: #FF8A8A; }

/* ---------- Footer ---------- */
.footer { background: #0B0C0D; border-top: 3px solid var(--orange); padding-top: var(--s8); color: var(--text-muted); font-size: .9375rem; }
.footer__inner { display: grid; gap: var(--s6); padding-bottom: var(--s7); }
@media (min-width: 768px) { .footer__inner { grid-template-columns: 2fr 1fr 1fr; gap: var(--s7); } }
.footer__brand img { width: 220px; margin-bottom: var(--s4); }
.footer__brand p { max-width: 42ch; }
.footer__h { font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: var(--s4); }
.footer__col ul { display: grid; gap: var(--s2); }
.footer__col a { text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.footer__col a:hover { color: var(--text); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); padding-block: var(--s5); border-top: 1px solid var(--line-soft); font-size: .8125rem; color: var(--text-dim); }
.footer__top { text-decoration: none; }
.footer__top:hover { color: var(--text); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8,8,9,.96); color: var(--text);
}
.lightbox::backdrop { background: rgba(0,0,0,.7); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: lb-in var(--dur) var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__fig { display: flex; flex-direction: column; align-items: center; gap: var(--s3); padding: 64px var(--s4) var(--s5); max-width: 100%; max-height: 100%; }
.lightbox__img { max-width: min(1400px, 100%); max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; }
.lightbox__cap { font-size: .9375rem; color: var(--text-muted); text-align: center; }
.lightbox__btn {
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius);
  background: rgba(20,21,22,.8); cursor: pointer; transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.lightbox__btn:hover { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.lightbox__close { top: var(--s4); right: var(--s4); }
.lightbox__prev { left: var(--s4); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--s4); top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: var(--s4); transform: none; }
}

/* ---------- Current project ---------- */
.current__inner { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 1024px) { .current__inner { grid-template-columns: 1fr 1.25fr; gap: var(--s8); } }
.live {
  display: flex; width: fit-content; align-items: center; gap: var(--s2); margin-bottom: var(--s4);
  padding: 6px 12px; border: 1px solid var(--orange); border-radius: 999px;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange);
}
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.current__meta { margin-top: var(--s3); }
.current__prime { margin-top: var(--s2); font-size: .9375rem; color: var(--text-muted); }
.current__prime strong { color: var(--text); }
.current .section__lead { margin-top: var(--s4); }
.scope { margin-top: var(--s5); display: grid; gap: var(--s3); }
.scope li { display: flex; gap: var(--s3); align-items: flex-start; padding-bottom: var(--s3); border-bottom: 1px solid var(--line-soft); }
.scope .icon { color: var(--orange); margin-top: 4px; }
.current__media { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; gap: var(--s2); }
@media (min-width: 768px) { .current__media { grid-auto-rows: 170px; gap: var(--s3); } }
.current__media li { display: contents; }
.current__main .gallery__item { grid-column: 1 / -1; grid-row: span 2; }

/* ---------- Crew strip ---------- */
.crew { display: grid; gap: var(--s3); grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .crew { grid-template-columns: 2fr 1fr 1fr; } }
.crew__wide { grid-column: 1 / -1; }
@media (min-width: 900px) { .crew__wide { grid-column: auto; } }
.crew figure { display: flex; flex-direction: column; height: 100%; }
.crew img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
@media (min-width: 900px) { .crew li:not(.crew__wide) img { flex: 1; min-height: 0; aspect-ratio: auto; } }
.crew figcaption { margin-top: var(--s2); font-size: .875rem; color: var(--text-muted); }

/* ---------- Equipment ---------- */
.equip { border-top: 1px solid var(--line-soft); }
.equip__inner { display: grid; gap: var(--s7); align-items: start; }
@media (min-width: 1200px) { .equip__inner { grid-template-columns: 1.2fr 1fr; gap: var(--s8); } }
.equip__list { margin-top: var(--s6); display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .equip__list { grid-template-columns: 1fr 1fr; column-gap: var(--s6); } }
.equip__item { display: flex; gap: var(--s4); padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.equip__icon { flex: none; width: 32px; height: 32px; fill: none; stroke: var(--orange); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.equip__item h3 { font-size: 1.125rem; font-weight: 800; font-stretch: 85%; text-transform: uppercase; margin-bottom: var(--s2); }
.equip__count { font-family: var(--mono); font-size: .8125rem; font-weight: 500; color: var(--orange); margin-left: 4px; }
.equip__item p { color: var(--text-muted); font-size: .9375rem; }
.equip__media { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.equip__media li { aspect-ratio: 3 / 4; }
@media (min-width: 1200px) { .equip__media { position: sticky; top: calc(var(--header-h) + var(--s5)); } }

/* ---------- Markets ---------- */
.markets { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.markets li {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-muted);
}

/* ---------- Project experience ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.chip {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: .875rem; color: var(--text-muted);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.chip:hover { border-color: var(--text-muted); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.chip__n { font-family: var(--mono); font-size: .75rem; opacity: .75; }
.exp-list { display: grid; gap: var(--s3); }
@media (min-width: 700px) { .exp-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .exp-list { grid-template-columns: repeat(3, 1fr); } }
.exp { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brown); }
.exp[hidden] { display: none; }
.exp__cat { font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.exp__title { font-weight: 600; line-height: 1.4; }
.exp__loc { margin-top: auto; font-size: .875rem; color: var(--text-dim); }
.exp-more { margin-top: var(--s5); }
.exp-more[hidden] { display: none; }

/* ---------- Footer slogan ---------- */
.footer__slogan { font-size: 1.5rem; font-weight: 900; font-stretch: 80%; text-transform: uppercase; color: var(--orange); margin-bottom: var(--s2); }

/* ---------- Clients ---------- */
.clients { padding-block: var(--s8); background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.clients__title { display: flex; flex-direction: column; gap: var(--s2); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; font-stretch: 80%; text-transform: uppercase; margin-bottom: var(--s6); }
.clients__title .kicker { margin: 0; font-weight: 400; }
.clients__list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 768px) { .clients__list { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .clients__list { grid-template-columns: repeat(5, 1fr); } }
.clients__list li {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 96px; padding: var(--s4);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-weight: 800; font-stretch: 85%; font-size: .9375rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .02em; color: var(--text-muted);
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.clients__list li:hover { color: var(--text); background: var(--surface); }
.exp__client { font-size: .875rem; font-weight: 600; color: var(--text-muted); margin-top: auto; }
.exp__client + .exp__loc { margin-top: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (min-width: 1400px) { .nav__list { gap: var(--s5); } .nav { gap: var(--s6); } }
