/* ================================================================
   OrrenMashk Group Inc. | Watchful Strength
   Main Stylesheet | v2.0 | 2026-10-26
   ================================================================
   Design system notes:
   - Dark palette, serif-driven analytical identity
   - Headings: Source Serif 4 (fallback Georgia)
   - Body: Inter (fallback system-ui / Segoe UI / Helvetica)
   - Mono: JetBrains Mono (fallback Consolas / Monaco)
   - WCAG 2.1 AA contrast ratios verified
   - No JavaScript dependency on critical path
   ================================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #D9D9D6;
  background-color: #0A0A0A;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Design tokens ---------- */
:root {
  --om-black: #0A0A0A;
  --om-ink: #141414;
  --om-panel: #1A1A1A;
  --om-panel-raised: #222222;
  --om-rule: #2E2E2E;
  --om-text: #D9D9D6;
  --om-text-muted: #9A9A95;
  --om-text-dim: #6E6E68;
  --om-text-bright: #F2F2EC;
  --om-gold: #C9A961;
  --om-gold-dim: #8F7A47;
  --om-gold-bright: #E4C77A;
  --om-link: #E4C77A;
  --om-link-hover: #F2E0A4;
  --om-accent-rule: #C9A961;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.75rem;
  --fs-4xl: 3.5rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --container-max: 1180px;
  --container-narrow: 820px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--om-text-bright);
  letter-spacing: -0.015em;
}

h1 { font-size: var(--fs-4xl); font-weight: 600; }
h2 { font-size: var(--fs-3xl); margin-bottom: var(--space-6); }
h3 { font-size: var(--fs-2xl); margin-bottom: var(--space-4); }
h4 { font-size: var(--fs-xl); margin-bottom: var(--space-3); }
h5 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }

p { margin-bottom: var(--space-4); }
p + p { margin-top: var(--space-4); }

a { color: var(--om-link); text-decoration: none; transition: color 0.15s ease; }
a:hover, a:focus { color: var(--om-link-hover); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--om-gold); outline-offset: 3px; border-radius: 2px; }

.mono { font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace; font-size: 0.95em; letter-spacing: 0; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--om-gold);
  margin-bottom: var(--space-4);
  display: block;
}

.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--om-text); }

.gold-rule {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: var(--om-gold);
  margin-bottom: var(--space-6);
  vertical-align: middle;
}

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-6); }

section { padding: var(--space-20) 0; }
section + section { border-top: 1px solid var(--om-rule); }

.section-ink { background-color: var(--om-ink); }
.section-panel { background-color: var(--om-panel); }

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--om-gold);
  color: var(--om-black);
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  z-index: 1000;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* ---------- Header & navigation ---------- */
.site-header {
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--om-rule);
  position: sticky; top: 0; z-index: 50;
  /* Note: backdrop-filter was removed intentionally; it creates a new
     containing block that traps the fixed-positioned mobile drawer. */
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  gap: var(--space-6);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--om-text-bright);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-brand:hover { text-decoration: none; color: var(--om-gold-bright); }
.nav-brand img { height: 36px; width: auto; }
.nav-brand .brand-mark-text { line-height: 1; }
.nav-brand .brand-mark-text .orren { color: var(--om-text-bright); font-weight: 400; }
.nav-brand .brand-mark-text .mashk { color: var(--om-gold); font-weight: 700; }
.nav-brand .brand-mark-text .group { display: block; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.22em; color: var(--om-text-muted); margin-top: 2px; text-transform: uppercase; font-family: 'Inter', sans-serif; }

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-6);
  align-items: center;
}
.nav-links a {
  color: var(--om-text);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  padding: var(--space-2) 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--om-gold-bright);
  border-bottom-color: var(--om-gold);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--om-rule);
  color: var(--om-text);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  font-size: var(--fs-sm);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--space-24) 0 var(--space-20);
  background:
    radial-gradient(ellipse at top right, rgba(201, 169, 97, 0.08), transparent 60%),
    linear-gradient(180deg, var(--om-black) 0%, var(--om-ink) 100%);
  position: relative;
}
.hero-content { max-width: 760px; }
.hero h1 {
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}
.hero h1 .tagline { display: block; color: var(--om-gold); font-style: italic; font-size: 0.56em; font-weight: 400; margin-top: var(--space-3); letter-spacing: 0.02em; }
.hero .hero-sub { font-size: var(--fs-lg); color: var(--om-text); margin-bottom: var(--space-8); max-width: 620px; }
.hero-ctas { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-8); }
.hero-meta {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--om-rule);
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: var(--om-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-meta .dot { color: var(--om-gold); margin: 0 var(--space-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--om-gold);
  color: var(--om-black);
  border-color: var(--om-gold);
}
.btn-primary:hover, .btn-primary:focus { background: var(--om-gold-bright); border-color: var(--om-gold-bright); color: var(--om-black); text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--om-text-bright);
  border-color: var(--om-rule);
}
.btn-secondary:hover, .btn-secondary:focus { border-color: var(--om-gold); color: var(--om-gold-bright); text-decoration: none; }

