/* ============================================================
   P03 — Final polish pass
   Refinement only · no new sections · no redesign
   ============================================================ */

body.ops-home {
  --ops-void: #0c0d0f;
  --ops-graphite: #141518;
  --ops-white: #f3f1ec;
  --ops-mute: #9a958e;
  --ops-copper: #b87333;
  --ops-blue: #1e4d8c;
  --ops-hairline: rgba(243, 241, 236, 0.08);
  --ops-hairline-strong: rgba(243, 241, 236, 0.14);
  --ops-radius: 2px;
  --ops-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ops-grade:
    saturate(0.78)
    contrast(0.94)
    brightness(0.93)
    sepia(0.12)
    hue-rotate(-8deg);
}

/* ---- PASS 01 · Logo system (original mark + color filters) ---- */
body.ops-home .nav__brand {
  gap: 0;
}

body.ops-home .nav__logo,
body.ops-home .nav__brand > img.nav__logo,
body.ops-home .nav__brand-text {
  display: none !important;
}

.ops-logo {
  position: relative;
  display: block;
  width: 72px;
  height: 52px;
  flex-shrink: 0;
}

.ops-logo__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  opacity: 0;
  transition: opacity 250ms ease;
  /* baseline: keep original corporate blue reading */
  filter: none;
}

/* Corporate Blue — original brand color, lightly clarified */
.ops-logo__layer--blue {
  filter: saturate(1.05) contrast(1.02) brightness(1.02);
}

/* Editorial White — monochrome light for dark fields */
.ops-logo__layer--white {
  filter: grayscale(1) brightness(0) invert(1) contrast(1.05);
}

/* Copper — warm institutional metal */
.ops-logo__layer--copper {
  filter: grayscale(1) sepia(1) saturate(2.8) hue-rotate(-10deg) brightness(0.95) contrast(1.05);
}

body.ops-home [data-ops-logo][data-logo-tone="blue"] .ops-logo__layer--blue,
body.ops-home [data-ops-logo][data-logo-tone="white"] .ops-logo__layer--white,
body.ops-home [data-ops-logo][data-logo-tone="copper"] .ops-logo__layer--copper {
  opacity: 1;
}

/* Default before JS */
body.ops-home [data-ops-logo]:not([data-logo-tone]) .ops-logo__layer--white {
  opacity: 1;
}

/* Footer — original logo, white filter on dark footer */
body.ops-home .footer__logo,
body.ops-home .ops-logo-footer {
  display: block !important;
  height: 56px;
  width: auto;
  margin-bottom: 14px;
  filter: grayscale(1) brightness(0) invert(1) contrast(1.05);
  opacity: 0.92;
}

.ops-logo--footer {
  display: none !important;
}

/* ---- PASS 02 · Unified editorial grade ---- */
body.ops-home .ops-hero__photo,
body.ops-home .ops-story__media img,
body.ops-home .ops-story__frame img {
  filter: var(--ops-grade) !important;
}

/* Cool graphite veil wash — preserves copper warmth in photos underneath */
body.ops-home .ops-hero__veil {
  background:
    linear-gradient(
      180deg,
      rgba(12, 13, 15, 0.48) 0%,
      rgba(12, 13, 15, 0.14) 30%,
      rgba(18, 16, 14, 0.22) 52%,
      rgba(12, 13, 15, 0.82) 84%,
      rgba(12, 13, 15, 0.96) 100%
    );
}

body.ops-home .ops-story__media::after,
body.ops-home .ops-story--bleed .ops-story__frame::after,
body.ops-home .ops-story--proof .ops-story__frame::after {
  mix-blend-mode: multiply;
  opacity: 0.55;
}

body.ops-home .ops-story--bleed .ops-story__frame::after,
body.ops-home .ops-story--proof .ops-story__frame::after {
  opacity: 1;
  mix-blend-mode: normal;
  background:
    linear-gradient(
      180deg,
      rgba(12, 13, 15, 0.32) 0%,
      rgba(12, 13, 15, 0.12) 38%,
      rgba(12, 13, 15, 0.9) 100%
    );
}

