/* =========================================================
   PUKiB, Industrial editorial design system
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;600;800;900&family=Archivo:wght@400;500;600;700;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Brand */
  --red: #dc2626;
  --red-deep: #991b1b;
  --red-glow: rgba(220, 38, 38, 0.35);

  /* Neutrals */
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --ink-3: #2a2a2a;
  --paper: #f4f1ea;
  --paper-2: #ebe7dc;
  --paper-3: #d8d3c4;
  --line: #1a1a1a;
  --line-soft: rgba(10, 10, 10, 0.12);

  /* Accent, green from the actual containers */
  --green: #4d8c2f;

  /* Type */
  --font-display: 'Big Shoulders Display', 'Impact', sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Layout */
  --max-w: 1440px;
  --pad-x: clamp(20px, 4vw, 64px);
  --radius: 2px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--red); color: var(--paper); }

/* =========================================================
   Typography utilities
   ========================================================= */

.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

.kicker.no-line::before { display: none; }

/* =========================================================
   Topbar, technical industrial info bar
   ========================================================= */

.topbar {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 50;
  overflow: hidden;
}

.topbar-left, .topbar-right {
  display: flex;
  gap: 24px;
  align-items: center;
}

.topbar-dot {
  width: 6px;
  height: 6px;
  background: #2eea7e;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 8px #2eea7e;
  animation: pulse 2s infinite;
  transition: background 0.3s, box-shadow 0.3s;
}

.topbar-dot.off-hours {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

.topbar-link {
  color: var(--paper);
  transition: color 0.2s;
}

.topbar-link:hover {
  color: var(--red);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (max-width: 800px) {
  .topbar-hide-mobile { display: none; }
  .topbar { font-size: 10px; gap: 12px; }
}

/* =========================================================
   Header / Navigation
   ========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 16px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  height: 44px;
  width: auto;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  position: relative;
  transition: background 0.2s, color 0.2s;
}

.nav a:not(.nav-cta):hover {
  background: var(--ink);
  color: var(--paper);
}

.nav a.active:not(.nav-cta) {
  background: var(--ink);
  color: var(--paper);
}

.nav-cta {
  background: var(--red);
  color: var(--paper) !important;
  padding: 12px 18px !important;
  font-weight: 700;
  letter-spacing: 0.1em !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover { background: var(--red-deep); transform: translateY(-1px); color: var(--paper) !important; }

.nav-cta svg { width: 14px; height: 14px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span::after { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 1100px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex;
    position: fixed;
    inset: 96px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 24px var(--pad-x);
    gap: 0;
    border-top: 1px solid var(--line);
    z-index: 35;
  }
  .nav.open a {
    padding: 18px 0 !important;
    border-bottom: 1px solid var(--line-soft);
    font-size: 14px;
    letter-spacing: 0.1em;
  }
  .nav.open a.active::after { display: none; }
  .nav.open .nav-cta {
    margin-top: 16px;
    justify-content: center;
    padding: 18px !important;
    border-bottom: none !important;
  }
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 18px 26px;
  border-radius: var(--radius);
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--red-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 241, 234, 0.3);
}

.btn-ghost:hover {
  border-color: var(--paper);
  background: rgba(244, 241, 234, 0.06);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}

.btn-dark:hover {
  background: var(--ink-3);
  transform: translateY(-2px);
}

.btn .arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.btn:hover .arrow { transform: translateX(4px); }

/* =========================================================
   Section primitives
   ========================================================= */

.section {
  padding: clamp(64px, 10vw, 140px) var(--pad-x);
  position: relative;
}

.section-dark {
  background: var(--ink);
  color: var(--paper);
}

.section-dark .kicker { color: var(--paper-3); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.section-head .kicker {
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 16ch;
}

.section-title em {
  font-style: normal;
  color: var(--red);
}

.section-intro {
  max-width: 38ch;
  font-size: 16px;
  color: var(--ink-3);
  line-height: 1.55;
}

.section-dark .section-intro { color: var(--paper-3); }

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

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

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px var(--pad-x) 32px;
  position: relative;
  overflow: hidden;
}

.footer-mega {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(80px, 16vw, 240px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 241, 234, 0.18);
  position: absolute;
  bottom: -30px;
  left: var(--pad-x);
  pointer-events: none;
  user-select: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  position: relative;
  z-index: 2;
  margin-bottom: 80px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-3);
  margin-bottom: 18px;
  font-weight: 500;
}

.footer-col ul { list-style: none; }
.footer-col li { padding: 6px 0; }
.footer-col a { font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--red); }

.footer-brand-line {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
}

.footer-brand-text {
  font-size: 14px;
  color: var(--paper-3);
  max-width: 32ch;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(244, 241, 234, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--paper-3);
  position: relative;
  z-index: 2;
  text-transform: uppercase;
}

/* =========================================================
   Animations / utilities
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-stagger.in > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.56s; }

/* Marquee */
.marquee {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee 50s linear infinite;
  white-space: nowrap;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.marquee-item {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 90px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 60px;
}

.marquee-item::after {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--red);
  border-radius: 50%;
}

/* Hide visually but keep accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Generic page hero (smaller than the home one) */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 96px var(--pad-x) 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--red);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: end;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

@media (max-width: 800px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 10vw, 150px);
  line-height: 0.85;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.page-hero h1 em {
  font-style: normal;
  color: var(--red);
}

.page-hero-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper-3);
}

.page-hero-meta .crumb {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.page-hero-meta .crumb span:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: var(--red);
}

.page-hero-decoration {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244,241,234,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,241,234,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