/* ---------- Grid patterns ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

/* ---------- Capability tiles ---------- */
.cap-tile {
  background: var(--om-panel);
  border: 1px solid var(--om-rule);
  padding: var(--space-8);
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cap-tile:hover { border-color: var(--om-gold-dim); }
.cap-tile .cap-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--om-gold);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-3);
  display: block;
}
.cap-tile h3 { font-size: var(--fs-xl); margin-bottom: var(--space-3); color: var(--om-text-bright); }
.cap-tile p { color: var(--om-text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-4); }
.cap-tile .cap-link { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }

/* ---------- Operational function cards ---------- */
.func-card {
  background: linear-gradient(145deg, var(--om-panel), var(--om-ink));
  border: 1px solid var(--om-rule);
  border-left: 3px solid var(--om-gold);
  padding: var(--space-8);
}
.func-card .func-abbr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 500;
  color: var(--om-gold);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: var(--space-2);
}
.func-card h3 { font-size: var(--fs-xl); margin-bottom: var(--space-3); }
.func-card p { color: var(--om-text-muted); font-size: var(--fs-sm); }
.func-card .tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.func-card .tag { font-size: var(--fs-xs); color: var(--om-text-dim); border: 1px solid var(--om-rule); padding: 2px 8px; border-radius: 2px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Identifier panel ---------- */
.id-panel {
  background: var(--om-ink);
  border: 1px solid var(--om-rule);
  padding: var(--space-8);
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-sm);
}
.id-panel dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-3) var(--space-6); }
.id-panel dt { color: var(--om-text-muted); text-transform: uppercase; font-size: var(--fs-xs); letter-spacing: 0.1em; align-self: center; }
.id-panel dd { color: var(--om-text-bright); font-weight: 500; }
.id-panel dd.copyable { cursor: text; user-select: all; }

/* ---------- Engagement tile ---------- */
.engagement-tile {
  background: var(--om-panel);
  border: 1px solid var(--om-rule);
  padding: var(--space-8);
  border-top: 3px solid var(--om-gold);
}
.engagement-tile .engagement-meta { font-family: 'JetBrains Mono', monospace; font-size: var(--fs-xs); color: var(--om-text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: var(--space-3); }
.engagement-tile h3 { font-size: var(--fs-xl); margin-bottom: var(--space-4); }
.engagement-tile dl { margin-top: var(--space-4); }
.engagement-tile dt { color: var(--om-gold); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; margin-top: var(--space-3); font-weight: 600; }
.engagement-tile dd { color: var(--om-text); margin-bottom: var(--space-3); }

/* ---------- Form ---------- */
.contact-form { display: grid; gap: var(--space-4); max-width: 640px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-field label { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--om-gold); margin-bottom: var(--space-2); font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: var(--om-ink);
  border: 1px solid var(--om-rule);
  color: var(--om-text-bright);
  padding: var(--space-3) var(--space-4);
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-base);
  border-radius: 2px;
  transition: border-color 0.15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--om-gold);
}
.form-field textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--om-ink);
  border-top: 1px solid var(--om-rule);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-20);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-8); margin-bottom: var(--space-12); }
.footer-brand p { color: var(--om-text-muted); font-size: var(--fs-sm); max-width: 320px; }
.footer-col h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--om-gold); margin-bottom: var(--space-4); font-family: 'Inter', sans-serif; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--space-2); }
.footer-col a { color: var(--om-text-muted); font-size: var(--fs-sm); }
.footer-col a:hover { color: var(--om-gold-bright); }
.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--om-rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--fs-xs);
  color: var(--om-text-dim);
}
.footer-bottom .watchful { color: var(--om-gold); font-style: italic; font-family: 'Source Serif 4', Georgia, serif; letter-spacing: 0.08em; }

