/* Shared components and the modular sections (templates/modular/*). Mobile first. */

:root {
  --text-card: #33332F;
  --card-dark: #151518;
  --hatch: repeating-linear-gradient(135deg, #17171B 0, #17171B 12px, #111114 12px, #111114 24px);
  --stack: 28px;          /* gap between section heading and content */
}

@media (min-width: 48rem) {
  :root {
    --stack: 48px;
  }
}

/* ---------- Shared components ---------- */

.heading .h2 {
  margin-top: 12px;
}

.heading .label + .h2 {
  margin-top: 12px;
}

@media (min-width: 48rem) {
  .heading .label + .h2 {
    margin-top: 16px;
  }
}

.card {
  background: var(--card);
  border: var(--border) solid var(--black);
  color: var(--black);
}

.frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-dark-2);
}

.frame img,
.frame video,
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.button-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.button-row .btn {
  width: 100%;
}

@media (min-width: 40rem) {
  .button-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    width: auto;
  }

  .button-row .btn {
    width: auto;
  }
}

.btn--outline:hover,
.btn--accent:hover {
  background: var(--text-light);
  border-color: var(--text-light);
  color: var(--black);
}

.btn--dark:hover {
  background: var(--card);
  color: var(--black);
}

.bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: var(--fs-small);
  line-height: 1.5;
}

.bullets li {
  display: flex;
  gap: 12px;
}

.bullets li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  background: var(--accent);
  border: 1px solid var(--black);
}

.link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  border: var(--border) solid var(--black);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 700;
}

.link-box:hover {
  background: var(--black);
  color: var(--text-light);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1.5px solid currentColor;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.3;
}

.tag--solid {
  padding: 6px 10px;
  background: var(--black);
  border-color: var(--black);
  color: var(--text-light);
  font-size: 0.8125rem;
}

.media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  background-image: var(--hatch);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  transform: translate(-50%, -50%);
  background: var(--accent);
  border: 0;
  color: var(--black);
  cursor: pointer;
}

.play svg {
  width: 40%;
  height: 40%;
}

.play:hover {
  background: var(--text-light);
}

.play:focus-visible {
  outline-color: var(--text-light);
}

.play.is-pending {
  cursor: default;
  opacity: 0.85;
}

/* ---------- hero ---------- */

.m-hero {
  padding-block: 36px 40px;
}

.m-hero__grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.m-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.m-hero__copy .lead {
  max-width: 500px;
}

.m-hero__copy .button-row {
  margin-top: 0;
}

.m-hero__crumbs {
  letter-spacing: 0.06em;
  color: var(--muted);
}

.m-hero__crumbs a {
  display: inline-block;
  padding: 8px 0;
  color: var(--muted-dark);
}

.m-hero__crumbs a:hover {
  color: var(--text-light);
  text-decoration: underline;
}

.m-hero__crumbs [aria-current] {
  color: var(--accent);
}

.h1--sub {
  font-size: clamp(2.375rem, 1.77rem + 2.476vw, 4rem);   /* 38 → 64 */
}

.m-hero__kicker-short {
  display: none;
}

@media (max-width: 39.99rem) {
  .m-hero__kicker-short {
    display: inline;
  }

  .m-hero__kicker-short + .m-hero__kicker-long {
    display: none;
  }
}

.m-hero__media {
  height: 260px;
}

.m-hero__grid--sub .m-hero__media {
  height: 240px;
}

@media (min-width: 64rem) {
  .m-hero {
    padding-block: 56px 48px;
  }

  .m-hero__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
  }

  .m-hero__grid--sub {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .m-hero__copy {
    gap: 28px;
  }

  .m-hero__copy .button-row {
    margin-top: 12px;
  }

  .m-hero__media {
    height: 480px;
  }

  .m-hero__grid--sub .m-hero__media {
    height: 520px;
  }
}

/* ---------- services ---------- */

.m-services__grid {
  margin-top: var(--stack);
  display: grid;
  gap: 20px;
}

.m-services__card {
  display: flex;
  flex-direction: column;
}

.m-services__media {
  height: 168px;
  overflow: hidden;
  border-bottom: var(--border) solid var(--black);
}

.m-services__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 14px;
  padding: 22px 20px 20px;
}

.m-services__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-light);
}

.m-services__title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.75rem, 2.37rem + 1.52vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.m-services__claim {
  font-size: 1.0625rem;
  line-height: 1.4;
  font-weight: 600;
}

.m-services__body .link-box {
  margin-top: auto;
}

/* Topic colour band under the image; it borders black, so it holds up on the card */
.m-services__media + .m-services__body {
  border-top: 6px solid var(--accent);
}

.m-services__card .link-box:hover {
  background: var(--accent);
  color: var(--black);
}

