:root {
  --ink: #17201d;
  --muted: #5c6761;
  --line: #d8dfdb;
  --paper: #f6f7f3;
  --white: #ffffff;
  --forest: #1f4f43;
  --copper: #b86434;
  --teal: #247c82;
  --stone: #e8e2d6;
  --shadow: 0 20px 60px rgba(20, 32, 29, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  background: rgba(246, 247, 243, 0.94);
  border-bottom: 1px solid rgba(23, 32, 29, 0.12);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto auto;
  left: 0;
  padding: 14px clamp(20px, 5vw, 72px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 250px;
}

.brand-logo {
  display: block;
  height: 48px;
  object-fit: contain;
  object-position: left center;
  width: 74px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 22px;
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--forest);
}

.header-cta,
.button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
}

.header-ctas {
  display: flex;
  gap: 8px;
}

.header-cta {
  background: var(--ink);
  color: var(--white);
  font-size: 0.88rem;
}

.header-cta.copper {
  background: var(--copper);
}

.header-cta.teal {
  background: var(--teal);
}

.hero {
  min-height: calc(84vh - 70px); /* was 100vh — shorter so more of the page shows on first load (Hamish, Jul 2026) */
  overflow: hidden;
  position: relative;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(10, 22, 19, 0.72), rgba(10, 22, 19, 0.2)),
    url("https://images.unsplash.com/photo-1483638867541-6d87ce7f2d4d?auto=format&fit=crop&w=2200&q=85") center / cover;
  inset: 0;
  position: absolute;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(0deg, rgba(10, 22, 19, 0.42), transparent 42%),
    linear-gradient(90deg, rgba(31, 79, 67, 0.58), transparent 64%);
  inset: 0;
  position: absolute;
}

.hero-content {
  color: var(--white);
  max-width: 860px;
  /* Top padding trimmed (was clamp(88px, 13vw, 160px)) so the headline sits
     higher instead of leaving a tall empty gap under the nav (Hamish, Jul 2026) */
  padding: clamp(40px, 6vw, 84px) clamp(20px, 5vw, 72px) 92px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--copper);
  font-size: 1.56rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1b47c;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 24px;
  max-width: 820px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  max-width: 690px;
}

.service-area {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.service-area span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 10px 12px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button.primary {
  background: var(--copper);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.52);
  color: var(--white);
}

.section {
  padding: clamp(72px, 9vw, 124px) clamp(20px, 5vw, 72px);
}

.intro {
  align-items: start;
  background: var(--white);
  display: grid;
  gap: clamp(28px, 6vw, 84px);
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.8fr);
}

.intro p:last-child {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 24px 0 0;
}

.section-heading {
  margin-bottom: 34px;
  max-width: 780px;
}

.service-grid {
  display: flex;
  gap: 22px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(23, 32, 29, 0.08);
  display: grid;
  flex: 1 1 0;
  grid-template-rows: 220px 1fr;
  min-width: 300px;
  position: relative;
  transition: flex-grow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.service-card-media {
  height: 220px;
  overflow: hidden;
  position: relative;
  transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
}

.service-card-media img {
  height: 100%;
  left: 0;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:has(.service-card-media:hover) {
    flex-grow: 1.6;
    z-index: 10;
  }

  .service-card-media:hover {
    box-shadow: 0 26px 50px rgba(15, 30, 26, 0.38);
    height: 480px;
    margin-top: -130px;
  }

  /* The two un-hovered cards get narrower while one is expanded, which
     can wrap their text onto an extra line. Pre-reserve enough room in
     every card's text block the moment any card in the row is hovered,
     so that wrap never grows the row (and pushes the page) mid-hover. */
  .service-grid:has(.service-card-media:hover) .service-card-body {
    min-height: 320px;
  }
}

.service-card-body {
  padding: 26px;
  /* Reserves enough room for the longest wrapped state so that a
     neighbouring card shrinking on hover never adds a line and pushes
     the row (and the rest of the page) taller. */
  min-height: 250px;
  transition: min-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-number {
  color: var(--teal);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.service-card p,
.service-card li,
.mining-copy p,
.use-cases p,
.proof p,
.contact p,
.site-footer p {
  color: var(--muted);
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.mining {
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(23, 32, 29, 0.92), rgba(23, 32, 29, 0.72)),
    url("https://images.unsplash.com/photo-1628487749130-2d41acb1802a?auto=format&fit=crop&w=1800&q=80") center / cover;
  color: var(--white);
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
}

.mining-copy p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.mining-panel {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
}

.metric {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding: 28px;
}

.metric:last-child {
  border-bottom: 0;
}

.metric strong {
  display: block;
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.metric span {
  color: rgba(255, 255, 255, 0.72);
}

.use-cases {
  background: var(--stone);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
}

.use-cases article {
  background: rgba(255, 255, 255, 0.58);
  min-height: 290px;
  padding: clamp(28px, 4vw, 46px);
}

.deliverables {
  background: var(--white);
}

.deliverables-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.deliverables-list button {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 14px 18px;
}

.deliverables-list button:hover,
.deliverables-list button:focus-visible {
  background: #edf7f5;
  border-color: var(--teal);
  outline: none;
}

/* Outputs preview click-throughs are on hold until video content exists.
   To restore: remove the "previews-off" class from .deliverables-list in
   index.html (main.js re-attaches the click handlers automatically). */
.deliverables-list.previews-off button {
  cursor: default;
}

.deliverables-list.previews-off button:hover,
.deliverables-list.previews-off button:focus-visible {
  background: var(--paper);
  border-color: var(--line);
}

.preview-modal {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 80;
}

.preview-modal.is-open {
  display: block;
}

.preview-backdrop {
  background: rgba(10, 22, 19, 0.72);
  inset: 0;
  position: absolute;
}

.preview-dialog {
  background: var(--white);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  left: 50%;
  max-height: calc(100vh - 48px);
  max-width: 1080px;
  overflow: auto;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100vw - 48px);
}

.preview-close {
  background: var(--ink);
  border: 0;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  min-height: 42px;
  padding: 0 14px;
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
}

.preview-media {
  align-items: center;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #10231f, #247c82);
  background-size: 36px 36px, 36px 36px, cover;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 360px;
  padding: 24px;
}

.preview-media span {
  border: 1px solid rgba(255, 255, 255, 0.34);
  padding: 14px 18px;
}

.preview-copy {
  padding: clamp(28px, 4vw, 48px);
}

.preview-copy h2 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.preview-copy p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.presence {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: grid;
  gap: clamp(28px, 6vw, 84px);
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.95fr);
}

.presence h2 {
  max-width: 680px;
}

.presence-panel {
  border-left: 4px solid #2e7fbf;
  padding-left: clamp(20px, 4vw, 34px);
}

.presence-panel p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  margin-bottom: 24px;
}

.button.linkedin {
  background: #0a66c2;
  color: var(--white);
}

.portal {
  align-items: center;
  background: var(--white);
  display: grid;
  gap: clamp(32px, 7vw, 92px);
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 0.82fr);
}

