/* ==========================================================================
   L4 Linemarking - site styles
   Colours and fonts are set once at the top; change them here to restyle
   the whole site.
   ========================================================================== */

@font-face {
  font-family: "L4 Display";
  src: url("fonts/l4-display-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --asphalt: #17191c;        /* main dark */
  --asphalt-deep: #101214;   /* footer */
  --asphalt-soft: #2a2e33;   /* image placeholders, borders on dark */
  --line: #ffc81e;           /* marking yellow */
  --line-bright: #ffd84f;
  --white: #ffffff;
  --concrete: #f3f2ee;       /* light section background */
  --ink: #191b1e;            /* body text */
  --muted: #586068;          /* secondary text on light */
  --rule: #dddbd4;           /* hairlines on light */
  --on-dark: #e8e9ea;
  --on-dark-muted: #a3aab1;

  --font-display: "L4 Display", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --nav-h: 84px;
  --radius: 6px;
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--line);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--line);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}
.skip:focus { top: 12px; }

/* Small label that sits above headings, with a painted dash in front */
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before {
  content: "";
  flex: none;
  width: 34px;
  height: 4px;
  background: var(--line);
}
.on-dark .kicker { color: var(--line); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn svg { flex: none; width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--line); color: var(--ink); }
.btn-primary:hover { background: var(--line-bright); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-small { min-height: 44px; padding: 8px 18px; font-size: 16px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 3px solid var(--line);
  padding: 12px 0 4px; /* tall enough to tap comfortably */
}
.text-link svg { width: 18px; height: 18px; transition: transform 0.2s; }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--asphalt);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
}

.brand { display: block; flex: none; }
.brand img { height: 64px; width: auto; transform: translateY(7px); } /* nudged down: the logo's weight sits in its top half */

.nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); }
.nav a:not(.btn) {
  position: relative;
  padding: 10px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-dark-muted);
  transition: color 0.15s;
}
.nav a:not(.btn):hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  background: var(--line);
}

/* ---------- Hazard stripe (used under dark bands) ---------- */

.hazard {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--line) 0 14px,
    var(--asphalt) 14px 28px
  );
}

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--asphalt);
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(16, 18, 20, 0.95) 0%,
    rgba(16, 18, 20, 0.86) 36%,
    rgba(16, 18, 20, 0.42) 70%,
    rgba(16, 18, 20, 0.2) 100%
  );
}
.hero .wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: min(80vh, 740px);
  padding-block: clamp(64px, 11vh, 130px);
}
.hero h1 {
  max-width: 11.5em;
  font-size: clamp(46px, 7.6vw, 100px);
  line-height: 0.94;
}
.hero h1 .hl { color: var(--line); }
.hero .lead {
  max-width: 34em;
  margin-top: 24px;
  font-size: clamp(18px, 1.7vw, 21px);
  color: var(--on-dark);
}
.hero .actions { margin-top: 36px; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 8vw, 104px); }
.section-concrete { background: var(--concrete); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 { font-size: clamp(36px, 4.8vw, 60px); }
.section-head p { max-width: 34em; margin-top: 14px; color: var(--muted); }

/* ---------- Home: services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
/* Five cards: the first two are large, the next three sit in a row below */
.service { grid-column: span 2; }
.service:nth-child(-n+2) { grid-column: span 3; }
.service {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--rule);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--rule), 0 14px 30px rgba(20, 22, 24, 0.12); }
.service-photo { aspect-ratio: 3 / 2; overflow: hidden; background: var(--asphalt-soft); }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service:hover .service-photo img { transform: scale(1.05); }
.service-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 22px;
  border-top: 5px solid var(--line);
}
.service h3 { font-size: 26px; }
.service p { font-size: 16px; line-height: 1.5; color: var(--muted); }
.service .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.service .more svg { width: 16px; height: 16px; transition: transform 0.2s; }
.service:hover .more svg { transform: translateX(4px); }

