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

:root {
  --red: #e63946;
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #0d0d0d;
  --border: #1c1c1c;
  --text: #ffffff;
  --muted: #aaaaaa;
  --subtle: #666666;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; color: var(--text); overflow-x: hidden; font-size: 16px; line-height: 1.6; }

/* NAV */
#nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 56px; height: 68px;
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.3s;
}
#nav.scrolled { background: rgba(10, 10, 10, 0.98); }

.logo {
  font-size: 20px; font-weight: 900; letter-spacing: 4px;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center;
}
.logo-dot {
  width: 6px; height: 6px; background: var(--red);
  border-radius: 50%; margin-left: 4px;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: 13px; text-decoration: none;
  text-transform: uppercase; letter-spacing: 1.5px;
  position: relative; transition: color 0.25s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--red);
  transition: width 0.25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--red) !important;
  color: var(--red) !important;
  padding: 8px 22px;
  transition: background 0.25s, color 0.25s !important;
}
.nav-cta:hover { background: var(--red) !important; color: #fff !important; }
.nav-cta::after { display: none !important; }

/* HERO */
.hero {
  height: 100vh; min-height: 640px; position: relative;
  display: flex; align-items: center; padding: 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1600&q=85') center / cover no-repeat;
  animation: hero-zoom 14s ease-in-out infinite alternate;
}
@keyframes hero-zoom { from { transform: scale(1.0); } to { transform: scale(1.08); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.35) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
  animation: fade-up 0.6s ease both 0.2s;
}
.hero-line { width: 40px; height: 2px; background: var(--red); }
.hero-eyebrow span { color: var(--red); font-size: 11px; text-transform: uppercase; letter-spacing: 3px; }
.hero h1 {
  font-size: 80px; font-weight: 900; line-height: 1.0; letter-spacing: -3px;
  margin-bottom: 20px; animation: fade-up 0.7s ease both 0.35s;
}
.hero-outline { display: block; color: transparent; -webkit-text-stroke: 1.5px var(--red); }
.hero-sub {
  color: #bbbbbb; font-size: 18px; line-height: 1.8;
  margin-bottom: 44px; max-width: 480px;
  animation: fade-up 0.7s ease both 0.5s;
}
.hero-btns { display: flex; gap: 16px; animation: fade-up 0.7s ease both 0.65s; }
.btn-primary {
  background: var(--red); color: #fff;
  padding: 14px 36px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; text-decoration: none;
  display: inline-block; transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(230,57,70,0.4); }
.btn-ghost {
  border: 1px solid var(--subtle); color: #888;
  padding: 14px 36px; font-size: 12px;
  text-transform: uppercase; letter-spacing: 2px; text-decoration: none;
  display: inline-block; transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: #666; color: #ccc; }
.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  display: flex; animation: fade-in 1s ease both 0.9s;
}
.hero-stat {
  flex: 1; padding: 24px 40px;
  border-right: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.65); backdrop-filter: blur(4px);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num { font-size: 32px; font-weight: 900; }
.hero-stat-num span { color: var(--red); }
.hero-stat-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 2px; margin-top: 4px; }

@keyframes fade-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in  { from { opacity: 0; } to { opacity: 1; } }

/* TICKER */
.ticker { background: var(--red); overflow: hidden; height: 42px; display: flex; align-items: center; }
.ticker-track {
  display: flex; align-items: center; white-space: nowrap;
  animation: ticker-scroll 24s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.92); padding: 0 20px; }
.ticker-sep { color: rgba(255,255,255,0.4); font-size: 14px; }

