/* ==========================================================================
   slipperysign — wayfinding / industrial signage system
   ========================================================================== */

:root {
  --bg: #0E1A1A;
  --panel: #142523;
  --brass: #C9932E;
  --cyan: #4C8C93;
  --text: #EDE6D8;
  --muted: #8C978F;
  --hairline: #233835;

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Fraunces", Georgia, serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --nav-h: 64px;
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--brass); color: var(--bg); }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--brass); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }

/* ==========================================================================
   Nav — signage header strip
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(14, 26, 26, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--brass);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.22em;
  color: var(--text);
  transition: color 0.2s ease;
}
.wordmark:hover { color: var(--brass); }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-bottom-color: var(--brass);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brass);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 99;
  flex-direction: column;
  background: var(--panel);
  border-bottom: 2px solid var(--brass);
}
.mobile-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  padding: 16px 28px;
  border-bottom: 1px solid var(--hairline);
}
.mobile-nav.open { display: flex; }

/* ==========================================================================
   Hero — scroll-scrubbed convergence
   ========================================================================== */

.hero {
  position: relative;
  /* tall so there's scroll distance to scrub through the video */
  height: 220vh;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video--mobile { display: none; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14,26,26,0.88) 0%, rgba(14,26,26,0.55) 55%, rgba(14,26,26,0.25) 100%),
    linear-gradient(180deg, rgba(14,26,26,0.5) 0%, rgba(14,26,26,0) 30%, rgba(14,26,26,0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 24px) 24px 24px;
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid rgba(201, 147, 46, 0.45);
  padding: 8px 14px;
  margin-bottom: 32px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--brass);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 14ch;
  margin-bottom: 28px;
}

.hero-sub {
  max-width: 56ch;
  font-size: 1.125rem;
  color: var(--text);
  opacity: 0.88;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--brass);
  color: var(--bg);
}
.btn-primary:hover {
  background: #d9a53f;
  color: var(--bg);
}

.btn-ghost {
  border-color: var(--hairline);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.meta-strip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.scroll-hint span {
  color: var(--brass);
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ==========================================================================
   Opening statement
   ========================================================================== */

.opening {
  padding: 140px 0 120px;
  border-bottom: 1px solid var(--hairline);
}
.opening-lead {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.35;
  font-weight: 500;
  margin-bottom: 36px;
}
.opening-body {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ==========================================================================
   Sections — shared
   ========================================================================== */

.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--hairline);
}

.section-marker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--brass);
  margin-bottom: 24px;
}
.marker-arrow { margin-right: 8px; }

.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  max-width: 26ch;
  margin-bottom: 28px;
}

.section-intro {
  max-width: 68ch;
  font-size: 1.125rem;
  color: var(--text);
  opacity: 0.85;
  margin-bottom: 56px;
}

/* Divider videos */
.divider-media {
  margin: 48px 0 64px;
  border: 1px solid var(--hairline);
  overflow: hidden;
  opacity: 1;
}
.divider-media--wide { aspect-ratio: 21 / 9; }
.section-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.section-video.playing,
.section-video.poster-only { opacity: 1; }

#approach .divider-media {
  max-width: 420px;
  aspect-ratio: 1 / 1;
  float: right;
  margin: 0 0 32px 48px;
}

/* ==========================================================================
   Approach — cards
   ========================================================================== */

.card-grid {
  clear: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--brass);
  padding: 34px 30px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(201, 147, 46, 0.4); border-top-color: var(--brass); }

.card-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--brass);
  opacity: 0.55;
  display: block;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.card p { color: var(--muted); font-size: 1rem; }

.pullquote {
  clear: both;
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 0 0 32px;
  border-left: 3px solid var(--brass);
}
.pullquote blockquote {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.45;
  font-style: italic;
  margin-bottom: 20px;
}
.pullquote figcaption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ==========================================================================
   Proof — stat grid
   ========================================================================== */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--hairline);
  padding: 32px 28px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  line-height: 1;
  color: var(--brass);
  display: block;
  margin-bottom: 12px;
}
.stat p { color: var(--muted); font-size: 0.95rem; }

