/* ============================================================
   ALEXEY VOROBIEV — INDUSTRIAL ROCK
   Steel · Spikes · Crimson · No templates
   ============================================================ */

/* --- Palette --- */
:root {
  --color-bg: #eaecf0;
  --color-surface: #dfe2e8;
  --color-surface-elevated: #d4d8e0;
  --color-text: #1a1f28;
  --color-text-dim: #5a6375;
  --color-heading: #0f131a;
  --color-accent: #c62828;
  --color-accent-dark: #8e0000;
  --color-accent-glow: rgba(198, 40, 40, 0.12);
  --color-border: #c8cdd6;
  --color-border-dark: #a0a7b3;
  --color-white: #f5f6f8;
  --font-heading: 'Michroma', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --max-width: 1200px;
  --nav-height: 60px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  background: var(--color-bg);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* --- Diamond-plate background --- */
.metal-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 8px, #6b7280 8px, #6b7280 9px),
    repeating-linear-gradient(-45deg, transparent, transparent 8px, #6b7280 8px, #6b7280 9px);
  background-size: 22px 22px;
}

/* --- Noise --- */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.018;
  background: 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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(234, 236, 240, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--color-border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-spike {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid var(--color-accent);
}

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

.nav-links a {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.25s;
  position: relative;
}

.nav-links a:hover { color: var(--color-heading); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.25s;
}

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

.nav-cta {
  color: var(--color-accent) !important;
  padding: 6px 14px;
  border: 2px solid var(--color-accent);
}

.nav-cta:hover {
  background: var(--color-accent);
  color: var(--color-white) !important;
}

/* --- Section shared --- */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 400;
  color: var(--color-heading);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.title-spike {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 14px solid var(--color-accent);
  flex-shrink: 0;
}

.section-sub {
  color: var(--color-text-dim);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
}

/* --- Reveal --- */
.reveal-el {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-el.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SPIKE DIVIDER
   ============================================================ */
.spike-divider {
  position: relative;
  z-index: 2;
  height: 24px;
  overflow: hidden;
}

.spike-row {
  height: 100%;
  background: var(--color-accent);
  clip-path: polygon(
    0% 100%, 3% 0%, 6% 100%, 9% 0%, 12% 100%, 15% 0%,
    18% 100%, 21% 0%, 24% 100%, 27% 0%, 30% 100%, 33% 0%,
    36% 100%, 39% 0%, 42% 100%, 45% 0%, 48% 100%, 51% 0%,
    54% 100%, 57% 0%, 60% 100%, 63% 0%, 66% 100%, 69% 0%,
    72% 100%, 75% 0%, 78% 100%, 81% 0%, 84% 100%, 87% 0%,
    90% 100%, 93% 0%, 96% 100%, 99% 0%, 100% 100%
  );
}

.spike-divider.invert .spike-row {
  clip-path: polygon(
    0% 0%, 3% 100%, 6% 0%, 9% 100%, 12% 0%, 15% 100%,
    18% 0%, 21% 100%, 24% 0%, 27% 100%, 30% 0%, 33% 100%,
    36% 0%, 39% 100%, 42% 0%, 45% 100%, 48% 0%, 51% 100%,
    54% 0%, 57% 100%, 60% 0%, 63% 100%, 66% 0%, 69% 100%,
    72% 0%, 75% 100%, 78% 0%, 81% 100%, 84% 0%, 87% 100%,
    90% 0%, 93% 100%, 96% 0%, 99% 100%, 100% 0%
  );
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  z-index: 2;
  padding: 60px 32px 80px;
  overflow: hidden;
}

.hero-spikes {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 2px;
  flex-direction: column;
  opacity: 0.5;
}

.spike {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 16px solid var(--color-accent);
}

.hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero Left */
.hero-left {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 11px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 5px 14px;
  border: 2px solid var(--color-accent);
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  animation: dotBeat 1.2s ease-in-out infinite;
}

@keyframes dotBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.8); }
}

