/* ============================================================
   GMCS — Global Construction Services
   Scroll-cinematic redesign · gold / black industrial
   ============================================================ */
:root {
  --bg:      #0a0a0b;
  --bg-2:    #101012;
  --panel:   #141416;
  --ink:     #f5f1e6;
  --muted:   rgba(245, 241, 230, 0.62);
  --faint:   rgba(245, 241, 230, 0.34);
  --gold:    #d4af37;
  --gold-2:  #b8860b;
  --gold-hi: #f0d67a;
  --line:    rgba(212, 175, 55, 0.22);
  --maxw:    1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-width: none; scroll-behavior: auto; }
html::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Oswald", "Inter", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.02;
}

a { color: inherit; text-decoration: none; }
.gold { color: var(--gold); }

/* ---------- Top progress ---------- */
#top-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-hi));
  box-shadow: 0 0 14px rgba(212,175,55,0.7);
  z-index: 100; transition: width 0.08s linear;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 44px);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,11,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: "Oswald", sans-serif; font-weight: 700;
  font-size: 22px; letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.brand .dot { width: 9px; height: 9px; background: var(--gold);
  transform: rotate(45deg); box-shadow: 0 0 12px var(--gold); }
.brand small { color: var(--faint); font-size: 10px; letter-spacing: 0.3em; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  padding: 9px 18px; border: 1px solid var(--gold);
  color: var(--gold) !important; border-radius: 2px;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--gold); color: #0a0a0b !important; }
.nav-langs { color: var(--faint); font-size: 11px; letter-spacing: 0.2em; }
@media (max-width: 860px) { .nav-links .hide-sm { display: none; } }

/* ---------- Cinematic scroll sections ---------- */
.cinematic { position: relative; height: 560vh; }
.cinematic.short { height: 420vh; }
.sticky {
  position: sticky; top: 0; height: 100vh; width: 100%;
  overflow: hidden; display: grid; place-items: center; background: #050506;
}
.sticky canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 42%, transparent 40%, rgba(0,0,0,0.72) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 22%, transparent 62%, rgba(0,0,0,0.85) 100%);
}

/* overlay scroll-scrubbed copy — centered via flexbox so the engine's
   inline transform: translateY() (reveal motion) never breaks centering */
.overlay { position: absolute; inset: 0; z-index: 10; }
.reveal-line {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px;
  opacity: 0; will-change: opacity, transform;
}
.reveal-line > * { max-width: min(92vw, 760px); overflow-wrap: break-word; }
.reveal-line .kicker {
  display: block; font-family: "Inter", sans-serif; font-weight: 600;
  font-size: clamp(11px, 1.4vw, 14px); letter-spacing: 0.45em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.reveal-line h1, .reveal-line h2 {
  font-size: clamp(2.1rem, 7.5vw, 6.4rem);
  text-shadow: 0 8px 60px rgba(0,0,0,0.6);
}
.reveal-line .sub {
  display: block; margin-top: 18px; font-family: "Inter", sans-serif;
  font-weight: 400; text-transform: none; letter-spacing: 0.01em;
  font-size: clamp(1rem, 2vw, 1.35rem); color: var(--ink);
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
.reveal-line em { color: var(--gold); font-style: normal; }

/* hero HUD chrome */
.tag {
  position: absolute; z-index: 12; font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--faint);
}
.tag.tl { top: 100px; left: clamp(16px,4vw,44px); }
.tag.tr { top: 100px; right: clamp(16px,4vw,44px); color: var(--gold); }
.tag.br { bottom: 46px; right: clamp(16px,4vw,44px); }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 12; font-size: 11px; letter-spacing: 0.42em; color: var(--muted);
  animation: bob 1.8s ease-in-out infinite; transition: opacity 0.4s;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }

/* ---------- Generic section ---------- */
.section { padding: clamp(70px, 11vw, 150px) clamp(16px, 4vw, 44px); position: relative; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px; display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); display: inline-block; }
.section h2.title { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 16ch; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 62ch; margin-top: 22px; }