.award-strip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
  text-align: center;
}

/* ==========================================================================
   Evidence — timeline + route line
   ========================================================================== */

.timeline {
  position: relative;
  padding-left: 56px;
  max-width: 820px;
}

.route-line {
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--hairline);
}
.route-progress {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0%;
  background: var(--brass);
  will-change: height;
}
.route-marker {
  position: absolute;
  left: 50%;
  top: 0%;
  transform: translate(-50%, -50%);
  color: var(--brass);
  font-size: 1.1rem;
  line-height: 1;
  will-change: top;
  text-shadow: 0 0 12px rgba(201, 147, 46, 0.6);
}

.tl-item {
  position: relative;
  padding: 0 0 64px;
}
.tl-item::before {
  content: "▸";
  position: absolute;
  left: -50px;
  top: 4px;
  color: var(--brass);
  font-size: 0.95rem;
  background: var(--bg);
  padding: 4px 0;
}

.tl-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.tl-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 16px;
}

.tl-item > p:not(.tl-meta):not(.tl-tags) {
  color: var(--muted);
  max-width: 64ch;
}

.tl-tags {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  opacity: 0.75;
  margin-top: 14px;
}

.tl-item--aside {
  border: 1px solid rgba(201, 147, 46, 0.45);
  border-left: 3px solid var(--brass);
  background: var(--panel);
  padding: 32px 30px;
  margin-bottom: 64px;
}
.tl-item--aside::before { left: -80px; }

.closing-reflection {
  max-width: 620px;
  margin: 32px auto 0;
  padding-top: 48px;
}
.closing-reflection p {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  text-align: center;
}

/* ==========================================================================
   Toolkit
   ========================================================================== */

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.toolkit-group {
  background: var(--panel);
  border: 1px solid var(--hairline);
  padding: 32px 30px;
}
.toolkit-group h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.toolkit-group ul { list-style: none; }
.toolkit-group li {
  color: var(--text);
  opacity: 0.85;
  font-size: 0.98rem;
  padding: 5px 0 5px 20px;
  position: relative;
}
.toolkit-group li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.8rem;
}

.toolkit-footnote {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 70ch;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.section--contact { border-bottom: none; }

.contact-lead {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 48px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.contact-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.contact-card--primary {
  border: 1px solid rgba(201, 147, 46, 0.5);
  border-top: 3px solid var(--brass);
}
.contact-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.contact-card p { color: var(--muted); flex-grow: 1; }

.contact-list {
  list-style: none;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  padding-top: 32px;
  color: var(--text);
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.98rem;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

#contact .divider-media {
  max-width: 640px;
  aspect-ratio: 16 / 9;
  margin: 0 0 56px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 2px solid var(--brass);
  padding: 40px 24px;
  text-align: center;
}
.site-footer p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .badge-dot, .scroll-hint span { animation: none; }
  .hero { height: auto; }
  .hero-sticky { position: relative; height: 100vh; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .card-grid,
  .toolkit-grid,
  .contact-cards { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  #approach .divider-media {
    float: none;
    margin: 0 0 48px;
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .site-nav { padding: 0 20px; }

  .hero { height: 180vh; }
  .hero-video--desktop { display: none; }
  .hero-video--mobile { display: block; }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(14,26,26,0.55) 0%, rgba(14,26,26,0.25) 40%, rgba(14,26,26,0.92) 78%, rgba(14,26,26,0.97) 100%);
  }

  .hero-content { padding-top: calc(var(--nav-h) + 8px); display: flex; flex-direction: column; justify-content: flex-end; min-height: 88vh; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }

  .section { padding: 80px 0; }
  .opening { padding: 90px 0 80px; }

  .stat-grid { grid-template-columns: 1fr; }

  /* simplify route line on mobile: keep the hairline, drop the moving marker */
  .route-marker { display: none; }
  .timeline { padding-left: 36px; }
  .route-line { left: 6px; }
  .tl-item::before { left: -30px; }
  .tl-item--aside::before { left: -60px; }
  .tl-item--aside { padding: 26px 22px; }

  .contact-list { flex-direction: column; gap: 24px; }
}
