/* ═══════════════════════════════════════════
   ISG SHARED CHROME — nav, footer, layout helpers
   Extracted from about.html (canonical) on 2026-04-25

   Imports tokens.css implicitly (consumers must <link> tokens.css first)
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   BASE TYPOGRAPHY & ELEMENTS
   ═══════════════════════════════════════════ */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--stone-800);
  background: var(--stone-50);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

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

/* ═══════════════════════════════════════════
   GRAIN OVERLAY
   ═══════════════════════════════════════════ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* ═══════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.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; }

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
  padding: 0.8rem 0;
  background: rgba(250, 249, 247, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--stone-200);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 42px;
  width: auto;
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled .nav-logo img {
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stone-600);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--forest-500);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover { color: var(--stone-900); }
.nav-links a:hover::after { width: 100%; }

.nav-links a.active {
  color: var(--stone-900);
}

.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: var(--stone-900);
  color: var(--stone-50) !important;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.3s;
}

.nav-cta:hover { background: var(--forest-600); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--stone-800);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ═══════════════════════════════════════════
   SECTION COMMON HELPERS
   ═══════════════════════════════════════════ */
section {
  padding: var(--space-2xl) 0;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-400);
  margin-bottom: var(--space-md);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--stone-900);
  max-width: 20ch;
}

.section-heading em {
  font-style: italic;
  color: var(--forest-500);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--stone-900);
  border-top: 1px solid var(--stone-700);
}

.footer-cta-band {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--stone-700);
}

.footer-cta-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.footer-cta-item h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 300;
  color: var(--stone-50);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.footer-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-400);
  transition: color 0.3s, gap 0.3s;
}

.footer-cta-link:hover { color: var(--forest-400); gap: 0.75rem; }

.footer-main {
  padding: var(--space-lg) 0;
}

.footer-main .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-lg);
}

.footer-brand p {
  color: var(--stone-400);
  font-size: 0.8125rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 30ch;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-400);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.8125rem;
  color: var(--stone-300);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--stone-100); }

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--stone-700);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--stone-400);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.75rem;
  color: var(--stone-400);
  transition: color 0.3s;
}

.footer-legal a:hover { color: var(--stone-200); }

.footer-logo img { height: 28px; width: auto; }

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--stone-600);
  color: var(--stone-400);
  transition: all 0.3s;
}

.social-link:hover {
  border-color: var(--forest-500);
  color: var(--forest-400);
}

/* ═══════════════════════════════════════════
   RESPONSIVE — chrome only
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--stone-50);
    padding: var(--space-md) var(--gutter);
    border-bottom: 1px solid var(--stone-200);
    gap: var(--space-sm);
  }

  .footer-cta-band .container { grid-template-columns: 1fr; }
  .footer-main .container { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom .container { flex-direction: column; gap: 0.75rem; text-align: center; }
}