.portal-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 660px;
}

.portal-preview {
  background: #10231f;
  box-shadow: var(--shadow);
  color: var(--white);
  overflow: hidden;
}

.portal-toolbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
}

.portal-toolbar span {
  background: rgba(255, 255, 255, 0.42);
  display: block;
  height: 8px;
  width: 8px;
}

.map-grid {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, rgba(36, 124, 130, 0.65), rgba(184, 100, 52, 0.42));
  background-size: 42px 42px, 42px 42px, cover;
  height: 300px;
  position: relative;
}

.map-line,
.map-point,
.map-area {
  position: absolute;
}

.map-line {
  background: rgba(255, 255, 255, 0.74);
  height: 3px;
  transform-origin: left center;
}

.line-one {
  left: 12%;
  top: 36%;
  transform: rotate(18deg);
  width: 68%;
}

.line-two {
  left: 8%;
  top: 66%;
  transform: rotate(-10deg);
  width: 76%;
}

.line-three {
  left: 42%;
  top: 16%;
  transform: rotate(82deg);
  width: 42%;
}

.map-point {
  background: #f1b47c;
  border: 3px solid var(--white);
  height: 18px;
  width: 18px;
}

.point-one {
  left: 32%;
  top: 43%;
}

.point-two {
  left: 68%;
  top: 58%;
}

.map-area {
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.8);
  height: 92px;
  left: 52%;
  top: 28%;
  transform: rotate(-13deg);
  width: 120px;
}

.portal-label {
  background: var(--white);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 16px 18px;
}

.proof {
  align-items: start;
  display: grid;
  gap: clamp(28px, 6vw, 84px);
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.9fr);
}

.proof-grid {
  display: grid;
  gap: 20px;
  margin-top: 54px;
}

.proof-grid p {
  border-left: 4px solid var(--teal);
  font-size: 1.2rem;
  margin: 0;
  padding-left: 20px;
}

.contact {
  background: var(--forest);
  color: var(--white);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.7fr);
  padding: clamp(56px, 8vw, 92px) clamp(20px, 5vw, 72px);
}

.contact h2 {
  max-width: 780px;
}

.contact p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 680px;
}

.contact .button.secondary {
  background: transparent;
}

.contact-actions {
  align-content: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.contact-tile {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-end;
  min-height: 170px;
  min-width: 0;
  padding: 22px;
}

.contact-tile.primary {
  background: var(--copper);
  border-color: var(--copper);
}

.contact-tile.map {
  background: var(--teal);
  border-color: var(--teal);
}

.contact-tile span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-tile strong {
  font-size: clamp(0.95rem, 1.1vw, 1.12rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.contact-tile:not(.primary):not(.map) {
  grid-column: 1 / -1;
  min-height: 96px;
}

.site-footer {
  background: var(--ink);
  color: var(--white);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 1fr);
  padding: 28px clamp(20px, 5vw, 72px);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  font-s