/* ==========================================================================
   Sigma Laser Tech, design tokens & primitives
   ========================================================================== */

@font-face { font-family: "GeistFallback"; src: local("Geist"); }

:root {
  /* Brand */
  --sigma-orange:      #F47B20;
  --sigma-orange-hot:  #FF8A3D;
  --sigma-orange-deep: #C95E0F;

  /* Ink (dark surfaces) */
  --ink-900: #0B0B0D;
  --ink-850: #0F1014;
  --ink-800: #131418;
  --ink-700: #1E2027;
  --ink-600: #2A2D36;
  --ink-500: #3A3E49;

  /* Steel (text + meta on dark) */
  --steel-500: #6A6F7B;
  --steel-400: #8A8F9B;
  --steel-300: #ABAFB9;
  --steel-200: #D6D9E0;

  /* Bone (warm light surfaces) */
  --bone:      #F5F2EC;
  --bone-soft: #EBE7DE;
  --bone-edge: #DBD6CA;
  --bone-ink:  #1A1916;
  --white:     #FFFFFF;

  /* Type */
  --f-display: "Geist", "GeistFallback", "Inter Tight", system-ui, -apple-system, sans-serif;
  --f-body:    "Geist", "GeistFallback", "Inter", system-ui, -apple-system, sans-serif;
  --f-mono:    "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Scale */
  --t-mega:   clamp(3.2rem, 7vw, 7.5rem);
  --t-hero:   clamp(2.6rem, 5.4vw, 5.6rem);
  --t-h1:     clamp(2rem, 3.6vw, 3.4rem);
  --t-h2:     clamp(1.5rem, 2.2vw, 2.2rem);
  --t-h3:     clamp(1.15rem, 1.4vw, 1.35rem);
  --t-body:   1rem;
  --t-small:  0.875rem;
  --t-eyebrow: 0.72rem;

  --tracking-tight: -0.03em;
  --tracking-display: -0.02em;
  --tracking-eyebrow: 0.18em;

  /* Layout */
  --gutter: clamp(1rem, 3vw, 2.25rem);
  --maxw: 1480px;

  /* Misc */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 24px 60px -30px rgba(0,0,0,0.65);
  --shadow-glow: 0 0 0 1px rgba(244,123,32,0.4), 0 12px 40px -10px rgba(244,123,32,0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--ink-900);
  color: var(--steel-200);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* Utility */
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--steel-400);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--sigma-orange);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  transform: translateY(-1px);
}
.display {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 0.96;
  color: var(--white);
}
.italic-accent {
  font-style: italic;
  font-weight: 400;
  color: var(--sigma-orange);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn .arrow { transition: transform 220ms var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--sigma-orange);
  color: var(--ink-900);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--sigma-orange-hot);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--ink-500);
}
.btn-ghost:hover {
  border-color: var(--steel-200);
  background: rgba(255,255,255,0.04);
}
.btn-light {
  background: var(--bone-ink);
  color: var(--bone);
}
.btn-light:hover { background: #000; }

/* Section primitives */
.section { padding: clamp(72px, 9vw, 140px) 0; position: relative; }
.section-bone { background: var(--bone); color: var(--bone-ink); }
.section-bone .eyebrow { color: #6b6657; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.divider {
  height: 1px;
  background: var(--ink-600);
  border: 0;
}
.section-bone .divider { background: var(--bone-edge); }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 220ms var(--ease), backdrop-filter 220ms var(--ease), border-color 220ms var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 11, 13, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--ink-600);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
  padding: 0 var(--gutter);
  max-width: 100%;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.nav-logo {
  width: 44px; height: 44px;
  background: var(--sigma-orange);
  display: grid; place-items: center;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.nav-logo svg { width: 70%; height: 70%; }
.nav-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-wordmark {
  display: flex; flex-direction: column;
  line-height: 1.05;
}
.nav-wordmark b {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--white);
}
.nav-wordmark span {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--steel-400);
  text-transform: uppercase;
}
.nav-links {
  display: flex; gap: 2px;
  list-style: none; padding: 0; margin: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--steel-200);
  border-radius: 999px;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-cta {
  display: flex; align-items: center; gap: 10px;
}
.nav-wa {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--ink-500);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--steel-200);
  transition: border-color 180ms var(--ease), color 180ms var(--ease);
}
.nav-wa:hover { color: var(--white); border-color: var(--steel-200); }
.nav-wa .wa-dot {
  width: 6px; height: 6px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 0 8px #25D366;
}