/* ---------- Prose (content pages) ---------- */
.prose { max-width: 740px; }
.prose p { font-size: var(--fs-base); line-height: 1.7; margin-bottom: var(--space-4); color: var(--om-text); }
.prose h2 { font-size: var(--fs-2xl); margin-top: var(--space-12); margin-bottom: var(--space-4); color: var(--om-text-bright); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-xl); margin-top: var(--space-8); margin-bottom: var(--space-3); color: var(--om-text-bright); }
.prose strong { color: var(--om-text-bright); font-weight: 600; }
.prose em { color: var(--om-gold-bright); font-style: italic; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: var(--space-20) 0 var(--space-12);
  background: linear-gradient(180deg, var(--om-ink) 0%, var(--om-black) 100%);
  border-bottom: 1px solid var(--om-rule);
}
.page-header .breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--om-text-dim);
  margin-bottom: var(--space-4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.page-header .breadcrumb a { color: var(--om-text-muted); }
.page-header .breadcrumb a:hover { color: var(--om-gold); }
.page-header h1 { font-size: var(--fs-3xl); margin-bottom: var(--space-4); }
.page-header .page-sub { font-size: var(--fs-lg); color: var(--om-text-muted); max-width: 680px; }

/* ---------- Compliance notice banner ---------- */
.compliance-note {
  background: var(--om-ink);
  border: 1px solid var(--om-gold-dim);
  border-left: 3px solid var(--om-gold);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  font-size: var(--fs-sm);
  color: var(--om-text-muted);
}
.compliance-note strong { color: var(--om-gold-bright); display: block; margin-bottom: var(--space-1); text-transform: uppercase; font-size: var(--fs-xs); letter-spacing: 0.1em; }

/* ---------- Mobile slide-in nav drawer ---------- */

/* Backdrop (injected by nav.js) — hidden by default on all viewports */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 90;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Drawer-only elements (header strip and footer CTA inside the drawer).
   Hidden at desktop widths, revealed inside the drawer at mobile widths. */
.nav-drawer-header,
.nav-drawer-footer {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root {
    --fs-4xl: 2.5rem;
    --fs-3xl: 2.125rem;
    --fs-2xl: 1.625rem;
    --space-20: 3.5rem;
    --space-24: 4.5rem;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: var(--space-6); }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .hero { padding: var(--space-16) 0 var(--space-12); }

  /* Slide-in drawer at mobile widths. The <ul class="nav-links"> becomes
     the drawer surface. It's absolutely positioned, slides in from the right
     via transform, and gets its own padding, scroll, and chrome. */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86vw;
    max-width: 360px;
    background: linear-gradient(180deg, #141414 0%, #0F0F0F 100%);
    border-left: 1px solid var(--om-rule);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;

    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 100;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .nav-links.is-open {
    transform: translateX(0);
  }

  /* Drawer header: eyebrow label on left, close button on right */
  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6) var(--space-6) var(--space-4);
    border-bottom: 1px solid var(--om-rule);
    margin-bottom: var(--space-2);
  }
  .nav-drawer-header .drawer-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--om-gold);
  }
  .nav-drawer-close {
    background: transparent;
    border: 1px solid var(--om-rule);
    color: var(--om-text);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 2px;
    padding: 0;
    transition: border-color 0.15s ease, color 0.15s ease;
  }
  .nav-drawer-close:hover,
  .nav-drawer-close:focus-visible {
    border-color: var(--om-gold);
    color: var(--om-gold-bright);
    outline: none;
  }

  /* Nav items inside the drawer */
  .nav-links li {
    width: 100%;
    display: block;
  }
  .nav-links a {
    display: block;
    padding: var(--space-4) var(--space-6);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--om-text-bright);
    border: none;
    border-left: 2px solid transparent;
    text-decoration: none;
  }
  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    color: var(--om-gold-bright);
    border-left-color: var(--om-gold);
    background: rgba(201, 169, 97, 0.06);
    border-bottom: none;
  }

  /* Drawer footer: CTA + company data */
  .nav-drawer-footer {
    display: block;
    margin-top: auto;
    padding: var(--space-6);
    border-top: 1px solid var(--om-rule);
  }
  .nav-drawer-footer .btn {
    width: 100%;
    margin-bottom: var(--space-6);
  }
  .nav-drawer-footer .drawer-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6875rem;
    color: var(--om-text-dim);
    letter-spacing: 0.08em;
    line-height: 1.7;
  }
  .nav-drawer-footer .drawer-meta span {
    display: block;
  }
  .nav-drawer-footer .drawer-meta .gold {
    color: var(--om-gold);
  }

  /* Lock page scroll when drawer is open */
  body.nav-drawer-open {
    overflow: hidden;
  }
}

@media (max-width: 560px) {
  :root { --fs-4xl: 2.125rem; --fs-3xl: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .id-panel dl { grid-template-columns: 1fr; gap: var(--space-1); }
  .id-panel dt { margin-top: var(--space-3); }
}

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

/* ---------- Print ---------- */
@media print {
  body { background: white; color: black; }
  .site-header, .site-footer, .nav-toggle { display: none; }
  a { color: black; text-decoration: underline; }
}
