@font-face {
  font-family: "Mont";
  src: url("assets/fonts/Mont-HeavyDEMO.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --logo-bg: #231f20;
  --bg: #0b0d10;
  --bg-soft: #11151a;
  --card: #151a20;
  --line: #252c34;
  --text: #f1f3f5;
  --muted: #969ea8;
  --accent: #d7ff3f;
  --accent-dark: #a8d000;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--logo-bg);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-wrap { height: 78px; display: flex; align-items: center; justify-content: space-between; }
/* Crop only the surrounding background; the original SVG stays unchanged.
   Display window in SVG coordinates: x=60, y=54, width=371, height=78. */
.brand { position:relative; display:block; width:250px; aspect-ratio:371 / 78; overflow:hidden; flex-shrink:0; }
.brand-logo { position:absolute; display:block; width:131.850135%; max-width:none; height:auto; left:-16.172507%; top:-69.230769%; }
.brand:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
.nav { display: flex; align-items: center; gap: 30px; font-size: .94rem; color: #d4d8dd; }
.nav a { transition: .2s ease; }
.nav a:hover { color: var(--accent); }
.nav-cta { border: 1px solid var(--line); padding: 10px 16px; }

.menu-toggle { display:none; background:none; border:0; padding:8px; cursor:pointer; }
.menu-toggle span { display:block; width:24px; height:2px; background:var(--text); margin:5px 0; }

.hero {
  position: relative;
  min-height: 860px;
  display: flex;
  align-items: center;
  padding-top: 78px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(215,255,63,.10), transparent 28%),
    linear-gradient(120deg, #0b0d10 30%, #11151a 100%);
}
.hero-grid {
  position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 92%);
}
.hero::after {
  content:"BACKRO";
  position:absolute;
  right:-40px; bottom:40px;
  font-family:"Mont", Inter, sans-serif;
  font-size:clamp(8rem, 19vw, 20rem);
  line-height:.8;
  font-weight:900;
  color:transparent;
  -webkit-text-stroke:1px rgba(255,255,255,.055);
  letter-spacing:-.05em;
  pointer-events:none;
}
.hero-content { position:relative; z-index:2; padding: 80px 0; }
.eyebrow { color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .22em; margin-bottom: 22px; }
h1,h2,h3 { font-family:"Mont", Inter, sans-serif; font-weight:900; margin-top:0; overflow-wrap:break-word; }
h1 { max-width: 950px; margin-bottom: 26px; font-size: clamp(2.1rem, 4.5vw, 4rem); line-height: 1.12; letter-spacing: -.025em; }
h1 span { color: #9aa2ab; }
.hero-copy { max-width: 720px; margin:0 0 34px; color:var(--muted); font-size:1.15rem; }
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:52px; padding:0 22px; border:1px solid var(--line); font-weight:700; font-size:.92rem; transition:.2s ease; }
.btn-primary { background:var(--accent); color:#0a0c0f; border-color:var(--accent); }
.btn-primary:hover { background:#e4ff75; transform:translateY(-1px); }
.btn-secondary:hover { border-color:#59616b; background:#14181d; }
.hero-stats { display:flex; gap:48px; margin-top:80px; }
.hero-stats div { display:flex; flex-direction:column; gap:4px; }
.hero-stats strong { font-family:"Space Grotesk"; font-size:1.35rem; color:var(--accent); }
.hero-stats span { color:var(--muted); font-size:.86rem; }

.section { padding:120px 0; border-top:1px solid rgba(255,255,255,.05); }
.section-head { display:grid; grid-template-columns: 1.5fr .8fr; gap:60px; align-items:end; margin-bottom:52px; }
.section-head h2, .contact-section h2 { font-size:clamp(2rem, 3.6vw, 3.6rem); line-height:1.12; margin-bottom:0; letter-spacing:-.035em; }
.section-head p { margin:0; color:var(--muted); }

.services-grid { display:grid; grid-template-columns:repeat(6,1fr); border-top:1px solid var(--line); border-left:1px solid var(--line); }
.service-card { grid-column:span 2; position:relative; min-height:290px; padding:32px; background:var(--bg-soft); border-right:1px solid var(--line); border-bottom:1px solid var(--line); overflow:hidden; }
.service-card:nth-last-child(-n+2) { grid-column:span 3; }
.service-number { font-family:"Space Grotesk"; color:#59616b; font-size:.82rem; margin-bottom:70px; }
.service-card h3 { font-size:1.4rem; margin-bottom:12px; }
.service-card p { color:var(--muted); margin:0; font-size:.95rem; }
.service-card .line { position:absolute; left:32px; right:32px; bottom:0; height:2px; background:var(--accent); transform:scaleX(0); transform-origin:left; transition:.25s ease; }
.service-card:hover .line { transform:scaleX(1); }
.accent-card { background:linear-gradient(145deg,#151a20,#1a201b); }

.projects-section { background:#0d1013; }
.projects-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.project-card { min-width:0; border:1px solid var(--line); background:var(--bg-soft); }
.project-large { grid-column:1 / -1; }
.project-photo { position:relative; overflow:hidden; background:var(--bg-soft); }
.project-photo img { display:block; width:100%; height:100%; object-fit:contain; }
.project-photo-solar { aspect-ratio:16 / 9; }
.project-photo-solar img { position:absolute; width:160%; max-width:none; height:auto; left:-45%; top:-50%; }
.project-photo-portrait { aspect-ratio:3 / 4; }
.project-info { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:24px; border-top:1px solid var(--line); }
.project-info p { color:var(--accent); font-size:.68rem; letter-spacing:.16em; margin:0 0 6px; }
.project-info h3 { margin:0; font-size:1.25rem; }
.project-info > span { font-size:1.6rem; color:#6c747d; }

.contact-section { background:linear-gradient(135deg,#11151a,#0b0d10); }
.contact-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:70px; align-items:start; }
.contact-grid > div:first-child > p { max-width:640px; color:var(--muted); font-size:1.08rem; }
.contact-card { border:1px solid var(--line); padding:34px; display:flex; flex-direction:column; align-items:flex-start; gap:12px; background:#101419; }
.contact-label { font-size:.7rem; letter-spacing:.18em; color:#68717a; margin:0 0 18px; }
.contact-card a:not(.btn) { font-family:"Space Grotesk"; font-size:1.2rem; border-bottom:1px solid transparent; }
.contact-card a:not(.btn):hover { border-color:var(--accent); }
.contact-card > p:not(.contact-label) { color:var(--muted); }
.contact-btn { margin-top:16px; }

footer { background:var(--logo-bg); border-top:1px solid var(--line); padding:30px 0; }
.footer-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; color:var(--muted); font-size:.84rem; }
.footer-brand { color:var(--text); }
.footer-brand { width:210px; }
.footer-company { min-width:0; font-size:.875rem; }
.footer-company p { margin:4px 0; }
.footer-legal { color:var(--text); }
.footer-inner a:hover { color:var(--accent); }

@media (max-width: 900px) {
  .menu-toggle { display:block; }
  .nav { position:absolute; left:20px; right:20px; top:70px; display:none; flex-direction:column; align-items:stretch; gap:0; padding:12px; border:1px solid var(--line); background:#0f1317; }
  .nav.open { display:flex; }
  .nav a { padding:14px 12px; }
  .nav-cta { border:0; }
  .hero { min-height:760px; }
  .section-head, .contact-grid { grid-template-columns:1fr; gap:28px; }
  .services-grid { grid-template-columns:repeat(2,1fr); }
  .service-card, .service-card:nth-last-child(-n+2) { grid-column:auto; }
  .service-card:last-child { grid-column:1 / -1; }

}

@media (max-width: 620px) {
  .container { width:min(var(--max), calc(100% - 26px)); }
  .nav-wrap { height:68px; }
  .site-header .brand { width:200px; }
  .hero { min-height:720px; padding-top:68px; }
  .hero-content { padding:70px 0 45px; }
  .hero-copy { font-size:1rem; }
  .hero-actions { flex-direction:column; align-items:stretch; }
  .hero-stats { gap:24px; margin-top:54px; justify-content:space-between; }
  .section { padding:84px 0; }
  .projects-grid { grid-template-columns:1fr; }
  .services-grid { grid-template-columns:1fr; }
  .service-card { min-height:250px; }
  .service-number { margin-bottom:42px; }
  .footer-inner { flex-direction:column; align-items:flex-start; }
}