/* Hero spec micro-bar */
.spec-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 18px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--steel-400);
  letter-spacing: 0.04em;
}
.spec-bar span { display: inline-flex; align-items: center; gap: 8px; }
.spec-bar span::before {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--sigma-orange);
}

/* Card primitives */
.card {
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 380ms var(--ease), border-color 380ms var(--ease), background 380ms var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--ink-500);
  background: var(--ink-700);
}

/* Tag chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--ink-600);
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--steel-300);
  text-transform: uppercase;
}
.chip-orange {
  background: rgba(244, 123, 32, 0.12);
  color: var(--sigma-orange);
  border-color: rgba(244,123,32,0.3);
}

/* Footer */
.site-footer {
  background: var(--ink-900);
  border-top: 1px solid var(--ink-600);
  padding: 80px 0 32px;
  color: var(--steel-300);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-col h5 {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--steel-400);
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.92rem;
  color: var(--steel-200);
  transition: color 180ms var(--ease);
}
.footer-col a:hover { color: var(--sigma-orange); }
.footer-brand-block .nap {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--steel-300);
  margin-top: 14px;
}
.footer-brand-block .nap b { color: var(--white); font-weight: 500; }
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-600);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--steel-500);
  letter-spacing: 0.04em;
}
.footer-bottom .made {
  color: var(--steel-400);
}
.footer-bottom .made b { color: var(--sigma-orange); font-weight: 500; }

/* ----- Footer hot link animation ----- */
@keyframes org-hot-link {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.made.mono b {
  color: var(--sigma-orange);
  position: relative;
  display: inline-block;
  transition: color 0.5s ease-out;
}

.made.mono b::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  height: 2px;
  background-color: var(--sigma-orange);
  width: 0;
}

.made.mono b:hover {
  color: white;
}

.made.mono b:hover::after {
  animation: org-hot-link 0.5s ease-out forwards;
}

/* Magnetic cursor */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--sigma-orange);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(244, 123, 32, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 220ms var(--ease), height 220ms var(--ease), border-color 220ms var(--ease);
}
.cursor-ring.hover {
  width: 56px; height: 56px;
  border-color: var(--sigma-orange);
}
@media (max-width: 900px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* Image placeholder (warm stripe) */
.img-placeholder {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(0,0,0,0.05) 0 8px,
      transparent 8px 16px
    ),
    var(--bone-soft);
  display: grid;
  place-items: center;
  color: #6b6657;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--bone-edge);
}
.img-placeholder.dark {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.025) 0 8px,
      transparent 8px 16px
    ),
    var(--ink-800);
  color: var(--steel-400);
  border-color: var(--ink-600);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 300ms; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 360ms; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 420ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Selection */
::selection { background: var(--sigma-orange); color: var(--ink-900); }

/* Scrollbar */
/* Firefox */
* { scrollbar-width: thin; scrollbar-color: var(--ink-500) transparent; }

/* WebKit / Chromium */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--ink-500);
  /* transparent border + padding-box inset the thumb so it reads slim & floating */
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
  transition: background-color .2s ease;
}
::-webkit-scrollbar-thumb:hover { background: var(--sigma-orange); background-clip: padding-box; }
::-webkit-scrollbar-thumb:active { background: var(--sigma-orange-deep); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--ink-500);
  border-radius: 10px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--white); border-radius: 2px;
  transition: transform 240ms var(--ease), opacity 240ms var(--ease);
}
.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Responsive guards */
@media (max-width: 900px) {
  .nav { height: 64px; gap: 12px; position: relative; }
  .nav-toggle { display: flex; }
  .nav-cta .nav-wa { display: none; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 2px;
    background: rgba(11, 11, 13, 0.97);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--ink-600);
    padding: 10px var(--gutter) 18px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 280ms var(--ease), opacity 200ms var(--ease);
  }
  .site-header.open .nav-links { max-height: 80vh; opacity: 1; pointer-events: auto; }
  .nav-links a { display: block; padding: 13px 12px; font-size: 1.02rem; border-radius: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