/* ---------- Home: recent work mosaic ---------- */

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 19vw, 250px);
  gap: 14px;
}
.mosaic .tile { aspect-ratio: auto; }
.mosaic .tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic .tile:nth-child(n+4) { grid-column: span 2; }

/* ---------- Photo tiles (home mosaic + gallery) ---------- */

.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--asphalt-soft);
  color: var(--white);
  text-decoration: none;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.tile:hover img { transform: scale(1.04); }
.tile[hidden] { display: none; }
.tile-cap {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 56px 16px 14px;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.82));
}
.tile-cap strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.tile-cap span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--line);
}

/* ---------- Call-to-action band ---------- */

.cta { background: var(--asphalt); color: var(--white); }
.cta .wrap {
  display: grid;
  grid-template-columns: 1.3fr auto;
  align-items: center;
  gap: 32px 56px;
  padding-block: clamp(52px, 7vw, 88px);
}
.cta h2 { font-size: clamp(36px, 5vw, 64px); max-width: 12em; }
.cta p { max-width: 32em; margin-top: 16px; color: var(--on-dark-muted); }
.cta .actions { flex-direction: column; align-items: stretch; }

/* Dashed lane line between the CTA band and footer */
.lane {
  height: 4px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0 44px, transparent 44px 88px);
}
.lane-wrap { background: var(--asphalt); }

/* ---------- Footer ---------- */

.site-footer { background: var(--asphalt-deep); color: var(--on-dark-muted); font-size: 16px; }
.site-footer .wrap { padding-block: 52px 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 36px 48px;
}
.footer-brand img { height: 76px; width: auto; }
.footer-brand p { max-width: 24em; margin-top: 16px; }
.site-footer h3 {
  margin-bottom: 14px;
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--white);
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { text-decoration: none; color: var(--on-dark); }
.site-footer a:hover { color: var(--line); }
.footer-base {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

/* ---------- Inner page header (Gallery, Contact) ---------- */

.page-head { background: var(--asphalt); color: var(--white); }
.page-head .wrap { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.page-head h1 { font-size: clamp(44px, 6.6vw, 84px); }
.page-head p { max-width: 36em; margin-top: 18px; font-size: clamp(17px, 1.6vw, 20px); color: var(--on-dark); }

/* ---------- Gallery ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid var(--rule);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--asphalt); border-color: var(--asphalt); color: var(--white); }
.chip .count { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0; opacity: 0.6; }
.chip[aria-pressed="true"] .count { color: var(--line); opacity: 1; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery .tile { cursor: zoom-in; }

/* Video tiles: round play button over the still picture */
.tile .play {
  position: absolute;
  top: 40%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(16, 18, 20, 0.7);
  transform: translate(-50%, -50%);
  transition: background-color 0.15s;
}
.tile .play svg { width: 26px; height: 26px; fill: var(--white); } /* triangle drawn slightly right of centre so it looks centred */
.tile:hover .play { background: var(--line); border-color: var(--line); }
.tile:hover .play svg { fill: var(--ink); }
.gallery .tile-video { cursor: pointer; }

/* In the gallery the caption sits under the photo, so it never covers the
   line work at the bottom of the shot. */
.gallery .tile { aspect-ratio: auto; background: var(--asphalt); }
.gallery .tile img { aspect-ratio: 4 / 3; height: auto; }
.gallery .tile-cap {
  position: relative;
  padding: 14px 16px 16px;
  background: var(--asphalt);
  border-top: 4px solid var(--line);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 56px 16px 20px;
  background: rgba(10, 11, 12, 0.95);
  color: var(--white);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(100%, 1400px);
  max-height: calc(100vh - 170px);
  max-height: calc(100dvh - 170px);
  width: auto;
  height: auto;
  border-radius: 4px;
}
.lightbox video {
  max-width: min(100%, 1400px);
  max-height: calc(100vh - 170px);
  max-height: calc(100dvh - 170px);
  border-radius: 4px;
  background: #000;
}
.lightbox img[hidden],
.lightbox video[hidden] { display: none; }
.lightbox-cap { text-align: center; }
.lightbox-cap strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lightbox-cap span { font-size: 14px; color: var(--on-dark-muted); }
.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.lightbox button[hidden] { display: none; }
.lightbox button:hover { background: var(--line); color: var(--ink); }
.lightbox button svg { width: 24px; height: 24px; }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
body.lightbox-open { overflow: hidden; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--rule);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
a.contact-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--ink), 0 12px 26px rgba(20, 22, 24, 0.1); }
.contact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 4px;
  background: var(--line);
  color: var(--ink);
}
.contact-icon svg { width: 28px; height: 28px; }
.contact-card .label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card .value {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}
.contact-card .value.is-email { font-size: clamp(21px, 2.7vw, 32px); text-transform: none; }
.contact-card .hint { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }

.panel {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--concrete);
  border-top: 5px solid var(--line);
}
.panel h2 { font-size: 30px; }
.panel > p { margin-top: 12px; color: var(--muted); }
.checklist { margin: 20px 0 0; padding: 0; list-style: none; }
.checklist li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-top: 1px solid var(--rule);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 20px;
  height: 4px;
  background: var(--line);
  box-shadow: 0 0 0 1px rgba(25, 27, 30, 0.12);
}
.checklist strong { display: block; }
.checklist span { font-size: 15px; color: var(--muted); }

/* ---------- Mobile quick-contact bar ---------- */

.quickbar { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero::before {
    background: linear-gradient(90deg, rgba(16, 18, 20, 0.94) 0%, rgba(16, 18, 20, 0.86) 55%, rgba(16, 18, 20, 0.55) 100%);
  }
  .service,
  .service:nth-child(-n+2) { grid-column: span 3; }
  .service:last-child:nth-child(odd) { grid-column: span 6; }
  .service:last-child:nth-child(odd) .service-photo { aspect-ratio: 5 / 2; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .cta .wrap { grid-template-columns: 1fr; }
  .cta .actions { flex-direction: row; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav .btn { display: none; }
}

@media (max-width: 720px) {
  :root { --nav-h: 68px; }
  body { font-size: 16px; padding-bottom: 58px; }
  .brand img { height: 50px; transform: translateY(5px); }

  .hero::before {
    background: linear-gradient(180deg, rgba(16, 18, 20, 0.9) 0%, rgba(16, 18, 20, 0.78) 60%, rgba(16, 18, 20, 0.62) 100%);
  }
  .hero .wrap { min-height: 0; padding-block: 64px 72px; }

  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; gap: 10px; }
  .gallery { gap: 12px; }

  .quickbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--asphalt);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .quickbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 58px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
  }
  .quickbar a:first-child { background: var(--line); color: var(--ink); }
  .quickbar svg { width: 20px; height: 20px; }
}

@media (max-width: 560px) {
  .service,
  .service:nth-child(-n+2),
  .service:last-child:nth-child(odd) { grid-column: span 6; }
  .service:last-child:nth-child(odd) .service-photo { aspect-ratio: 3 / 2; }
  .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .cta .actions { flex-direction: column; }
  .contact-card { padding: 18px; gap: 16px; }
  .contact-icon { width: 48px; height: 48px; }
  .contact-icon svg { width: 24px; height: 24px; }
  .lightbox .lb-prev,
  .lightbox .lb-next { top: auto; bottom: 14px; transform: none; }
  .lightbox { padding-bottom: 76px; }
  .lightbox img,
  .lightbox video { max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); }
}

@media (max-width: 480px) {
  .nav { gap: 16px; }
  .nav a:not(.btn) { font-size: 15px; }
  .brand img { height: 46px; }
  .nav .nav-home { display: none; } /* the logo already links home */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 350px) {
  .brand img { height: 36px; transform: translateY(4px); }
  .nav { gap: 12px; }
  .nav a:not(.btn) { font-size: 14px; letter-spacing: 0.06em; }
}