/* ---- PASS 03 · Consistency ---- */
body.ops-home .nav {
  border-radius: var(--ops-radius);
  border-color: var(--ops-hairline);
  box-shadow: none;
  background: rgba(12, 13, 15, 0.42);
  backdrop-filter: blur(18px) saturate(0.9);
  -webkit-backdrop-filter: blur(18px) saturate(0.9);
  transition: background 250ms ease, border-color 250ms ease, top var(--transition, 0.3s ease);
}

body.ops-home .nav.is-scrolled {
  background: rgba(12, 13, 15, 0.82);
  border-color: var(--ops-hairline-strong);
  box-shadow: none;
}

body.ops-home .nav__link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(243, 241, 236, 0.62);
  transition: color 250ms ease;
}

body.ops-home .nav__link::after {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ops-copper);
  box-shadow: none;
  bottom: -4px;
  transition: transform 250ms var(--ops-ease);
}

body.ops-home .nav__toggle span {
  border-radius: 1px;
  background: var(--ops-white);
}

body.ops-home .ops-story,
body.ops-home .ops-story--world,
body.ops-home .ops-story--integrity,
body.ops-home .ops-story--return,
body.ops-home .ops-story--engineering {
  border-top-color: var(--ops-hairline);
}

body.ops-home .ops-ledger,
body.ops-home .ops-module-ledger,
body.ops-home .ops-cutaway__legend,
body.ops-home .ops-proof {
  border-top-color: var(--ops-hairline-strong);
}

body.ops-home .ops-module-ledger__row,
body.ops-home .ops-proof li {
  border-bottom-color: var(--ops-hairline);
}

body.ops-home .ops-proof li:nth-child(odd) {
  border-right-color: var(--ops-hairline);
}

body.ops-home .ops-story__tag,
body.ops-home .ops-hero__label {
  letter-spacing: 0.26em;
  line-height: 1.2;
}

body.ops-home .ops-story__title {
  line-height: 1.04;
  margin-bottom: 18px;
}

body.ops-home .ops-story__dek {
  line-height: 1.58;
}

body.ops-home .ops-story__copy {
  padding-left: clamp(32px, 5vw, 72px);
  padding-right: clamp(32px, 5vw, 72px);
}

body.ops-home .ops-story--bleed .ops-story__copy,
body.ops-home .ops-story--proof .ops-story__copy {
  width: min(1100px, calc(100% - 64px));
}

body.ops-home .ops-story--engineering {
  padding-left: clamp(32px, 5vw, 72px);
  padding-right: clamp(32px, 5vw, 72px);
}

body.ops-home .ops-cutaway__svg .cut-layer {
  transition: stroke-dashoffset 2s var(--ops-ease);
}

body.ops-home .ops-cutaway__svg .cut-fill {
  transition: opacity 1.2s ease 0.5s;
}

body.ops-home .ops-cutaway__svg text {
  font-size: 11px;
  letter-spacing: 0.18em;
}

/* ---- PASS 04 · Motion restraint ---- */
/* Opacity only — no vertical travel, no decorative scale */
body.ops-home .ops-story [data-ops-reveal] {
  opacity: 0;
  transform: none !important;
  transition: opacity 1s ease;
}

body.ops-home .ops-story.is-inview [data-ops-reveal] {
  opacity: 1;
}

body.ops-home .ops-story.is-inview [data-ops-reveal="1"] { transition-delay: 0.04s; }
body.ops-home .ops-story.is-inview [data-ops-reveal="2"] { transition-delay: 0.14s; }
body.ops-home .ops-story.is-inview [data-ops-reveal="3"] { transition-delay: 0.24s; }

body.ops-home .ops-story__media img,
body.ops-home .ops-story__frame img {
  /* Grade handled above; motion = JS translate only — no scale zoom */
  transition: none;
  will-change: transform;
}

body.ops-home .ops-hero__cta,
body.ops-home .btn--primary,
body.ops-home .btn--secondary,
body.ops-home .nav__cta .btn--primary {
  transform: none !important;
}

body.ops-home .ops-hero__cta:hover,
body.ops-home .btn--primary:hover,
body.ops-home .btn--secondary:hover,
body.ops-home .nav__cta .btn--primary:hover {
  transform: none !important;
}

