/* III Migos Construction Group — colours taken from the logo, brochure and truck wrap */
:root {
  --black: #0b0b0c;
  --panel: #131315;
  --line: #26262a;
  --bone: #ece6da;
  --grey: #a3a19c;
  --dim: #34332f;
  --red: #e2482d;
  --teal: #3c9c9d;
  --head: "Teko", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font: 400 17px/1.6 var(--body);
  overflow-x: clip;
}
/* Faint grit over everything, like the distressed print on the brochure */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.red { color: var(--red); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

h1, h2, h3, .btn, .nav, .card b, dt, .big-line, .manifesto-text, .promise p, .footer-tag, .pull {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .02em;
  font-weight: 600;
}
.h2 { font-size: clamp(42px, 6vw, 76px); line-height: .92; margin: 0 0 24px; }
.h3 { font-size: 40px; line-height: 1; margin: 0 0 20px; }
.h3::after, .h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 14px;
  background: var(--red);
}
.lead { font-size: 21px; color: var(--bone); }
p { color: var(--grey); }

.btn {
  display: inline-block;
  padding: 12px 28px 9px;
  background: var(--red);
  color: #fff;
  font-size: 22px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background .2s;
}
.btn:hover { background: #f05a3e; }
.btn-sm { font-size: 19px; padding: 8px 20px 5px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px max(16px, calc((100% - var(--wrap)) / 2));
  background: linear-gradient(#0b0b0cee, #0b0b0c00);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 28px; }
.nav-brand img { mix-blend-mode: lighten; width: 48px; height: 48px; }
.nav-brand b { color: var(--red); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 21px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--grey); }
.nav-links a:not(.btn):hover { color: var(--bone); }

/* ---------- Scroll scenes: JS sets --p from 0 to 1 while the scene is pinned ---------- */
.scene { position: relative; --p: 0; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* Hero */
.hero { height: 340vh; }
/* The whole photo always shows (all three bulls: III = three), in the top part of the
   screen, with the company name underneath. A blurred copy fills the rest of the screen. */
.hero-img {
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  height: 52vh;
  height: 52svh;
  object-fit: contain;
  object-position: 50% 0;
  /* scroll.js points the zoom at the middle bull's face */
  transform-origin: 50% 30%;
  transform: scale(calc(1 + var(--p) * 1.6));
  filter: brightness(calc(1 - var(--p) * .6));
  will-change: transform;
}
.hero-bg {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  max-width: none;
  object-fit: cover;
  filter: blur(28px) brightness(.35);
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, #0b0b0c 0%, #0b0b0c00 40%); }
.hero-copy {
  position: absolute;
  left: max(16px, calc((100% - var(--wrap)) / 2));
  right: 16px;
  bottom: 9vh;
}
.hero-a { opacity: clamp(0, calc(1 - var(--p) * 3), 1); transform: translateY(calc(var(--p) * -80px)); }
.hero-b { opacity: clamp(0, calc((var(--p) - .33) * 4), 1); transform: translateY(calc((1 - clamp(0, calc((var(--p) - .33) * 4), 1)) * 40px)); }
.hero-name { font-size: clamp(56px, min(10vw, 9.5vh), 140px); line-height: .86; margin: 0; text-shadow: 0 4px 30px #0b0b0c; }
/* "Construction Group" stays nearly as big as the name so nobody mistakes what we do */
.hero-trade { display: inline-block; font-size: .82em; letter-spacing: .03em; }
.hero-tag { font-family: var(--head); text-transform: uppercase; font-weight: 600; font-size: clamp(26px, 3.4vw, 44px); line-height: 1; color: var(--bone); margin: 18px 0 0; padding-top: 14px; border-top: 3px solid var(--teal); display: inline-block; }
.big-line { font-size: clamp(48px, 7vw, 96px); line-height: .9; color: var(--bone); margin: 0 0 28px; }
.scroll-cue { font-family: var(--head); text-transform: uppercase; letter-spacing: .3em; color: var(--grey); font-size: 18px; margin-top: 26px; }
.scroll-cue::after { content: ""; display: block; width: 2px; height: 46px; margin: 8px 0 0 4px; background: linear-gradient(var(--red), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(10px); opacity: .4; } }

/* Manifesto */
.manifesto { height: 260vh; }
.manifesto .sticky { display: grid; place-items: center; }
.manifesto-text { margin: 0; padding: 0 16px; font-size: clamp(54px, 9.5vw, 136px); line-height: .92; }
.manifesto-text .line { display: block; }
.w { color: var(--dim); transition: color .35s; }
.w.on { color: var(--bone); }
em .w.on, .w.accent.on { color: var(--red); }
em { font-style: normal; }

/* Who we are */
.block { padding: 130px 0; position: relative; }
.who-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.pull { font-size: 34px; line-height: 1; color: var(--bone); margin-top: 32px; }
.emblem img { mix-blend-mode: lighten; width: 100%; max-width: 520px; margin-inline: auto; }
.pillars {
  list-style: none;
  padding: 0;
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
}
.pillars li {
  padding: 22px 14px 0 0;
  font-family: var(--head);
  text-transform: uppercase;
  font-size: 21px;
  line-height: 1.05;
  color: var(--bone);
}
.pillars svg { width: 34px; height: 34px; display: block; margin-bottom: 12px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Services */
.services { height: 420vh; }
.services .sticky { display: flex; flex-direction: column; justify-content: center; gap: 36px; }
.services-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.services-head .h2 { margin: 0; }
.bar { width: 180px; height: 3px; background: var(--line); flex: none; margin-bottom: 18px; }
.bar span { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--red); }
.track {
  list-style: none;
  margin: 0;
  padding: 0 max(16px, calc((100% - var(--wrap)) / 2));
  display: flex;
  gap: 22px;
  width: max-content;
  transform: translateX(calc(var(--p) * var(--shift, 0px) * -1));
  will-change: transform;
}
.card {
  width: 330px;
  min-height: 300px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  display: flex;
  flex-direction: column;
}
.card b { color: var(--red); font-size: 30px; }
.card h3 { font-size: 34px; line-height: .95; margin: auto 0 12px; }
.card p { margin: 0; font-size: 16px; }

/* Truck */
.truck { height: 320vh; }
.truck .sticky { display: grid; place-items: center; background: #0e0e10; }
.truck-frame { width: min(1200px, 100%); overflow: hidden; }
.truck-img { width: 100%; transform-origin: 50% 60%; will-change: transform; }
.promise {
  position: absolute;
  left: 50%;
  bottom: 8vh;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 32px));
  padding: 22px 24px 16px;
  border: 2px solid var(--teal);
  background: #0b0b0cdd;
  text-align: center;
  opacity: clamp(0, calc((var(--p) - .72) * 5), 1);
}
.promise p { margin: 0; color: var(--bone); font-size: clamp(30px, 4vw, 40px); line-height: 1; }
.hammers { width: 40px; height: 40px; color: var(--teal); margin-top: 8px; }

/* Values */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.col { padding: 0 40px; border-left: 1px solid var(--line); }
.col:first-child { padding-left: 0; border-left: 0; }
.value-list { margin: 0; }
.value-list div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.value-list dt { font-size: 24px; line-height: 1; color: var(--bone); }
.value-list dd { margin: 4px 0 0; color: var(--grey); font-size: 15px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 12px 0 12px 36px; border-bottom: 1px solid var(--line); position: relative; color: var(--bone); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 14px; height: 7px; border: solid var(--teal); border-width: 0 0 3px 3px; transform: rotate(-45deg); }

/* Built for business */
.future { height: 220vh; }
.future-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.house-draw { width: 100%; max-width: 460px; justify-self: center; overflow: visible; }
.house-draw .d {
  fill: none;
  stroke: var(--red);
  stroke-width: 9;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - clamp(0, calc(var(--p) * 1.6), 1));
}
.house-draw .d:not(.roof) { stroke-width: 12; stroke-dashoffset: calc(1 - clamp(0, calc((var(--p) - .25) * 2), 1)); }

/* Contact */
.contact { background: linear-gradient(#0b0b0c, #121214); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--bone); }
.contact-list span { display: block; font-family: var(--head); text-transform: uppercase; color: var(--teal); font-size: 18px; line-height: 1; }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-family: var(--head); text-transform: uppercase; font-size: 19px; color: var(--grey); }
.form input, .form select, .form textarea {
  font: 400 16px/1.4 var(--body);
  color: var(--bone);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; }
.form .btn { justify-self: start; }
.hp { display: none; }
.form-status { margin: 0; min-height: 1.6em; }

/* Footer */
.footer { padding: 70px 0 40px; border-top: 4px solid var(--teal); text-align: center; }
.footer-mark { width: 70px; height: 58px; color: var(--red); margin: 0 auto 8px; display: block; }
.footer-tag { font-size: 30px; margin: 0; }
.small { font-size: 14px; }

/* Fade-up on arrival */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.pillars .reveal:nth-child(2), .three .reveal:nth-child(2) { transition-delay: .08s; }
.pillars .reveal:nth-child(3), .three .reveal:nth-child(3) { transition-delay: .16s; }
.pillars .reveal:nth-child(4) { transition-delay: .24s; }
.pillars .reveal:nth-child(5) { transition-delay: .32s; }
.pillars .reveal:nth-child(6) { transition-delay: .4s; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
  .who-grid, .future-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .emblem { order: -1; }
  .emblem img { max-width: 320px; }
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
  .three { grid-template-columns: 1fr; gap: 56px; }
  .col, .col:first-child { padding: 0; border: 0; }
  .house-draw { max-width: 240px; }
  .block { padding: 90px 0; }
  .bar { display: none; }
  .card { width: 280px; min-height: 260px; }
  .truck { height: 260vh; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-brand span { display: none; }
  .form .row { grid-template-columns: 1fr; }
}

/* People who turn off motion get a calm, static page */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene { height: auto !important; --p: 1 !important; }
  .sticky { position: relative; height: auto; min-height: 100vh; }
  .hero-a { display: none; }
  .hero-img { transform: none; filter: brightness(.5); }
  .services .sticky { min-height: 0; padding: 100px 0; }
  .track { transform: none; width: auto; flex-wrap: wrap; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
}