@media (min-width: 48rem) {
  .m-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .m-services__media {
    height: 200px;
  }

  .m-services__body {
    gap: 16px;
    padding: 28px;
  }

  .m-services__meta {
    font-size: 0.8125rem;
  }

  .m-services__claim {
    font-size: 1.125rem;
  }

  .m-services__body .bullets {
    margin-bottom: 8px;
  }
}

@media (min-width: 64rem) {
  .m-services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- promise ---------- */

.m-promise {
  padding-top: 24px;
}

.m-promise__grid {
  display: grid;
  gap: 32px;
}

.m-promise__intro .lead {
  margin-top: 16px;
  line-height: 1.6;
}

.m-promise__points {
  display: grid;
  gap: 24px;
}

.m-promise__point {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark-3);
}

.m-promise__num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
}

.m-promise__point h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 600;
}

.m-promise__point p {
  line-height: 1.55;
  color: var(--muted-dark);
}

@media (min-width: 48rem) {
  .m-promise {
    padding-top: 40px;
  }

  .m-promise__points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  .m-promise__point {
    gap: 10px;
    padding-top: 20px;
  }

  .m-promise__num {
    font-size: 0.875rem;
  }

  .m-promise__point h3 {
    font-size: 1.375rem;
  }
}

@media (min-width: 64rem) {
  .m-promise__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 80px;
    align-items: start;
  }

  .m-promise__intro .lead {
    margin-top: 24px;
  }
}

/* ---------- testimonials ---------- */

.m-testimonials__grid {
  margin-top: var(--stack);
  display: grid;
  gap: 16px;
}

.m-testimonials__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 20px;
}

.m-testimonials__item blockquote {
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 500;
}

.m-testimonials__item figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.m-testimonials__name {
  font-weight: 600;
}

.m-testimonials__item a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (min-width: 64rem) {
  .m-testimonials__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }

  .m-testimonials__item {
    gap: 24px;
    padding: 28px;
  }

  .m-testimonials__item blockquote {
    font-size: 1.25rem;
  }
}

/* ---------- cta-band ---------- */

.m-cta-band {
  padding-block: 40px 48px;
}

.m-cta-band__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.m-cta-band .h2 {
  max-width: 760px;
}

.m-cta-band__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.m-cta-band__mail {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (min-width: 48rem) {
  .m-cta-band {
    padding-block: 72px;
  }

  .m-cta-band__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
  }

  .m-cta-band__actions {
    flex: none;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ---------- social-grid ---------- */

.m-social-grid {
  padding-block: 16px 48px;
}

.m-social-grid__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.m-social-grid__title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.75rem);
  line-height: 1.2;
}

.m-social-grid__profile {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
}

.m-social-grid__profile:hover {
  text-decoration: underline;
}

.m-social-grid__grid {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols-sm, 3), minmax(0, 1fr));  /* set by the template */
  gap: 8px;
}

.m-social-grid__grid li {
  aspect-ratio: 1 / 1;
}

.m-social-grid__post {
  display: block;
  width: 100%;
  height: 100%;
}

.m-social-grid__post img {
  transition: opacity 0.2s;
}

.m-social-grid__post:hover img {
  opacity: 0.8;
}

.m-social-grid__post:focus-visible {
  outline-offset: -3px;
}

/* Video hint on reels: the play square of the video grid, smaller and not clickable itself */
.m-social-grid__play {
  width: 40px;
  height: 40px;
  pointer-events: none;
}

.m-social-grid__post:hover .m-social-grid__play {
  background: var(--text-light);
}

@media (min-width: 48rem) {
  .m-social-grid__play {
    width: 48px;
    height: 48px;
  }
}

.m-social-grid .ph-badge {
  top: 6px;
  left: 6px;
  padding: 2px 5px;
  font-size: 0.5625rem;
}

@media (min-width: 48rem) {
  .m-social-grid {
    padding-block: 24px 72px;
  }

  .m-social-grid__profile {
    font-size: var(--fs-small);
  }

  .m-social-grid__grid {
    margin-top: 24px;
    grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr));
    gap: 16px;
  }
}

/* ---------- tiles ---------- */

.m-tiles__grid {
  list-style: none;
  margin: var(--stack) 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.m-tiles__tile {
  display: flex;
  gap: 16px;
  padding: 18px;
}

.m-tiles__icon {
  flex: none;
  width: 32px;
  height: 32px;
}

.m-tiles__icon svg {
  width: 100%;
  height: 100%;
}

.m-tiles__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.m-tiles__text h3 {
  font-size: 1.125rem;
  line-height: 1.25;
  font-weight: 600;
}

.m-tiles__text p {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--text-card);
}

.m-tiles__charity {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-small);
  line-height: 1.5;
}

.m-tiles__tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.m-tiles__tags ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.m-tiles__tags-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--muted-light);
}

@media (min-width: 48rem) {
  .m-tiles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .m-tiles__charity,
  .m-tiles__tags {
    margin-top: 32px;
  }

  .m-tiles__charity {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
  }
}