/* ---- PASS 05 · Micro details ---- */
body.ops-home .btn,
body.ops-home .ops-hero__cta {
  padding: 13px 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  border-radius: var(--ops-radius);
  transition: color 250ms ease, background 250ms ease, border-color 250ms ease, opacity 250ms ease;
}

body.ops-home .btn--primary,
body.ops-home .ops-hero__cta {
  background: var(--ops-white);
  color: var(--ops-void);
  border: 1px solid var(--ops-white);
  box-shadow: none;
}

body.ops-home .btn--primary:hover,
body.ops-home .ops-hero__cta:hover {
  background: transparent;
  color: var(--ops-copper);
  border-color: var(--ops-copper);
  box-shadow: none;
}

body.ops-home .btn--secondary {
  background: transparent;
  color: var(--ops-white);
  border: 1px solid rgba(243, 241, 236, 0.28);
  box-shadow: none;
  backdrop-filter: none;
}

body.ops-home .btn--secondary:hover {
  color: var(--ops-copper);
  border-color: var(--ops-copper);
  box-shadow: none;
}

body.ops-home .nav__cta .btn--primary {
  background: transparent;
  color: var(--ops-white);
  border: 1px solid rgba(243, 241, 236, 0.28);
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

body.ops-home .nav__cta .btn--primary:hover {
  border-color: var(--ops-copper);
  color: var(--ops-copper);
  background: transparent;
}

body.ops-home .btn:focus-visible,
body.ops-home .ops-hero__cta:focus-visible,
body.ops-home .nav__link:focus-visible,
body.ops-home .nav__brand:focus-visible,
body.ops-home .ops-module-ledger a:focus-visible,
body.ops-home .ops-hero__scroll:focus-visible {
  outline: 1px solid var(--ops-copper);
  outline-offset: 3px;
}

body.ops-home .ops-hero__scroll {
  bottom: 32px;
  gap: 10px;
  opacity: 0;
}

body.ops-home .ops-hero.is-ready .ops-hero__scroll {
  opacity: 0.45;
}

body.ops-home .ops-hero__scroll:hover {
  opacity: 0.85;
  color: var(--ops-white);
}

body.ops-home .ops-hero__scroll-label {
  font-size: 9px;
  letter-spacing: 0.28em;
  font-weight: 500;
}

body.ops-home .ops-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(243, 241, 236, 0.5), rgba(243, 241, 236, 0));
}

body.ops-home .ops-hero__label::after {
  width: 24px;
  height: 1px;
  background: var(--ops-copper);
}

body.ops-home .ops-module-ledger a {
  transition: color 250ms ease;
}

body.ops-home .ops-module-ledger__row {
  padding: 15px 0;
  gap: 14px;
}

body.ops-home .ops-module-ledger__idx {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
}

body.ops-home .ops-ledger {
  gap: 20px 24px;
  margin-top: 36px;
  padding-top: 24px;
}

body.ops-home .ops-proof {
  margin-top: 32px;
}

body.ops-home .ops-proof li {
  padding: 16px 20px 16px 0;
  gap: 5px;
}

body.ops-home .footer {
  border-top: 1px solid var(--ops-hairline);
  background: var(--ops-void);
  color: var(--ops-mute);
}

body.ops-home .footer a {
  transition: color 250ms ease;
  color: rgba(243, 241, 236, 0.72);
}

body.ops-home .footer h4 {
  color: var(--ops-white);
  letter-spacing: 0.08em;
  font-size: 12px;
  text-transform: uppercase;
}

body.ops-home .footer__cert {
  border-radius: var(--ops-radius);
  border: 1px solid var(--ops-hairline);
  box-shadow: none;
  background: transparent;
  color: var(--ops-mute);
}

body.ops-home .footer__bottom {
  border-top-color: var(--ops-hairline);
}

/* Mobile nav panel — match graphite system */
@media (max-width: 768px) {
  body.ops-home .nav__links {
    border-radius: var(--ops-radius);
    border-color: var(--ops-hairline);
    background: rgba(12, 13, 15, 0.94);
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ops-home .ops-logo__layer,
  body.ops-home .nav__brand-text {
    transition: none !important;
  }
}