/* SHARED SECTION HELPERS */
.section-head { margin-bottom: 72px; }
.section-tag { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section-tag-line { width: 24px; height: 1px; background: var(--red); }
.section-tag span { color: var(--red); font-size: 11px; text-transform: uppercase; letter-spacing: 3px; }
.section-title { font-size: 44px; font-weight: 800; letter-spacing: -1.5px; }

/* SERVICES */
.services { padding: 110px 80px; background: var(--bg2); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.service-card {
  background: var(--bg); padding: 48px 36px;
  position: relative; overflow: hidden; transition: background 0.3s;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { background: #0f0f0f; }
.service-num {
  font-size: 52px; font-weight: 900; color: var(--border);
  line-height: 1; margin-bottom: 24px; letter-spacing: -2px; transition: color 0.3s;
}
.service-card:hover .service-num { color: #2a2a2a; }
.service-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.service-card p { color: var(--muted); font-size: 16px; line-height: 1.75; margin-bottom: 24px; }
.service-list { list-style: none; }
.service-list li {
  color: #999; font-size: 15px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; transition: color 0.2s;
}
.service-card:hover .service-list li { color: #bbb; }
.service-list li::before { content: ''; width: 4px; height: 4px; background: var(--red); border-radius: 50%; flex-shrink: 0; }

/* REFERENCES */
.references { padding: 110px 80px; background: var(--bg3); }
.ref-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; }
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 4px;
}
.ref-card { position: relative; overflow: hidden; cursor: pointer; }
.ref-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%) brightness(0.3);
  transition: filter 1.2s ease, transform 1.4s ease;
}
.ref-card.active img { filter: grayscale(0%) brightness(0.75); transform: scale(1.05); }
.ref-card:hover img { filter: grayscale(30%) brightness(0.65); transform: scale(1.04); }
.ref-num {
  position: absolute; top: 16px; right: 16px;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.25);
  letter-spacing: 2px; transition: color 1.0s;
}
.ref-card.active .ref-num { color: var(--red); }
.ref-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.92) 55%);
  padding: 48px 20px 20px;
}
.ref-tag-inline {
  display: block; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: rgba(230,57,70,0); margin-bottom: 6px;
  transition: color 0.4s;
}
.ref-card.active .ref-tag-inline, .ref-card:hover .ref-tag-inline { color: var(--red); }
.ref-overlay h4 {
  font-size: 16px; font-weight: 700; margin-bottom: 3px;
  color: rgba(255,255,255,0.45); transition: color 1.0s;
}
.ref-overlay p {
  font-size: 12px; color: rgba(255,255,255,0.0);
  transition: color 0.4s; letter-spacing: 0.5px;
}
.ref-card.active .ref-overlay h4, .ref-card:hover .ref-overlay h4 { color: #fff; }
.ref-card.active .ref-overlay p, .ref-card:hover .ref-overlay p { color: rgba(255,255,255,0.7); }
.ref-card::after {
  content: ''; position: absolute; inset: 0;
  border: 0px solid transparent;
  box-shadow: inset 0 0 0 0px var(--red);
  transition: box-shadow 1.0s; pointer-events: none;
}
.ref-card.active::after { box-shadow: inset 0 0 0 2px var(--red); }
.ref-more { background: var(--bg2); display: flex; align-items: center; justify-content: center; }
.ref-more-inner { text-align: center; }
.ref-more-plus { font-size: 32px; margin-bottom: 8px; color: var(--subtle); transition: color 0.3s; }
.ref-more p { font-size: 12px; line-height: 1.7; color: var(--muted); }
.ref-more:hover .ref-more-plus { color: var(--red); }

/* CLIENTS */
.clients {
  padding: 72px 80px; background: var(--bg2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.clients-label { text-align: center; color: var(--subtle); font-size: 11px; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 48px; }
.clients-row { display: flex; justify-content: center; align-items: center; gap: 72px; flex-wrap: wrap; }
.client-logo {
  opacity: 0.3; transition: opacity 0.3s;
  display: flex; align-items: center;
}
.client-logo:hover { opacity: 0.75; }
.client-logo img { display: block; height: 32px; object-fit: contain; filter: brightness(0) invert(1); }
.client-logo--text {
  font-size: 13px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: #fff;
}

/* CONTACT */
.contact { padding: 110px 80px; background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.contact-info p { color: var(--muted); font-size: 17px; line-height: 1.8; margin: 20px 0 48px; }
.contact-detail {
  display: flex; align-items: flex-start; gap: 20px;
  margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border);
}
.contact-detail:last-child { border-bottom: none; }
.c-icon { width: 42px; height: 42px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 4px; }
.c-value { color: #eeeeee; font-size: 16px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 2px; }
.form-group input, .form-group textarea {
  background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  padding: 14px 18px; font-size: 14px; font-family: inherit;
  outline: none; resize: none; transition: border-color 0.25s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--red); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #555555; }
.form-group textarea { height: 130px; }
.btn-submit {
  background: var(--red); color: #fff; border: none;
  padding: 15px 40px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  cursor: pointer; align-self: flex-start;
  display: flex; align-items: center; gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(230,57,70,0.35); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.form-success { display: none; color: #4caf50; font-size: 13px; padding: 12px 0; border-top: 1px solid #1a3a1a; }
.form-success.visible { display: block; }

/* FOOTER */
footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 32px 80px; display: flex; justify-content: space-between; align-items: center;
}
.footer-logo { font-size: 16px; font-weight: 900; letter-spacing: 4px; display: flex; align-items: center; }
.footer-dot { width: 5px; height: 5px; background: var(--red); border-radius: 50%; margin-left: 4px; }
.footer-copy { color: var(--muted); font-size: 13px; }
.footer-credit { color: var(--subtle); font-size: 13px; }
.footer-credit a { color: var(--red); text-decoration: none; font-weight: 700; transition: opacity 0.2s; }
.footer-credit a:hover { opacity: 0.75; }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  #nav { padding: 0 24px; }
  .hero { padding: 0 24px; }
  .hero h1 { font-size: 48px; letter-spacing: -2px; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { flex: 1 1 50%; }
  .services { padding: 72px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .references { padding: 72px 24px; }
  .ref-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .ref-card { aspect-ratio: 4 / 3; }
  .clients { padding: 48px 24px; }
  .clients-row { gap: 32px; }
  .contact { padding: 72px 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  footer { padding: 24px; flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 600px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 0 24px; padding-bottom: 130px; }
  .hero-content { max-width: 100%; }
  .hero h1 { font-size: 38px; letter-spacing: -1.5px; }
  .hero-sub { font-size: 15px; margin-bottom: 28px; }
  .hero-btns { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { flex: 1 1 50%; padding: 16px 18px; }
  .hero-stat-num { font-size: 24px; }
  .hero-stat-label { font-size: 10px; }
  .ref-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .ref-card { aspect-ratio: 4 / 3; }
  .section-title { font-size: 32px; }
  .form-row { grid-template-columns: 1fr; }
}
