/* Niel van Zyl (Pty) Ltd
   Palette is taken from the pits in the drone footage:
   coal seam, sandstone overburden, red clay, and the gold of the NVZ bull. */
:root {
  --coal: #17191c;
  --seam: #24272b;
  --sand: #efe8da;
  --stone: #dccfb6;
  --clay: #9c4428;
  --gold: #f2a81d;
  --ink: #1d1f22;
  --mute: #5b5a55;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 17px/1.6 var(--body); }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: 0.92; letter-spacing: 0.005em; }
h2 { font-size: clamp(2.6rem, 6vw, 4.75rem); max-width: 16ch; }
h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.25rem); line-height: 1; text-transform: uppercase; letter-spacing: 0.01em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section-lede { max-width: 58ch; margin-top: 18px; font-size: 1.12rem; color: var(--mute); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--coal); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-block; padding: 15px 26px; font: 600 1rem/1.2 var(--body); text-decoration: none; border: 2px solid transparent; border-radius: 2px; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-gold { background: var(--gold); color: var(--coal); }
.btn-gold:hover { background: #ffbd3d; }
.btn-line { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-line:hover { background: #fff; color: var(--coal); border-color: #fff; }

/* Header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px var(--pad); color: #fff; transition: background-color .2s, box-shadow .2s; }
.top.is-solid, .top.is-open { background: var(--coal); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 61px; height: 56px; }
.brand span { font: 800 1.45rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.brand small { display: block; margin-top: 4px; font: 500 0.78rem/1 var(--body); text-transform: none; letter-spacing: 0; color: var(--stone); }
#nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
#nav a { text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
#nav a:hover { border-bottom-color: var(--gold); }
#nav .nav-cta { background: var(--gold); color: var(--coal); padding: 10px 18px; border: 0; border-radius: 2px; font-weight: 600; }
#nav .nav-cta:hover { background: #ffbd3d; }
.menu-btn { display: none; background: none; border: 2px solid rgba(255,255,255,.7); color: #fff; font: 600 0.95rem var(--body); padding: 9px 16px; border-radius: 2px; cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; background: var(--coal); color: #fff; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,25,28,.62) 0%, rgba(23,25,28,.12) 30%, rgba(23,25,28,.28) 55%, rgba(23,25,28,.9) 100%); }
.hero-body { position: relative; padding-top: 150px; padding-bottom: clamp(56px, 9vh, 104px); }
.hero h1 { font-size: clamp(4rem, 14.5vw, 13.5rem); line-height: 0.82; max-width: 9ch; text-wrap: balance; }
.hero-lede { max-width: 46ch; margin-top: 28px; font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-pause { position: absolute; right: var(--pad); bottom: 22px; background: rgba(23,25,28,.6); color: #fff; border: 1px solid rgba(255,255,255,.4); padding: 7px 12px; font: 500 0.82rem var(--body); border-radius: 2px; cursor: pointer; }
.hero-pause:hover { background: var(--coal); }

/* Sectors band */
.sectors { background: var(--gold); color: var(--coal); }
.sectors-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 36px; padding-block: 22px; }
.sectors-row > p:first-child { font-weight: 600; }
.sectors ul { display: flex; flex-wrap: wrap; gap: 4px 30px; font: 900 clamp(1.6rem, 3vw, 2.3rem)/1 var(--display); text-transform: uppercase; }
.sectors-note { margin-left: auto; font-size: 0.98rem; }

/* Services */
.services { padding-block: clamp(72px, 10vw, 136px) clamp(40px, 6vw, 80px); }
.service { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(56px, 8vw, 104px); }
.service-flip .service-photo { order: 2; }
.service-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-text p { margin-top: 16px; max-width: 52ch; }
.service-text ul { margin-top: 22px; border-top: 2px solid var(--ink); }
.service-text li { padding: 11px 0; border-bottom: 1px solid var(--stone); font-weight: 500; }

/* Method */
.method { background: var(--coal); color: var(--sand); padding-block: clamp(72px, 10vw, 136px); }
.method-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.method-head { position: sticky; top: 104px; }
.method-head > p { margin-top: 18px; max-width: 46ch; color: #c9c2b4; font-size: 1.08rem; }
.pattern { margin-top: 40px; }
.pattern svg { width: 100%; height: auto; background: var(--seam); }
.pattern figcaption { margin-top: 12px; font-size: 0.92rem; color: #a9a294; }
.pattern-replay { margin-top: 12px; background: none; border: 0; padding: 0; color: var(--gold); font: 600 0.95rem var(--body); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.hole { fill: #6b665c; }
.hole.fired { fill: var(--gold); }
.ring { fill: none; stroke: var(--gold); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ring.go { animation: ring .9s ease-out forwards; }
@keyframes ring { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(3.4); } }

.steps { counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 76px 1fr; column-gap: 20px; padding: 28px 0; border-top: 1px solid #3b3f44; }
.steps li:last-child { border-bottom: 1px solid #3b3f44; }
.steps li::before { content: counter(step); grid-row: span 2; font: 900 4.4rem/0.85 var(--display); color: var(--gold); }
.steps p { margin-top: 10px; color: #c9c2b4; max-width: 48ch; }

/* Footage */
.footage { padding-block: clamp(72px, 10vw, 136px) clamp(40px, 6vw, 72px); }
.footage-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(18px, 2.5vw, 32px); margin-top: 44px; align-items: start; }
.footage video { width: 100%; aspect-ratio: 16 / 9; background: var(--coal); object-fit: cover; }
.footage figcaption, .mosaic figcaption { margin-top: 10px; font-size: 0.95rem; font-weight: 500; }

/* On site */
.onsite { padding-block: clamp(40px, 6vw, 72px) clamp(72px, 10vw, 136px); }
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(22px, 2.6vw, 36px) clamp(14px, 2vw, 28px); margin-top: 44px; }
.mosaic figure { grid-column: span 2; }
.mosaic .m-wide { grid-column: span 4; }
.mosaic .m-half { grid-column: span 3; }
.mosaic img { width: 100%; height: clamp(220px, 30vw, 430px); object-fit: cover; }

/* About */
.about { background: var(--clay); color: #fff; padding-block: clamp(72px, 10vw, 128px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about h2 { font-size: clamp(2.3rem, 4.8vw, 4rem); max-width: 14ch; }
.about-text p + p { margin-top: 18px; }
.about-text p { max-width: 56ch; font-size: 1.08rem; }

/* Contact */
.contact { background: var(--coal); color: var(--sand); padding-block: clamp(72px, 10vw, 128px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact-people > p { margin-top: 18px; color: #c9c2b4; }
.people { margin-top: 28px; border-top: 2px solid var(--gold); }
.people li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid #3b3f44; }
.people span { font-weight: 500; }
.people a { font: 800 clamp(1.9rem, 3.4vw, 2.7rem)/1 var(--display); letter-spacing: 0.02em; text-decoration: none; color: #fff; }
.people a:hover, .office a:hover, .careers a:hover, .foot a:hover { color: var(--gold); }
.office { margin-top: 30px; display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; }
.office dt { color: #a9a294; }
.careers { margin-top: 30px; padding-top: 22px; border-top: 1px solid #3b3f44; max-width: 48ch; }

.quote { background: var(--sand); color: var(--ink); padding: clamp(24px, 3.5vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.quote > * { grid-column: 1 / -1; }
.quote .half { grid-column: span 1; }
.form-note { color: var(--mute); margin-top: -6px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 13px; font: 400 1rem/1.4 var(--body); color: var(--ink); background: #fff; border: 1px solid #a69c86; border-radius: 2px; }
.field textarea { resize: vertical; }
.field ::placeholder { color: #8a8576; }
.form-error { color: #8f1d12; font-weight: 600; }
.quote .btn { justify-self: start; }
.form-small { font-size: 0.88rem; color: var(--mute); }

/* Footer */
.foot { background: #0f1113; color: #c9c2b4; padding-block: 36px; font-size: 0.95rem; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.foot img { width: 87px; height: 80px; }
.foot-right { margin-left: auto; text-align: right; }

/* Smaller screens */
@media (max-width: 960px) {
  .menu-btn { display: block; }
  #nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--coal); padding: 6px var(--pad) 22px; }
  .top.is-open #nav { display: flex; }
  #nav a { padding: 14px 0; border-bottom: 1px solid #3b3f44; font-size: 1.05rem; }
  #nav .nav-cta { margin-top: 16px; text-align: center; padding: 14px; }
  .service, .method-grid, .about-grid, .contact-grid, .footage-grid { grid-template-columns: minmax(0, 1fr); }
  .service-flip .service-photo { order: 0; }
  .method-head { position: static; }
  .sectors-note { margin-left: 0; flex-basis: 100%; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic figure, .mosaic .m-half { grid-column: span 1; }
  .mosaic .m-wide { grid-column: span 2; }
  .foot-right { margin-left: 0; text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand img { width: 48px; height: 44px; }
  .brand span { font-size: 1.2rem; }
  .hero-body { padding-bottom: 76px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .steps li { grid-template-columns: 52px 1fr; }
  .steps li::before { font-size: 3.2rem; }
  .quote .half { grid-column: 1 / -1; }
  .mosaic { grid-template-columns: minmax(0, 1fr); }
  .mosaic figure, .mosaic .m-wide, .mosaic .m-half { grid-column: span 1; }
  .mosaic img { height: auto; aspect-ratio: 4 / 3; }
  .people li { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring.go { animation: none; }
  * { transition: none !important; }
}

.field .opt { font-weight: 400; color: var(--mute); }
.form-small a { color: inherit; text-decoration: underline; }
.form-done { background: var(--sand); color: var(--ink); padding: clamp(24px, 3.5vw, 44px); }
.form-done:focus { outline: none; }
.form-done p { max-width: 44ch; margin-top: 10px; }