.hero-name {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.name-top {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 400;
  color: var(--color-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.name-bottom {
  font-family: var(--font-heading);
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 400;
  color: var(--color-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.name-spike-left,
.name-spike-right {
  display: inline-block;
  width: 24px;
  height: 3px;
  background: var(--color-accent);
  position: relative;
  flex-shrink: 0;
}

.name-spike-left::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-bottom: 7px solid var(--color-accent);
}

.name-spike-right::after {
  content: '';
  position: absolute;
  top: -5px;
  right: 0;
  width: 0;
  height: 0;
  border-right: 6px solid transparent;
  border-bottom: 7px solid var(--color-accent);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-text-dim);
  line-height: 1.7;
  margin-top: 20px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-white);
  background: var(--color-accent);
  padding: 14px 28px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 0 100%);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

.btn-spike {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid var(--color-white);
}

.btn-steel {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-heading);
  padding: 14px 28px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--color-border-dark);
  transition: all 0.25s;
}

.btn-steel:hover {
  border-color: var(--color-heading);
  background: var(--color-surface-elevated);
}

/* Hero Right */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--color-border);
}

.hero-feat {
  background: var(--color-surface);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: background 0.25s;
}

.hero-feat:hover {
  background: var(--color-surface-elevated);
}

.feat-num {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-accent);
  text-transform: uppercase;
}

.feat-unit {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-accent);
  vertical-align: super;
}

.feat-num--rock {
  letter-spacing: 0.1em;
}

.feat-label {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-stack span {
  font-family: var(--font-heading);
  font-size: 10px;
  color: var(--color-text-dim);
  padding: 5px 10px;
  border: 1px solid var(--color-border-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-location {
  font-size: 14px;
  color: var(--color-text-dim);
}

/* Soundwave decoration */
.soundwave {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  opacity: 0.4;
}

.soundwave span {
  width: 3px;
  background: var(--color-accent);
  animation: soundBounce 0.9s ease-in-out infinite;
}

.soundwave span:nth-child(1) { height: 15px; animation-delay: 0s; }
.soundwave span:nth-child(2) { height: 28px; animation-delay: 0.1s; }
.soundwave span:nth-child(3) { height: 20px; animation-delay: 0.2s; }
.soundwave span:nth-child(4) { height: 35px; animation-delay: 0.3s; }
.soundwave span:nth-child(5) { height: 18px; animation-delay: 0.4s; }
.soundwave span:nth-child(6) { height: 25px; animation-delay: 0.5s; }
.soundwave span:nth-child(7) { height: 12px; animation-delay: 0.6s; }
.soundwave span:nth-child(8) { height: 30px; animation-delay: 0.7s; }
.soundwave span:nth-child(9) { height: 22px; animation-delay: 0.8s; }
.soundwave span:nth-child(10) { height: 16px; animation-delay: 0.9s; }

@keyframes soundBounce {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.4); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  position: relative;
  z-index: 2;
  padding: 60px 0;
  background: var(--color-bg);
}

.about-header {
  margin-bottom: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-main p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Rock Card */
.rock-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border-dark);
  position: relative;
}

.rock-spikes-top,
.rock-spikes-bottom {
  height: 10px;
  background: var(--color-accent);
  clip-path: polygon(
    0% 0%, 5% 100%, 10% 0%, 15% 100%, 20% 0%, 25% 100%,
    30% 0%, 35% 100%, 40% 0%, 45% 100%, 50% 0%, 55% 100%,
    60% 0%, 65% 100%, 70% 0%, 75% 100%, 80% 0%, 85% 100%,
    90% 0%, 95% 100%, 100% 0%
  );
}

.rock-spikes-bottom {
  clip-path: polygon(
    0% 100%, 5% 0%, 10% 100%, 15% 0%, 20% 100%, 25% 0%,
    30% 100%, 35% 0%, 40% 100%, 45% 0%, 50% 100%, 55% 0%,
    60% 100%, 65% 0%, 70% 100%, 75% 0%, 80% 100%, 85% 0%,
    90% 100%, 95% 0%, 100% 100%
  );
}

.rock-card-inner {
  padding: 28px;
}

.rock-label {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.rock-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.rock-card p {
  font-size: 14px;
  color: var(--color-text-dim);
  line-height: 1.7;
  margin-bottom: 16px;
}

.rock-quote {
  padding-top: 16px;
  border-top: 2px solid var(--color-border);
  font-size: 13px;
  font-style: italic;
  color: var(--color-accent);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.tag {
  font-family: var(--font-heading);
  font-size: 11px;
  color: var(--color-text-dim);
  padding: 7px 16px;
  border: 2px solid var(--color-border-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.25s;
}

.tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-glow);
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  position: relative;
  z-index: 2;
  padding: 48px 0;
  background: var(--color-surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--color-border-dark);
}

.stat-card {
  background: var(--color-bg);
  padding: 36px 20px;
  text-align: center;
  position: relative;
  transition: background 0.25s;
}

.stat-card:hover {
  background: var(--color-white);
}

.stat-spike {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--color-accent);
  opacity: 0;
  transition: opacity 0.25s;
}

.stat-card:hover .stat-spike {
  opacity: 1;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  color: var(--color-heading);
  line-height: 1;
  display: inline-block;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-heading);
  display: inline-block;
  margin-left: 2px;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects {
  position: relative;
  z-index: 2;
  padding: 60px 0;
}

.projects .section-title {
  margin-bottom: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-border-dark);
}

