:root {
  --bg: #090a0b;
  --panel: #111315;
  --panel-2: #15181b;
  --text: #f4f5f6;
  --muted: #a8adb2;
  --red: #d71920;
  --green: #198754;
  --white: #ffffff;
  --line: rgba(255,255,255,.10);
  --shadow: 0 22px 60px rgba(0,0,0,.38);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 99; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: .3s ease;
}
.site-header.scrolled {
  background: rgba(8,9,10,.90);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .08em; }
.brand img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.brand strong { color: var(--red); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: #d9dcdf; font-size: .92rem; font-weight: 650; position: relative; }
.main-nav a::after { content:""; position:absolute; left:0; right:100%; bottom:-8px; height:2px; background: linear-gradient(90deg,var(--red),var(--white),var(--green)); transition:.25s; }
.main-nav a:hover::after { right:0; }
.menu-toggle { display:none; width:44px; height:44px; border:1px solid var(--line); background:#0d0e0f; border-radius:9px; padding:10px; }
.menu-toggle span { display:block; height:2px; background:#fff; margin:5px 0; }

.hero { min-height: 100svh; position: relative; display:flex; align-items:center; overflow:hidden; }
.hero-bg { position:absolute; inset:0; background: url('assets/hero.png') center/cover no-repeat; transform: scale(1.02); }
.hero-overlay { position:absolute; inset:0; background:
  linear-gradient(90deg, rgba(5,6,7,.96) 0%, rgba(5,6,7,.82) 38%, rgba(5,6,7,.30) 72%, rgba(5,6,7,.62) 100%),
  linear-gradient(0deg, var(--bg) 0%, transparent 28%);
}
.hero-content { position:relative; z-index:2; padding-top:120px; padding-bottom:80px; max-width:760px; margin-left:max(20px, calc((100vw - var(--container))/2)); margin-right:auto; width:min(760px,calc(100% - 40px)); }
.eyebrow { display:inline-flex; align-items:center; gap:10px; font-size:.78rem; font-weight:800; letter-spacing:.18em; color:#d5d8db; text-transform:uppercase; }
.eyebrow::before { content:""; width:34px; height:3px; background:linear-gradient(90deg,var(--red) 0 33%,var(--white) 33% 66%,var(--green) 66%); }
h1,h2,h3,p { margin-top:0; }
h1 { margin:18px 0 22px; font-size:clamp(3.4rem,8vw,7.4rem); line-height:.88; letter-spacing:-.06em; text-transform:uppercase; max-width:800px; }
h1 span, h2 span {
  color:#fff;
  -webkit-text-stroke:0;
  text-shadow:0 3px 14px rgba(0,0,0,.72);
}
#hero-title span {
  color:var(--green);
  text-shadow:0 3px 14px rgba(0,0,0,.78), 0 0 28px rgba(0,145,70,.18);
}
.hero p { max-width:650px; color:#c7cbce; font-size:clamp(1rem,2vw,1.18rem); }
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; margin:32px 0 30px; }
.btn { min-height:50px; display:inline-flex; align-items:center; justify-content:center; padding:0 24px; border:1px solid transparent; text-transform:uppercase; letter-spacing:.08em; font-size:.82rem; font-weight:850; transition:.2s ease; }
.btn-primary { background:var(--red); color:#fff; box-shadow:0 12px 30px rgba(215,25,32,.20); }
.btn-primary:hover { transform:translateY(-2px); filter:brightness(1.12); }
.btn-ghost { border-color:rgba(255,255,255,.35); background:rgba(0,0,0,.25); }
.btn-ghost:hover { border-color:#fff; background:rgba(255,255,255,.06); }
.hero-tags { display:flex; flex-wrap:wrap; gap:10px; }
.hero-tags span { padding:8px 12px; border:1px solid var(--line); background:rgba(10,10,10,.45); color:#dfe2e4; font-size:.82rem; backdrop-filter:blur(8px); }

.strip { border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:#0d0f11; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); }
.stats-grid > div { padding:24px 24px; border-right:1px solid var(--line); display:flex; align-items:center; gap:14px; }
.stats-grid > div:last-child { border-right:0; }
.stats-grid strong { font-size:1.8rem; color:var(--red); }
.stats-grid span { color:#c5c9cc; font-size:.9rem; }

.section { padding:110px 0; position:relative; }
.section h2 { font-size:clamp(2.5rem,6vw,5rem); line-height:.95; letter-spacing:-.05em; text-transform:uppercase; margin:20px 0 28px; }
.section-copy p, .section-head p { color:var(--muted); max-width:650px; }
.two-col { display:grid; grid-template-columns:1.15fr .85fr; gap:70px; align-items:center; }
.about::after { content:""; position:absolute; right:-160px; top:10%; width:420px; height:420px; background:radial-gradient(circle,rgba(25,135,84,.10),transparent 67%); pointer-events:none; }
.about-card { min-height:360px; padding:46px; background:linear-gradient(145deg,#151719,#0e0f10); border:1px solid var(--line); box-shadow:var(--shadow); display:flex; flex-direction:column; justify-content:center; }
.waveform { height:90px; display:flex; align-items:center; gap:7px; margin-bottom:34px; }
.waveform i { display:block; width:5px; border-radius:4px; background:linear-gradient(var(--red),var(--white),var(--green)); animation:pulse 1.1s ease-in-out infinite alternate; }
.waveform i:nth-child(1){height:18px}.waveform i:nth-child(2){height:54px}.waveform i:nth-child(3){height:78px}.waveform i:nth-child(4){height:37px}.waveform i:nth-child(5){height:66px}.waveform i:nth-child(6){height:28px}.waveform i:nth-child(7){height:82px}.waveform i:nth-child(8){height:48px}.waveform i:nth-child(9){height:62px}.waveform i:nth-child(10){height:32px}.waveform i:nth-child(11){height:72px}.waveform i:nth-child(12){height:22px}
.waveform i:nth-child(odd){animation-delay:.25s}
@keyframes pulse { from{transform:scaleY(.7);opacity:.65} to{transform:scaleY(1.05);opacity:1} }
.about-card blockquote { margin:0 0 20px; font-size:1.45rem; line-height:1.4; font-weight:700; }
.about-card > span { color:var(--red); font-size:.8rem; letter-spacing:.16em; font-weight:800; }

.projects { background:#0d0f10; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:60px; margin-bottom:44px; }
.section-head p { margin-bottom:15px; max-width:430px; }
.project-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.project-card { position:relative; min-height:300px; padding:30px; background:linear-gradient(145deg,#151719,#101214); border:1px solid var(--line); overflow:hidden; transition:.25s ease; }
.project-card::after { content:""; position:absolute; left:0; bottom:0; width:100%; height:3px; background:linear-gradient(90deg,var(--red),var(--white),var(--green)); transform:scaleX(.15); transform-origin:left; transition:.25s; }
.project-card:hover { transform:translateY(-6px); border-color:rgba(255,255,255,.23); }
.project-card:hover::after { transform:scaleX(1); }
.project-no { position:absolute; right:20px; top:10px; font-size:4.4rem; line-height:1; font-weight:900; color:rgba(255,255,255,.035); }
.status { display:inline-block; margin-bottom:45px; border:1px solid var(--line); padding:5px 8px; font-size:.69rem; letter-spacing:.1em; text-transform:uppercase; color:#c9cdd0; }
.status.active { color:#fff; border-color:rgba(215,25,32,.55); background:rgba(215,25,32,.12); }
.project-card h3 { font-size:1.45rem; margin-bottom:12px; }
.project-card p { color:var(--muted); font-size:.92rem; }
.project-link { position:absolute; left:30px; bottom:24px; color:#e5e8ea; font-size:.82rem; font-weight:700; }

.process { overflow:hidden; }
.process::before { content:""; position:absolute; left:-220px; bottom:-220px; width:520px; height:520px; background:radial-gradient(circle,rgba(215,25,32,.09),transparent 67%); }
.timeline { display:grid; grid-template-columns:repeat(5,1fr); border-top:1px solid var(--line); margin-top:20px; }
.timeline-item { padding:28px 20px 10px 0; position:relative; }
.timeline-item::before { content:""; position:absolute; width:9px; height:9px; border-radius:50%; background:var(--red); top:-5px; left:0; box-shadow:0 0 0 6px rgba(215,25,32,.13); }
.timeline-item b { display:block; color:rgba(255,255,255,.22); font-size:2rem; margin-bottom:18px; }
.timeline-item h3 { font-size:1rem; }
.timeline-item p { color:var(--muted); font-size:.86rem; }

.support { padding-top:40px; }
.support-box { padding:56px; background:linear-gradient(125deg,rgba(215,25,32,.14),rgba(255,255,255,.025) 46%,rgba(25,135,84,.13)); border:1px solid var(--line); display:grid; grid-template-columns:1fr auto; align-items:center; gap:60px; box-shadow:var(--shadow); }
.support-box h2 { font-size:clamp(2.2rem,5vw,4.2rem); }
.support-box p { max-width:720px; color:#c4c8cb; }
.support-actions { min-width:190px; text-align:center; }
.support-actions .btn { width:100%; }
.support-actions small { display:block; color:#84898d; margin-top:12px; max-width:200px; }

.contact { padding-bottom:90px; }
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:end; }
.contact-grid p { max-width:540px; color:var(--muted); }
.social-grid { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid var(--line); border-left:1px solid var(--line); }
.social-grid a { padding:23px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; transition:.2s; }
.social-grid a:hover { background:#151719; padding-left:28px; }
.social-grid a span { color:var(--red); }

.footer { border-top:1px solid var(--line); background:#070809; }
.footer-inner { min-height:100px; display:flex; align-items:center; justify-content:space-between; gap:20px; color:#8c9195; font-size:.8rem; }
.footer-brand img { width:36px; height:36px; }
.footer-brand { color:#dce0e2; font-size:.82rem; }
.footer a:hover { color:#fff; }

.reveal { opacity:0; transform:translateY(20px); transition:opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity:1; transform:none; }

@media (max-width: 980px) {
  .main-nav { position:absolute; top:78px; left:20px; right:20px; display:none; flex-direction:column; align-items:stretch; gap:0; padding:8px; background:rgba(12,13,14,.97); border:1px solid var(--line); backdrop-filter:blur(14px); }
  .main-nav.open { display:flex; }
  .main-nav a { padding:14px 12px; border-bottom:1px solid var(--line); }
  .main-nav a:last-child { border-bottom:0; }
  .menu-toggle { display:block; }
  .hero-content { margin-left:20px; }
  .stats-grid { grid-template-columns:1fr 1fr; }
  .stats-grid > div:nth-child(2) { border-right:0; }
  .stats-grid > div:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .two-col, .contact-grid { grid-template-columns:1fr; gap:42px; }
  .project-grid { grid-template-columns:1fr 1fr; }
  .timeline { grid-template-columns:1fr 1fr; gap:18px; border-top:0; }
  .timeline-item { border-top:1px solid var(--line); }
  .support-box { grid-template-columns:1fr; gap:30px; }
  .support-actions { min-width:0; max-width:260px; }
}

@media (max-width: 640px) {
  .container { width:min(100% - 28px, var(--container)); }
  .nav-wrap { min-height:70px; }
  .brand img { width:40px; height:40px; }
  .brand span { font-size:.78rem; }
  .main-nav { top:70px; left:14px; right:14px; }
  .hero { min-height:92svh; }
  .hero-content { margin-left:14px; width:calc(100% - 28px); padding-top:100px; }
  .hero-overlay { background:linear-gradient(90deg,rgba(5,6,7,.95),rgba(5,6,7,.63)),linear-gradient(0deg,var(--bg),transparent 35%); }
  h1 { font-size:clamp(3rem,16vw,5.4rem); }
  .section { padding:78px 0; }
  .section h2 { font-size:clamp(2.25rem,11vw,3.8rem); }
  .stats-grid { grid-template-columns:1fr; }
  .stats-grid > div { border-right:0; border-bottom:1px solid var(--line); }
  .stats-grid > div:last-child { border-bottom:0; }
  .section-head { display:block; margin-bottom:32px; }
  .section-head p { margin-top:20px; }
  .project-grid { grid-template-columns:1fr; }
  .timeline { grid-template-columns:1fr; }
  .about-card { padding:30px; }
  .support-box { padding:30px; }
  .social-grid { grid-template-columns:1fr; }
  .footer-inner { padding:24px 0; flex-direction:column; justify-content:center; text-align:center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  .reveal { opacity:1; transform:none; }
}
