/* ═══════════════════════════════════════════
   SILENT FOUNDRY — SHARED STYLES
   ═══════════════════════════════════════════ */



*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --white: #f4f1ec;
  --cream: #ede8e0;
  --accent: #c8a96e;
  --logo-color: #c8a96e;   /* nav logo wordmark — change this to recolor logo on every page */
  --mid: #6b6560;
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
/* Fallback - if JS fails, show everything */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  transition: opacity 0.4s ease;
}
nav.scrolled {
  opacity: 0.3;
}
nav.scrolled:hover {
  opacity: 1;
}
nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.95) 0%, transparent 100%);
  pointer-events: none;
}
.nav-logo {
  font-family: var(--font-display);
  color: var(--white);
  text-decoration: none;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  align-self: center;
}

/* ── SILENT FOUNDRY MARK ── shared by nav + footer */
.sf-mark {
  position: relative;
  display: inline-block;
  font-size: 53px;          /* nav size — footer overrides */
  line-height: 0.76;
  /* skewX removed - the wordmark must sit level on screen and in print.
     The 4deg engineering motif is retained on glyphs, dots and buttons site-wide. */
}
.sf-mark-line {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  -webkit-text-stroke: 0.5px rgba(244,241,236,0.7);
}
.sf-mark-line--silent {
  padding-left: 0.3em;
}
.sf-mark-ring {
  display: inline;
  font-family: var(--font-display);
  font-size: 0.85em;
  color: var(--accent);
  -webkit-text-stroke: 0;
  line-height: inherit;
  vertical-align: baseline;
  margin-left: 0.04em;
}

/* Nav link ◎ substitution */
.nav-ring {
  color: var(--accent);
  font-style: normal;
  display: inline-block;
  /* skewX removed - part of the wordmark, must stay level */
}

/* Footer variant */
.footer-logo {
  text-decoration: none;
  display: inline-block;
  margin-bottom: 8px;
}
.footer-logo .sf-mark {
  font-size: 42px;
}
.footer-logo .sf-mark-line {
  -webkit-text-stroke-color: rgba(244,241,236,0.55);
  color: rgba(244,241,236,0.7);
}
.footer-logo .sf-mark-ring {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  position: relative;
  z-index: 1;
  align-items: center;
  align-self: center;
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: none;
  font-weight: 300;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; }

/* Gold box nav buttons */
.nav-btn {
  font-family: var(--font-body) !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  border: 0.5px solid rgba(200,169,110,0.75) !important;
  color: rgba(200,169,110,1) !important;
  padding: 4px 10px !important;
  transition: all 0.2s !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}
.nav-btn:hover {
  background: rgba(200,169,110,0.1) !important;
  opacity: 1 !important;
}
.nav-btn-grey {
  border-color: rgba(244,241,236,0.25) !important;
  color: rgba(244,241,236,0.4) !important;
}
.nav-btn-grey:hover {
  background: rgba(244,241,236,0.05) !important;
  color: rgba(244,241,236,0.7) !important;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.12em;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ── LABEL ── */
.label {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

/* ── MARQUEE ── */
.marquee-wrap {
  background: var(--accent);
  overflow: hidden;
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--black);
  padding: 0 36px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── DIVIDER ── */
.divider {
  width: 100%;
  height: 1px;
  background: rgba(244,241,236,0.08);
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: none;
  padding: 72px 48px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h5 {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.footer-col p, .footer-col address {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--mid);
  font-style: normal;
}
.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: var(--mid);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding: 16px 48px;
  border-top: none;
  background: var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom span {
  font-size: 0.75rem;
  color: rgba(244,241,236,0.25);
  letter-spacing: 0.05em;
}

/* ── SCROLL OBSERVER JS (injected via script) ── */

/* ════════════════════════════════
   MOBILE RESPONSIVE
   ════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 24px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .sf-mark { font-size: 36px !important; }
  /* #v11-status show handled by JS zone classes */
  .hero-eyebrow { font-size: 0.58rem !important; letter-spacing: 0.14em !important; }

  footer {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 48px 24px 36px;
  }
  .footer-bottom { padding: 20px 24px; flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 600px) {
  footer { grid-template-columns: 1fr; }
}

/* ══ IDENTITY SELECTOR BAR UI ══ */










.isel-div { width: 1px; height: 14px; background: rgba(244,241,236,0.12); margin: 0 5px; flex-shrink: 0; }



/* ── ENGINEERING SYMBOL GOLD CLASS ── */
.gm {
  color: #C5A059;
  -webkit-text-stroke: 0;
  font-family: var(--font-display);
  display: inline;
}

/* ───────── NAV LOGO COLOR — single edit point: --logo-color (in :root) ───────── */
.nav-logo svg text { fill: var(--logo-color) !important; }
.nav-logo .sf-mark-line,
.nav-logo span { color: var(--logo-color) !important; -webkit-text-stroke-color: var(--logo-color) !important; }

/* ── Page canvas dark on all pages (matches index) — stops cream gap below footer on light pages ── */
html { background: var(--black); }

/* ── Canonical footer text — matches index (0.7rem=14px at 20px root) ── */
.footer-tagline { font-size: clamp(0.7rem, 0.85vw, 0.8rem); line-height: 1.9; color: #6b6560; margin-bottom: 0; }
.footer-col a, .footer-col p, .footer-col address { font-size: clamp(0.7rem, 0.85vw, 0.8rem); line-height: 1.8; margin-bottom: 0; }
.footer-col h5 { line-height: normal; }
.footer-bottom span { line-height: normal; }

/* ── Status badge: always visible + gold (overrides all v11 zone states, every page) ── */
#v11-status#v11-status { display: none !important; /* partnerships badge removed */ opacity: 1 !important; pointer-events: auto !important; color: #c8a96e !important; line-height: normal !important; }
#v11-status #v11-status-dot, #v11-status #v11-status-text { color: #c8a96e !important; }

/* ── Footer triangle: absolute on all pages so it never takes a grid row ── */
.sf-footer-triangle { position: absolute; bottom: 24px; right: 48px; pointer-events: none; opacity: 0.5; }

/* ── Footer responsive — uniform breakpoint + finish on ALL pages ── */
@media (min-width: 769px) {
  footer .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr !important; padding: 72px 48px 48px !important; gap: 48px !important; }
}
@media (max-width: 768px) {
  footer .footer-inner { grid-template-columns: 1fr !important; gap: 24px !important; padding: 40px 24px 32px !important; }
  .footer-bottom.footer-bottom { flex-direction: column !important; gap: 8px !important; text-align: center !important; padding: 16px 24px !important; }
}

/* ── PRINT ─────────────────────────────────────────────────────────
   The site had no print rules. The wordmark must render level and the
   engineering motif must not slant text that is being read on paper. */
@media print {
  .sf-mark,
  .sf-mark-line,
  .nav-ring,
  .footer-logo .sf-mark { transform: none !important; font-style: normal !important; }
  body { visibility: visible !important; }
  nav, .nav-links, #v11-status { position: static !important; }
  .accordion-body { max-height: none !important; overflow: visible !important; opacity: 1 !important; }
  img { max-width: 100% !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