.project-card {
  background: var(--color-surface);
  padding: 32px;
  position: relative;
  transition: background 0.25s;
}

.project-card:hover {
  background: var(--color-white);
}

.project-notch {
  position: absolute;
  top: 0;
  right: 24px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--color-accent);
  opacity: 0;
  transition: opacity 0.25s;
}

.project-card:hover .project-notch {
  opacity: 1;
}

.project-date {
  font-family: var(--font-heading);
  font-size: 10px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-card p {
  font-size: 14px;
  color: var(--color-text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tags span {
  font-family: var(--font-heading);
  font-size: 9px;
  color: var(--color-text-dim);
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts {
  position: relative;
  z-index: 2;
  padding: 60px 0 80px;
}

.contacts .section-title {
  margin-bottom: 40px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-border-dark);
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 28px;
  background: var(--color-surface);
  text-align: center;
  transition: all 0.25s;
  position: relative;
}

.contact-card:hover {
  background: var(--color-white);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.contact-spike {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid var(--color-accent);
  opacity: 0;
  transition: opacity 0.25s;
}

.contact-card:hover .contact-spike {
  opacity: 1;
}

.contact-icon {
  color: var(--color-accent);
  margin-bottom: 4px;
}

.contact-label {
  font-family: var(--font-heading);
  font-size: 11px;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-value {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-heading);
  word-break: break-all;
}

.contact-note {
  font-size: 12px;
  color: var(--color-text-dim);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 2;
  background: var(--color-heading);
  color: #8892a0;
  padding: 32px 0;
}

.footer-rivets {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-rivets span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.4;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-wrap: wrap;
}

.footer-sep {
  color: var(--color-accent);
  opacity: 0.5;
  font-size: 10px;
}

.footer-motto {
  color: var(--color-accent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-right {
    gap: 20px;
  }

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

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

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .nav-inner {
    padding: 0 16px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .nav-logo {
    font-size: 12px;
  }

  .section-inner {
    padding: 0 20px;
  }

  .hero {
    padding: 40px 20px 60px;
  }

  .hero-spikes {
    display: none;
  }

  .soundwave {
    display: none;
  }

  .name-spike-left,
  .name-spike-right {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-steel {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

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

  .stat-card {
    padding: 24px 14px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
  }
}
