/* =========================================================
   Morgan's Heavy Diesel — mobile heavy diesel mechanics, SE QLD
   Direction: field-grade industrial. Asphalt black + hi-vis yellow,
   wide Archivo Expanded display, mono spec labels, hazard-stripe motif.
   ========================================================= */

:root {
  --black:    #0d0e0f;
  --black-2:  #14161a;
  --black-3:  #1c1f25;
  --ink:      #121316;
  --concrete: #e9e7e1;
  --concrete-2:#dedbd2;
  --steel:    #9aa0a6;
  --steel-d:  #6c7177;
  --line-d:   #2a2e34;
  --line-l:   #cdc9c0;
  --yellow:   #ffc21a;
  --yellow-d: #e3a200;
  --white:    #f7f7f5;

  --display: "Archivo Expanded", "Archivo Black", "Archivo", system-ui, sans-serif;
  --body:    "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "Spline Sans Mono", ui-monospace, "SFMono-Regular", monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(64px, 9vw, 128px);
  --max: 1240px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --hazard: repeating-linear-gradient(135deg, var(--yellow) 0 13px, #111316 13px 26px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; background: var(--black); color: var(--white);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--yellow); color: #111; }
.hl { color: var(--yellow); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: #111; padding: 12px 16px; z-index: 200; font-weight: 700; }
.skip:focus { left: 14px; top: 14px; }

/* ---------- brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark { width: 40px; height: 35px; fill: var(--yellow); flex: none; }
.brand__mark .mk-hole { fill: var(--black); }
.brand__txt { display: flex; flex-direction: column; line-height: 0.92; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: 0.01em; color: var(--white); }
.brand__sub { font-family: var(--mono); font-weight: 600; font-size: 9.5px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--yellow); margin-top: 3px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 13px var(--gutter);
  background: color-mix(in oklab, var(--black) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-d);
}
.nav__links { display: flex; gap: 30px; justify-content: center; font-weight: 600; font-size: 13px; letter-spacing: 0.04em; }
.nav__links a { color: color-mix(in oklab, var(--white) 76%, transparent); text-decoration: none; padding: 6px 0; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  display: inline-flex; align-items: center; font-weight: 700; font-size: 14px; text-decoration: none;
  color: #111; background: var(--yellow); padding: 11px 20px; white-space: nowrap;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav__cta:hover { background: #ffd34d; transform: translateY(-1px); }
.nav__toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 40px; padding: 0 10px; background: transparent; border: 1px solid var(--line-d); cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; gap: 12px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

/* ---------- mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.mobile-menu.is-open { visibility: visible; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgba(6,6,8,.66); opacity: 0; transition: opacity .35s var(--ease); }
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(340px, 86vw);
  background: var(--black-2); border-left: 3px solid var(--yellow);
  padding: 80px 30px calc(30px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 28px;
  transform: translateX(100%); transition: transform .4s var(--ease);
}
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu__close { position: absolute; top: 16px; right: 18px; width: 42px; height: 42px; background: transparent; border: none; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu__links a { font-family: var(--display); font-weight: 700; font-size: 23px; color: #fff; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line-d); }
.mobile-menu__links a:hover { color: var(--yellow); }
.mobile-menu__cta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.mobile-menu__cta .btn { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .mobile-menu__backdrop, .mobile-menu__panel, .nav__toggle span { transition: none !important; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  text-decoration: none; padding: 15px 26px; border: 2px solid transparent; cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.btn--yellow { background: var(--yellow); color: #111; }
.btn--yellow:hover { background: #ffd34d; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: color-mix(in oklab, #fff 34%, transparent); clip-path: none; }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--big { font-size: 16.5px; padding: 18px 32px; }

/* ---------- shared kicker + heads ---------- */
.kicker { font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--yellow-d); margin: 0 0 16px; }
.kicker--light { color: var(--yellow); }
.sec-head { max-width: var(--max); margin: 0 auto clamp(34px, 5vw, 56px); }
.sec-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -0.01em;
  margin: 0; color: var(--ink); text-wrap: balance;
}
.sec-title--light { color: var(--white); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--black); min-height: min(94vh, 820px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, var(--black) 2%, color-mix(in oklab, var(--black) 55%, transparent) 38%, transparent 72%),
    linear-gradient(to right, color-mix(in oklab, var(--black) 86%, transparent), transparent 60%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 92px) var(--gutter) clamp(34px, 5vw, 56px); }