@media (min-width: 64rem) {
  .m-tiles__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .m-tiles__tile {
    flex-direction: column;
    gap: 12px;
    padding: 24px;
  }

  .m-tiles__text {
    gap: 12px;
  }

  .m-tiles__text h3 {
    font-size: 1.25rem;
  }

  .m-tiles__text p {
    line-height: 1.55;
  }
}

/* ---------- media-grid ---------- */

.m-media-grid {
  padding-top: 24px;
}

.m-media-grid__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.m-media-grid__intro {
  max-width: 420px;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--muted-dark);
}

.m-media-grid__grid {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.m-media-grid__caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--black);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.m-media-grid__meta {
  flex: none;
  color: var(--muted);
}

/* references */
.m-media-grid__ref {
  display: flex;
  flex-direction: column;
  background: var(--card-dark);
  border: 1px solid var(--line-dark-2);
}

.m-media-grid__shot {
  height: 170px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark-2);
}

.m-media-grid__ref-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  gap: 16px;
  padding: 20px;
}

.m-media-grid__ref blockquote {
  font-size: 1.0625rem;
  line-height: 1.5;
  font-weight: 500;
}

.m-media-grid__ref-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 12px;
  font-size: var(--fs-small);
  font-weight: 600;
}

.m-media-grid__ref-meta a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--accent);
}

.m-media-grid__ref-meta a:hover {
  text-decoration: underline;
}

/* videos */
.m-media-grid__video {
  height: 220px;
}

.m-media-grid__video .m-media-grid__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.m-media-grid__video .play {
  margin-top: -16px;
}

.m-media-grid__video.has-video .m-media-grid__caption,
.m-media-grid__video.has-video .ph-badge {
  display: none;
}

.m-media-grid__video video {
  background: var(--black);
  object-fit: contain;
}

/* gallery */
.m-media-grid__photo {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-dark-2);
}

.m-media-grid__photo-media {
  height: 240px;
  overflow: hidden;
}

.m-media-grid__photo .m-media-grid__caption {
  padding: 12px 14px;
  border-top: 1px solid var(--line-dark-2);
  background: transparent;
}

@media (min-width: 48rem) {
  .m-media-grid {
    padding-top: 32px;
  }

  .m-media-grid__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
  }

  .m-media-grid__intro {
    font-size: 1rem;
  }

  .m-media-grid__grid {
    margin-top: 40px;
    gap: 24px;
  }

  .m-media-grid__grid--references,
  .m-media-grid__grid--gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .m-media-grid__grid--videos {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-auto-rows: 228px;
  }

  .m-media-grid__video {
    height: auto;
  }

  .m-media-grid__video.is-lead {
    grid-row: span 2;
  }

  .m-media-grid__video.is-lead .play {
    width: 80px;
    height: 80px;
  }

  .m-media-grid__video.is-lead .m-media-grid__caption {
    padding: 14px 16px;
    font-size: 0.875rem;
  }

  .m-media-grid__video:not(.is-lead) .play {
    width: 56px;
    height: 56px;
  }

  .m-media-grid__shot {
    height: 220px;
  }

  .m-media-grid__ref-body {
    padding: 24px;
  }

  .m-media-grid__ref blockquote {
    font-size: 1.125rem;
  }

  .m-media-grid__photo-media {
    height: 420px;
  }
}

@media (min-width: 64rem) {
  .m-media-grid__grid--references,
  .m-media-grid__grid--gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- steps ---------- */

.m-steps__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.m-steps__step {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 3px solid var(--black);
}

.m-steps__step:last-child {
  border-top-color: var(--accent);
}

.m-steps__num {
  flex: none;
  width: 44px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.2;
}

.m-steps__step > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.m-steps__step h3 {
  font-size: 1.125rem;
  line-height: 1.25;
  font-weight: 600;
}

.m-steps__step p {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--text-card);
}

@media (min-width: 48rem) {
  .m-steps__list {
    margin-top: var(--stack);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (min-width: 64rem) {
  .m-steps__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .m-steps__step {
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
  }

  .m-steps__num {
    width: auto;
    font-size: 2rem;
  }

  .m-steps__step > div {
    gap: 12px;
  }

  .m-steps__step h3 {
    font-size: 1.25rem;
  }

  .m-steps__step p {
    line-height: 1.55;
  }
}

/* ---------- specs ---------- */

.m-specs {
  padding-top: 24px;
}

.m-specs__list {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}

.m-specs__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark-3);
}

.m-specs__item dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.m-specs__item dd {
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 600;
  overflow-wrap: break-word;
}

@media (min-width: 48rem) {
  .m-specs {
    padding-top: 32px;
  }

  .m-specs__list {
    margin-top: 40px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }

  .m-specs__item {
    padding-top: 16px;
  }

  .m-specs__item dt {
    font-size: 0.8125rem;
  }

  .m-specs__item dd {
    font-size: 1.25rem;
  }
}
