:root {
  color-scheme: light;
  --ink: #101725;
  --night: #151e2d;
  --paper: #faf8f2;
  --gold: #fbc349;
  --muted: #4f5865;
  --line: #dcd9d0;
  --measure: 73rem;
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, figure, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #1e78c4; outline-offset: 5px; }
section { scroll-margin-top: 1.5rem; }
.wrap { width: min(var(--measure), calc(100% - 5rem)); margin-inline: auto; }

.skip {
  position: absolute;
  inset: .75rem auto auto 1rem;
  z-index: 2;
  padding: .7rem 1rem;
  background: #fff;
  color: var(--ink);
  translate: 0 -200%;
}
.skip:focus { translate: 0; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 5.25rem;
  gap: 1.5rem;
}
.brand { display: flex; gap: .75rem; align-items: center; text-decoration: none; }
.brand img { width: 3.25rem; height: 2.55rem; border-radius: .22rem; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.45rem; line-height: 1; letter-spacing: -.06em; font-weight: 800; }
.brand small { margin-top: .24rem; font-size: .73rem; color: var(--muted); font-weight: 650; }
nav { display: flex; align-items: center; gap: clamp(.9rem, 2.15vw, 2.1rem); }
nav a { font-size: .9rem; font-weight: 700; white-space: nowrap; text-decoration: none; }
nav a:hover, .hero-link:hover, .text-link:hover, .footer-inner a:hover { text-decoration: underline; text-underline-offset: .26em; }
.nav-contact { border: 1px solid #a7a9a8; padding: .65rem 1rem; border-radius: .2rem; }

.hero { background: var(--ink); color: var(--paper); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.7rem, 6vw, 6rem);
}
.hero-copy { min-width: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 {
  font-size: clamp(3.15rem, 5.65vw, 6.1rem);
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: .97;
}
h1 em { color: var(--gold); font-style: normal; display: inline-block; margin-top: .11em; }
.hero-copy > p {
  font-size: clamp(1.04rem, 1.35vw, 1.24rem);
  color: #d5dae2;
  line-height: 1.55;
  max-width: 32ch;
  margin-top: 1.55rem;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem 1.5rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .95rem;
  min-height: 3rem;
  padding: .72rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .22rem;
  text-decoration: none;
  font-size: .93rem;
  line-height: 1.3;
  font-weight: 780;
}
.button-gold { background: var(--gold); color: var(--ink); }
.button-gold:hover { background: #ffd773; }
.hero-link { text-decoration: none; color: #eef0f4; font-weight: 650; font-size: .9rem; }
.hero-link span { padding-left: .4em; color: var(--gold); }
.hero-media { position: relative; isolation: isolate; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: -.55rem -.55rem .55rem .55rem;
  border: 1px solid #b48a3a;
  border-radius: .3rem;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.13;
  object-fit: cover;
  object-position: 55% center;
  border-radius: .3rem;
  background: #303e3d;
}
.hero-media figcaption {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  padding: .3rem .55rem;
  border-radius: .15rem;
  background: #101725e8;
  color: #f7f4ec;
  font-size: .68rem;
}

.section { padding-block: clamp(3rem, 7vw, 6.25rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.1rem 2rem; }
h2 { font-size: clamp(2.1rem, 4vw, 3.8rem); letter-spacing: -.065em; font-weight: 800; line-height: 1.02; }
.section-heading > p, .team-intro p, .contact p, .training p {
  max-width: 39ch;
  line-height: 1.58;
  font-size: 1.05rem;
}
.section-heading > p, .team-intro p { color: var(--muted); }
.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  margin-top: 2.15rem;
}
.service {
  padding: 1.75rem clamp(1.2rem, 2.8vw, 2.65rem) 1.85rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.service:first-child { padding-left: 0; }
.service:last-child { padding-right: 0; }
.service + .service { border-left: 1px solid var(--line); }
.service h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -.045em; }
.service p { margin-top: .65rem; color: var(--muted); line-height: 1.62; }
.text-link { display: inline-block; margin-top: 1.4rem; font-weight: 750; font-size: .89rem; text-decoration: none; }
.text-link span { padding-left: .25rem; }

.training { background: #eae7dc; }
.training-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.8rem, 6vw, 5rem);
}
.training p { margin-top: .9rem; color: #424955; }
.button-outline { color: var(--ink); border-color: #78808c; margin-top: 1.4rem; }
.button-outline:hover { background: var(--paper); border-color: var(--ink); }
.topics { list-style: none; padding: 0; margin: 0; border-top: 1px solid #b9b6ad; }
.topics li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem 0;
  border-bottom: 1px solid #b9b6ad;
  font-weight: 680;
  line-height: 1.4;
}
.topics li::before { content: ""; flex: none; width: .46rem; height: .46rem; background: #9d5a01; rotate: 45deg; }

.team-intro { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.team-intro p { margin-top: .9rem; }
.team-intro > img {
  flex: none;
  width: clamp(6.5rem, 16vw, 10rem);
  height: auto;
  border-radius: .25rem;
}
.team-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  padding: 0;
  margin: 1.9rem 0 0;
}
.team-list li { background: #fffdfa; padding: 1.2rem 1.1rem; border: 1px solid var(--line); border-top: 3px solid #d79520; }
.team-list strong, .team-list span { display: block; }
.team-list strong { font-size: 1.06rem; line-height: 1.3; }
.team-list span { margin-top: .27rem; color: var(--muted); font-size: .86rem; line-height: 1.45; }

.gallery { background: #efede4; }
.gallery .section-heading a { font-weight: 700; text-underline-offset: .2em; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
  margin-top: 1.65rem;
}
.gallery-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d3cfc4;
  border-radius: .25rem;
  background: #fffdfa;
  text-decoration: none;
}
.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.5;
  object-fit: cover;
  object-position: center top;
  background: #dedbd1;
}
.gallery-item.workwear img { object-fit: contain; object-position: center; }
.gallery-item > span {
  display: grid;
  align-content: start;
  flex: 1;
  position: relative;
  gap: .24rem;
  min-height: 3.35rem;
  padding: .8rem 2.25rem .8rem .9rem;
  font-weight: 730;
  line-height: 1.35;
}
.gallery-item > span::after { content: "↗"; position: absolute; top: .8rem; right: .9rem; }
.gallery-item:hover > span { background: #f8ead0; }
.gallery-item small { color: var(--muted); font-size: .77rem; font-weight: 600; }
.gallery-shared { margin-top: clamp(2.2rem, 4vw, 3.5rem); }
.gallery-shared h3 { font-size: clamp(1.4rem, 2.5vw, 2.1rem); letter-spacing: -.04em; }
.gallery-shared .gallery-grid { margin-top: 1rem; }

.contact { background: var(--gold); }
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.65rem clamp(2rem, 6vw, 5.5rem);
  padding-block: clamp(2.4rem, 5.5vw, 4.5rem);
}
.contact p { margin-top: .65rem; }
.contact-copy .button { margin-top: 1.3rem; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #303b4e; }
.contact a:focus-visible { outline-color: var(--ink); }
.contact-details { margin: 0; border-top: 1px solid #926a28; }
.contact-details > div {
  display: grid;
  grid-template-columns: minmax(5.5rem, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: .75rem;
  padding-block: .68rem;
  border-bottom: 1px solid #926a28;
  line-height: 1.4;
}
.contact-details dt { font-size: .83rem; font-weight: 800; }
.contact-details dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.contact-details a { text-underline-offset: .2em; }
.contact-details address { font-style: normal; }
.site-footer { background: var(--ink); color: #e5e8ee; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; font-size: .82rem; }
.footer-inner a { text-decoration: none; white-space: nowrap; }

@media (max-width: 840px) {
  .wrap { width: min(var(--measure), calc(100% - 3rem)); }
  .hero-inner { gap: 2rem; }
  h1 { font-size: clamp(2.9rem, 7.3vw, 4.1rem); }
  .hero-media img { aspect-ratio: .88; }
  .section-heading { align-items: start; flex-direction: column; }
  .team-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: .7rem; padding-block: .75rem; }
  nav { width: 100%; justify-content: space-between; gap: .55rem; }
  nav a { font-size: .82rem; }
  .nav-contact { padding: .45rem .6rem; }
  .hero-inner, .training-inner { grid-template-columns: 1fr; }
  .hero-inner { gap: 1.8rem; }
  h1 { font-size: clamp(2.9rem, 10.2vw, 4.15rem); }
  .hero-media { margin-right: .52rem; }
  .hero-media img { aspect-ratio: 1.37; }
  .service-list { grid-template-columns: 1fr; }
  .service, .service:first-child, .service:last-child { padding-inline: 0; }
  .service + .service { border-left: 0; border-top: 1px solid var(--line); }
  .team-intro > img { width: clamp(4rem, 20vw, 7.5rem); }
  .team-list { gap: .62rem; }
  .team-list li { padding: .85rem .8rem; }
  .contact-inner { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 430px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.service-catalog {
  gap: 1px;
  background: var(--line);
}

.service-catalog .service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 0;
  padding: clamp(1.1rem, 2.6vw, 2.25rem);
  background: var(--paper);
}

.service-catalog .text-link {
  margin-top: auto;
  padding-top: 1.15rem;
}

.service-details {
  width: 100%;
  margin-top: .95rem;
}

.service-details summary, .course-group summary {
  cursor: pointer;
  line-height: 1.4;
  font-weight: 760;
}

.service-details summary {
  width: fit-content;
  padding-block: .25rem;
  font-size: .88rem;
}

.service-details summary:hover, .course-group summary:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.service-details summary:focus-visible, .course-group summary:focus-visible {
  outline: 3px solid #1e78c4;
  outline-offset: 3px;
}

.service-details ul {
  margin: .6rem 0 .2rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}

.service-details li + li { margin-top: .33rem; }

.training-catalog {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.training-catalog .section-heading p { max-width: 56ch; }
.training-catalog .section-heading .button { flex: none; }

.course-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: .85rem;
}

.course-group {
  min-width: 0;
  padding-inline: 1.05rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: .25rem;
}

.course-group summary { padding-block: .9rem; }
.course-group .topics { border-top-color: var(--line); }

.course-group .topics li {
  align-items: baseline;
  padding-block: .45rem;
  font-size: .89rem;
  font-weight: 600;
  border-color: var(--line);
}

.course-group .topics li:last-child { border: 0; }
.course-group[open] { padding-bottom: .35rem; }
.training p.training-note { margin: 0; max-width: 74ch; font-size: .92rem; }

.company-profile { color: var(--ink); }

.company-profile p {
  font-size: 1rem;
  line-height: 1.64;
  color: var(--muted);
}

.company-profile .company-overview { margin-top: 1.65rem; max-width: 80ch; }

.company-purpose, .company-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem 1.1rem;
  margin-top: 1.25rem;
}

.company-purpose > article, .company-records > div {
  padding: clamp(1.15rem, 2.5vw, 1.65rem);
  background: #fffdfa;
  border: 1px solid var(--line);
  border-top: 3px solid #d79520;
  border-radius: .25rem;
}

.company-profile h3 {
  font-size: clamp(1.25rem, 2.1vw, 1.55rem);
  letter-spacing: -.036em;
}

.company-profile h3 + p { margin-top: .44rem; }
.company-profile-grid > article { border-top: 1px solid var(--line); padding: .95rem 0; }

.company-steps {
  display: flex;
  flex-wrap: wrap;
  gap: .32rem .75rem;
  padding-left: 0;
  margin: .6rem 0;
  list-style: none;
  font-weight: 730;
  font-size: .88rem;
}

.company-values, .company-credentials { margin: .75rem 0 0; }

.company-values > div, .company-credentials > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: .5rem .75rem;
  border-top: 1px solid var(--line);
  padding-block: .52rem;
  font-size: .9rem;
  line-height: 1.4;
}

.company-values dt, .company-credentials dt { font-weight: 750; }
.company-values dd, .company-credentials dd { margin: 0; overflow-wrap: anywhere; }
.company-values dd { color: var(--muted); }
.company-credentials dd { font-variant-numeric: tabular-nums; }

@media (max-width: 840px) {
  .service-catalog, .course-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .training-catalog .section-heading .button { margin-top: 0; }
}

@media (max-width: 620px) {
  .service-catalog, .company-purpose, .company-profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .course-groups { grid-template-columns: minmax(0, 1fr); }
  .company-values > div, .company-credentials > div { grid-template-columns: minmax(0, 1fr); gap: .16rem; }
}
nav { flex-wrap: wrap; justify-content: flex-end; }
.header-inner { min-width: 0; }
.brand { flex-shrink: 0; }
:is(summary, button, video):focus-visible { outline: 3px solid #1e78c4; outline-offset: 4px; }
.nav-contact:hover { background: #fffdfa; }

.portraits {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
}
.portrait { min-width: 0; }
.portrait a { display: block; }
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: .25rem;
  background: #dcd9d0;
}
.portrait:first-child img { aspect-ratio: 1; object-position: center 52%; }
.portrait:nth-child(2) img { object-position: center 28%; }
.portrait figcaption { margin-top: .5rem; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.team-section .team-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sandile {
  display: grid;
  grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.2rem);
  margin-top: 2.1rem;
  padding-block: 1.1rem;
  border-block: 1px solid var(--line);
}
.sandile img { width: 100%; height: auto; border-radius: .25rem; }
.sandile h3 { font-size: 1.45rem; letter-spacing: -.04em; }
.sandile p { margin-top: .4rem; max-width: 62ch; color: var(--muted); line-height: 1.55; }

.project {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: center;
  margin-top: 2rem;
}
.project figure { width: 100%; max-width: 28rem; justify-self: end; }
.project img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.project h3 { font-size: clamp(1.45rem, 3vw, 2.5rem); letter-spacing: -.045em; }
.project p { margin-top: .65rem; color: var(--muted); line-height: 1.6; }
.project ol { margin: .9rem 0 0; padding-left: 1.35rem; line-height: 1.55; }
.project li + li { margin-top: .33rem; }

.media-list { margin-top: 2rem; border-top: 1px solid #aca99e; }
.media-group { border-bottom: 1px solid #aca99e; }
.media-group summary { cursor: pointer; padding: .9rem .2rem; }
.media-group summary::marker { color: #865600; }
.media-group summary:hover { background: #f9f1df; }
.media-group summary strong { margin-right: .45rem; font-size: 1.03rem; }
.media-group summary span { color: var(--muted); font-size: .86rem; }
.media-group .gallery-grid { margin: .2rem 0 1.35rem; }
.media-group .gallery-item img { object-fit: contain; object-position: center; }
.media-group:not(.workwear-group) .gallery-item img { aspect-ratio: 4 / 5; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
  margin: .2rem 0 1.35rem;
}
.video-card { min-width: 0; overflow: hidden; border: 1px solid #d3cfc4; border-radius: .25rem; background: #fffdfa; }
.video-card video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: var(--ink); }
.video-card figcaption { display: flex; align-items: flex-start; justify-content: space-between; gap: .55rem; padding: .65rem .8rem .75rem; line-height: 1.35; }
.video-card figcaption span { font-size: .86rem; color: var(--muted); white-space: nowrap; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; }
.contact-actions .text-link { margin-top: 1.3rem; }

@media (max-width: 840px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  nav { justify-content: flex-start; gap: .45rem .9rem; }
  .portraits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .portrait:first-child img { aspect-ratio: 4 / 5; }
  .project { grid-template-columns: 1fr; }
  .project figure { max-width: 24rem; justify-self: start; }
}

@media (max-width: 430px) {
  .video-grid { grid-template-columns: 1fr; }
  .team-section .team-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sandile { grid-template-columns: minmax(7rem, .85fr) minmax(0, 1.15fr); }
}