.hero__title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(40px, 7.6vw, 104px); line-height: 0.96; letter-spacing: -0.018em;
  margin: 0 0 24px; text-shadow: 0 4px 40px color-mix(in oklab, var(--black) 70%, transparent);
}
.hero__lede { max-width: 56ch; font-size: clamp(15.5px, 1.4vw, 18.5px); color: color-mix(in oklab, #fff 88%, transparent); margin: 0 0 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
/* hero ticker marquee */
.hero__ticker { position: relative; z-index: 2; border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); background: color-mix(in oklab, var(--black) 78%, transparent); overflow: hidden; padding: 12px 0; }
.hero__ticker-track { display: inline-flex; align-items: center; gap: 0; white-space: nowrap; animation: ticker 26s linear infinite; }
.hero__ticker-track span { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: color-mix(in oklab, #fff 80%, transparent); padding: 0 22px; }
.hero__ticker-track i { width: 7px; height: 7px; background: var(--yellow); transform: rotate(45deg); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hero__ticker-track { animation: none; } }

/* ---------- statement band ---------- */
.statement { background: var(--black-2); padding: clamp(56px, 8vw, 110px) var(--gutter); border-top: 4px solid; border-image: var(--hazard) 4; }
.statement__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.statement__big { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.0; letter-spacing: -0.015em; margin: 0; }
.statement__sub { color: var(--steel); font-size: 16px; margin: 0; max-width: 46ch; }
@media (max-width: 820px) { .statement__inner { grid-template-columns: 1fr; gap: 22px; align-items: start; } }

/* ---------- services ---------- */
.services { background: var(--concrete); color: var(--ink); padding: var(--section-y) var(--gutter); }
.svc-list { max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line-l); }
.svc { display: grid; grid-template-columns: 120px 1fr; gap: clamp(16px, 4vw, 56px); padding: clamp(26px, 3.6vw, 44px) 0; border-bottom: 1px solid var(--line-l); align-items: start; transition: background 0.25s var(--ease); }
.svc__no { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5vw, 68px); line-height: 0.8; color: var(--yellow-d); -webkit-text-stroke: 0; }
.svc__name { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.5vw, 32px); margin: 0 0 10px; letter-spacing: -0.01em; }
.svc__desc { margin: 0; font-size: 16px; color: #3b3e42; max-width: 62ch; }
.svc-note { max-width: var(--max); margin: clamp(28px, 4vw, 40px) auto 0; font-size: 16px; color: #4a4d51; }
.svc-note a { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--yellow); white-space: nowrap; }
.svc-note a:hover { color: var(--yellow-d); }
@media (max-width: 620px) { .svc { grid-template-columns: 1fr; gap: 4px; } .svc__no { font-size: 40px; } }

/* ---------- ute band ---------- */
.band { position: relative; min-height: min(64vh, 560px); display: flex; align-items: center; overflow: hidden; }
.band__media { position: absolute; inset: 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__overlay { position: absolute; inset: 0; background: linear-gradient(to right, var(--black) 6%, color-mix(in oklab, var(--black) 60%, transparent) 46%, transparent 80%); }
.band__inner { position: relative; max-width: var(--max); margin: 0 auto; width: 100%; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.band__title { font-family: var(--display); font-weight: 900; font-size: clamp(32px, 5.4vw, 70px); line-height: 0.98; letter-spacing: -0.02em; margin: 0 0 16px; }
.band__sub { max-width: 44ch; color: color-mix(in oklab, #fff 88%, transparent); font-size: clamp(15.5px, 1.4vw, 18px); margin: 0; }

/* ---------- capability (dark split) ---------- */
.cap { background: var(--black); padding: var(--section-y) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 76px); align-items: center; max-width: 1340px; margin: 0 auto; }
.cap__media { margin: 0; overflow: hidden; aspect-ratio: 5 / 4.4; border: 1px solid var(--line-d); position: relative; }
.cap__media::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 8px; background: var(--hazard); }
.cap__media img { width: 100%; height: 100%; object-fit: cover; }
.cap__intro { color: var(--steel); font-size: 16.5px; margin: 22px 0 26px; max-width: 50ch; }
.cap__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); }
.cap__grid li { background: var(--black); padding: 18px 18px 18px 40px; font-weight: 600; font-size: 15px; position: relative; }
.cap__grid li::before { content: ""; position: absolute; left: 16px; top: 22px; width: 11px; height: 11px; background: var(--yellow); clip-path: polygon(0 0, 100% 50%, 0 100%); }
@media (max-width: 900px) { .cap { grid-template-columns: 1fr; } .cap__media { aspect-ratio: 16 / 11; } }
@media (max-width: 460px) { .cap__grid { grid-template-columns: 1fr; } }

/* ---------- the difference (light editorial) ---------- */
.diff { background: var(--concrete-2); color: var(--ink); padding: var(--section-y) var(--gutter); }
.diff { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); max-width: var(--max); margin: 0 auto; align-items: start; }
.diff__lead .sec-title { font-size: clamp(34px, 4.6vw, 58px); }
.diff__list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-l); border: 1px solid var(--line-l); }
.diff__item { background: var(--concrete-2); padding: clamp(22px, 2.6vw, 30px); border-top: 3px solid var(--yellow); }
.diff__item dt { font-family: var(--display); font-weight: 700; font-size: 19px; margin: 0 0 8px; }
.diff__item dd { margin: 0; font-size: 14.5px; color: #44474b; line-height: 1.55; }
@media (max-width: 860px) { .diff { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 520px) { .diff__list { grid-template-columns: 1fr; } }

/* ---------- service area ---------- */
.area { background: var(--black-2); padding: var(--section-y) var(--gutter); text-align: center; border-top: 1px solid var(--line-d); }
.area__inner { max-width: 880px; margin: 0 auto; }
.area .sec-title { color: var(--white); }
.area .kicker { display: inline-block; }
.area__sub { color: var(--steel); font-size: 17px; margin: 18px auto 40px; max-width: 48ch; }
.area__route { display: flex; align-items: center; justify-content: center; gap: 0; margin: 8px auto 26px; }
.area__node { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: none; }
.area__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 6px color-mix(in oklab, var(--yellow) 22%, transparent); }
.area__node--end .area__dot { background: #fff; box-shadow: 0 0 0 6px color-mix(in oklab, #fff 18%, transparent); }
.area__pt { font-family: var(--display); font-weight: 700; font-size: clamp(15px, 2vw, 21px); }
.area__line { flex: 1; max-width: 360px; height: 4px; margin: 0 -2px 30px; background: var(--hazard); }
.area__fine { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-d); margin: 0; }
@media (max-width: 560px) { .area__route { flex-direction: column; gap: 0; } .area__line { width: 4px; height: 70px; max-width: none; margin: 6px 0; } .area__node { flex-direction: row; gap: 14px; } }

/* ---------- contact ---------- */
.contact { background: var(--black); padding: var(--section-y) var(--gutter); }
.contact__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 76px); align-items: center; }
.contact__sub { color: var(--steel); font-size: 17px; margin: 18px 0 30px; max-width: 46ch; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ccard { display: flex; flex-direction: column; gap: 7px; padding: 22px; background: var(--black-3); border: 1px solid var(--line-d); text-decoration: none; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease); }
a.ccard:hover { border-color: var(--yellow); transform: translateY(-3px); background: #20242b; }
.ccard__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--yellow); }
.ccard__val { font-weight: 700; font-size: 15.5px; color: #fff; word-break: break-word; }
.ccard--static .ccard__val { color: var(--steel); }
@media (max-width: 880px) { .contact__inner { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 420px) { .contact__cards { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: #08090a; color: #fff; padding: clamp(44px, 6vw, 72px) var(--gutter) calc(86px + env(safe-area-inset-bottom)); border-top: 4px solid; border-image: var(--hazard) 4; }
.foot__top { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.brand--foot .brand__name { font-size: 22px; }
.foot__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; font-size: 14px; }
.foot__contact > a { color: color-mix(in oklab, #fff 82%, transparent); text-decoration: none; font-weight: 600; }
.foot__contact > a:hover { color: var(--yellow); }
.foot__social { display: inline-flex; align-items: center; gap: 8px; }
.foot__social svg { width: 22px; height: 22px; fill: currentColor; }
.foot__line { max-width: var(--max); margin: 28px auto 0; padding-top: 22px; border-top: 1px solid var(--line-d); font-size: 14px; color: var(--steel); }
.foot__base { max-width: var(--max); margin: 18px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.foot__fine { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-d); }
.jtn-credit { margin: 0; font-size: 12.5px; color: var(--steel-d); }
.jtn-credit a { color: var(--steel); text-decoration: none; border-bottom: 1px solid var(--line-d); transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.jtn-credit a:hover { color: var(--yellow); border-color: var(--yellow); }

/* ---------- mobile sticky call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: center; justify-content: center; gap: 10px;
  background: var(--yellow); color: #111; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 0.01em;
  padding: 15px 16px calc(15px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 28px color-mix(in oklab, var(--black) 50%, transparent);
}
.callbar svg { width: 19px; height: 19px; fill: none; stroke: #111; stroke-width: 2; }
@media (max-width: 900px) { .callbar { display: flex; } }

/* ---------- reveals ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal-img] { opacity: 0; transform: translateY(12px) scale(0.99); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-delay="1"] { transition-delay: 70ms; } [data-delay="2"] { transition-delay: 140ms; }
[data-delay="3"] { transition-delay: 210ms; } [data-delay="4"] { transition-delay: 280ms; }
.is-in[data-reveal], .is-in[data-reveal-img] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal], [data-reveal-img] { opacity: 1 !important; transform: none !important; transition: none !important; } }