/* reveal on enter */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---------- Intro / mission ---------- */
.mission { background: linear-gradient(180deg, #050506, var(--bg)); }
.mission .big {
  font-family: "Oswald", sans-serif; font-weight: 600; text-transform: none;
  font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.2; max-width: 20ch; letter-spacing: 0;
}

/* ---------- Services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 54px;
  background: var(--line); border: 1px solid var(--line); }
.svc {
  background: var(--panel); padding: clamp(28px, 4vw, 46px);
  transition: background 0.35s, transform 0.35s; position: relative; overflow: hidden;
}
.svc:hover { background: #17160f; }
.svc .num { font-family: "Oswald", sans-serif; font-size: 13px; letter-spacing: 0.3em; color: var(--gold); }
.svc h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 18px 0 12px; }
.svc p { color: var(--muted); font-size: 1rem; }
.svc .ico { font-size: 30px; margin-bottom: 6px; filter: grayscale(0.2); }
.svc::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-hi)); transition: width 0.4s;
}
.svc:hover::after { width: 100%; }
@media (max-width: 720px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Advantages ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 50px; }
.adv { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--line); }
.adv .k { font-family: "Oswald", sans-serif; color: var(--gold); font-size: 24px; min-width: 44px; }
.adv h4 { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.15rem; margin-bottom: 6px; }
.adv p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 720px) { .adv-grid { grid-template-columns: 1fr; } }

/* ---------- Methodology timeline ---------- */
.steps { margin-top: 54px; border-left: 1px solid var(--line); }
.step { position: relative; padding: 0 0 40px 40px; }
.step::before {
  content: ""; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px;
  background: var(--bg); border: 2px solid var(--gold); transform: rotate(45deg);
}
.step .st-n { font-family: "Oswald", sans-serif; color: var(--gold); font-size: 13px; letter-spacing: 0.3em; }
.step h4 { font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 1.3rem; margin: 6px 0 8px; }
.step p { color: var(--muted); font-size: 1rem; max-width: 54ch; }

/* ---------- Problems ---------- */
.problems { background: var(--bg-2); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.prob { padding: 26px; border: 1px solid var(--line); border-radius: 3px; background: rgba(255,255,255,0.015); }
.prob .x { color: var(--gold); font-family: "Oswald", sans-serif; font-size: 1rem; letter-spacing: 0.2em; }
.prob p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 860px) { .pgrid { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: clamp(34px, 5vw, 60px) 12px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .stat-num { font-family: "Oswald", sans-serif; font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--gold); display: block; line-height: 1; }
.stat .lbl { margin-top: 12px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: none; } .stat { border-bottom: 1px solid var(--line); } }

/* ---------- Contact / CTA ---------- */
.contact { background: radial-gradient(90% 70% at 50% 0%, rgba(212,175,55,0.08), transparent 60%), var(--bg); }
.contact .title { max-width: 22ch; }
.ct-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; margin-top: 54px; }
.ct-block h4 { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); font-size: 0.95rem; margin-bottom: 14px; }
.ct-row { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ct-row .l { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.ct-row .v { font-size: 1.15rem; }
.ct-row a:hover { color: var(--gold); }
.btn {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 8px;
  padding: 16px 30px; background: var(--gold); color: #0a0a0b;
  font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 1rem; border-radius: 2px; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(212,175,55,0.28); background: var(--gold-hi); }
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn.ghost:hover { background: rgba(212,175,55,0.1); box-shadow: none; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
@media (max-width: 820px) { .ct-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Footer ---------- */
.footer { padding: 46px clamp(16px,4vw,44px); border-top: 1px solid var(--line); background: #050506; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer .legal { color: var(--faint); font-size: 13px; letter-spacing: 0.04em; }
.footer .brand { font-size: 18px; }
.footer .made { color: var(--faint); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.footer .made a:hover { color: var(--gold); }

/* ============================================================
   MOBILE / PHONE — captions stay on screen, tighter chrome
   ============================================================ */
@media (max-width: 680px) {
  body { font-size: 16px; }

  /* krótszy scrub, żeby na telefonie nie przewijać w nieskończoność */
  .cinematic { height: 440vh; }
  .cinematic.short { height: 340vh; }

  /* nav mieści się na wąskim ekranie */
  .nav { padding: 12px 16px; }
  .brand { font-size: 18px; }
  .brand small { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 11px; }

  /* === napisy nakładane: treść węższa niż ekran, centrowana flexem === */
  .reveal-line { padding: 0 14px; }
  .reveal-line > * { max-width: 90vw; text-wrap: balance; }
  .reveal-line .kicker { font-size: 10.5px; letter-spacing: 0.26em; margin-bottom: 12px; }
  .reveal-line h1, .reveal-line h2 { font-size: clamp(1.9rem, 8.4vw, 2.9rem); line-height: 1.06; }
  .reveal-line .sub { font-size: 0.96rem; margin-top: 12px; line-height: 1.5; }

  /* hero: chowamy górne tagi, żeby nie kolidowały z tekstem na środku */
  .tag.tl, .tag.tr { display: none; }
  .tag.br { bottom: 58px; font-size: 9px; letter-spacing: 0.16em; }
  .scroll-hint { bottom: 18px; font-size: 10px; letter-spacing: 0.3em; }

  /* sekcje treściowe */
  .section h2.title { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .mission .big { font-size: clamp(1.4rem, 6.4vw, 2rem); }
  .steps { margin-top: 34px; }
  .step { padding-left: 28px; padding-bottom: 32px; }
  .btn { padding: 14px 24px; font-size: 0.95rem; }
  .btn-row { gap: 12px; }
}

/* bardzo wąskie telefony (≤400px) */
@media (max-width: 400px) {
  .reveal-line h1, .reveal-line h2 { font-size: clamp(1.65rem, 8vw, 2.3rem); }
  .reveal-line .sub { font-size: 0.9rem; }
  .brand { font-size: 16px; letter-spacing: 0.1em; }
}
