@charset "UTF-8";
/* ---------------------------------------------------------------------------
   Nak'azdli Enterprises — shared theme
   One stylesheet for the group landing page and every company sub-site.
   Company colour is set by a single custom property on <body>, so a new
   sub-site only needs its own --brand value.
   --------------------------------------------------------------------------- */

:root {
  --ink:        #14171a;
  --ink-2:      #232a30;
  --ink-3:      #3c464e;
  --muted:      #6b7278;
  --line:       #ded8cf;
  --line-soft:  #ebe6de;
  --paper:      #ffffff;
  --sand:       #f6f3ee;
  --sand-2:     #efeae1;

  --rust:       #c0442b;
  --rust-dk:    #97301c;

  --brand:      var(--rust);
  --brand-dk:   var(--rust-dk);

  --head: "Sofia Sans Condensed", "Oswald", "Arial Narrow", system-ui, sans-serif;
  --body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gut: 24px;

  --shadow-sm: 0 1px 2px rgba(20, 23, 26, .06), 0 2px 8px rgba(20, 23, 26, .05);
  --shadow-md: 0 4px 14px rgba(20, 23, 26, .10), 0 12px 32px rgba(20, 23, 26, .08);
}

/* Per-company accents. Set the class on <body>; everything else follows. */
.co-mechanical { --brand: #b4442a; --brand-dk: #8c3018; }
.co-rentals    { --brand: #c8641d; --brand-dk: #9c4a11; }
.co-tire       { --brand: #2f4a5c; --brand-dk: #1e3341; }
.co-testing    { --brand: #4a6b4f; --brand-dk: #34503a; }
.co-drilling   { --brand: #6b5738; --brand-dk: #4d3e26; }

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

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

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

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

a { color: var(--brand-dk); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--head);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: .005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--brand); color: #fff; }

/* --- helpers the editor can apply from the Design panel ------------------- */

.eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .82rem;
  color: var(--brand);
  margin-bottom: .75rem;
}

.lead-in { font-size: 1.2rem; line-height: 1.6; color: var(--ink-3); }

/* Review scaffolding. This is deliberately loud and deliberately ugly: it is
   a question for the client during review, not part of the design, and it all
   comes out before launch. If it ever stops looking out of place, make it
   worse. */
.needs-input {
  position: relative;
  background: #fff4f2;
  border: 2px solid #d81f06;
  border-left-width: 10px;
  border-radius: 3px;
  padding: 2.4rem 1.75rem 1.5rem;
  margin-block: 1.75rem;
  box-shadow: 0 2px 0 rgba(216, 31, 6, .18);
}
.needs-input__to {
  position: absolute;
  top: -2px;
  left: -10px;
  margin: 0;
  background: #d81f06;
  color: #fff !important;
  font-family: var(--head);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .74rem;
  line-height: 1;
  padding: .5em .9em .45em;
  max-width: calc(100% + 10px);
}
.needs-input p { color: #4a1710; }
.needs-input strong { color: #a3170a; }

/* --- layout -------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.row { display: flex; flex-wrap: wrap; margin-inline: calc(var(--gut) / -2); }
.row > * { padding-inline: calc(var(--gut) / 2); width: 100%; }

/* Stacked columns would otherwise butt straight up against each other. */
@media (max-width: 767px) {
  .row > * + * { margin-top: 2rem; }
}

.col-6  { width: 50%; }
.col-12 { width: 100%; }

@media (min-width: 768px) {
  .col-md-1 { width: 8.3333%; }
  .col-md-2 { width: 16.6667%; }
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.3333%; }
  .col-md-5 { width: 41.6667%; }
  .col-md-6 { width: 50%; }
  .col-md-7 { width: 58.3333%; }
  .col-md-8 { width: 66.6667%; }
  .col-md-9 { width: 75%; }
  .col-md-10 { width: 83.3333%; }
  .col-md-11 { width: 91.6667%; }
  .col-md-12 { width: 100%; }
}

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #c9d0d6; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--tight { padding-block: clamp(2.5rem, 4vw, 3.5rem); }
/* First block on the page, directly under the masthead. */
.section--lead { padding-top: clamp(2.25rem, 3.5vw, 3rem); }

.section__head { max-width: 62ch; margin-bottom: 2.75rem; }
.section__head--center { margin-inline: auto; text-align: center; }

.text-md-end { text-align: left; }
@media (min-width: 768px) { .text-md-end { text-align: right; } }

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 1.02rem;
  line-height: 1;
  padding: 1.05em 1.9em;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn + .btn { margin-left: .6rem; }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dk); color: #fff; }

.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

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

/* --- top utility bar ----------------------------------------------------- */

.utility {
  background: var(--ink);
  color: #b9c1c8;
  font-size: .84rem;
  letter-spacing: .03em;
}
.utility .container {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding-block: .35rem;
}
.utility a { color: #fff; }
.utility__owned {
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.utility__owned::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--brand);
  transform: rotate(45deg);
}
.utility__contact { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* --- masthead ------------------------------------------------------------ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--line-soft);
}
.masthead .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 96px;
}
.masthead__logo { display: flex; align-items: center; gap: .85rem; flex-shrink: 0; }
.masthead__logo img { max-height: 74px; width: auto; }
.masthead__logo:hover { text-decoration: none; }
.masthead__wordmark {
  font-family: var(--head);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  letter-spacing: .01em;
}
.masthead__wordmark small {
  display: block;
  font-size: .58rem;
  letter-spacing: .22em;
  color: var(--muted);
  font-weight: 700;
  margin-top: .3rem;
}

/* --- navigation ---------------------------------------------------------- */

.nav { display: flex; align-items: center; gap: .35rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; flex-wrap: wrap; }
.nav a {
  display: block;
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1.02rem;
  color: var(--ink-2);
  padding: .55rem .85rem;
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav li.nav-selected > a,
.nav li.nav-path-selected > a { color: var(--brand); border-bottom-color: var(--brand); }

/* The way back to the parent company. A button, not a sixth tab. */
.nav__back { margin-left: .85rem; }
.nav__back a {
  background: var(--ink);
  color: #fff;
  border-radius: 2px;
  padding: .7rem 1.05rem;
  border-bottom: 0;
  font-size: .95rem;
  letter-spacing: .07em;
  white-space: nowrap;
  transition: background-color .15s ease;
}
.nav__back a::before {
  content: "\2190";
  margin-right: .5rem;
  opacity: .7;
}
.nav__back a:hover { background: var(--brand); color: #fff; text-decoration: none; }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .6rem .8rem;
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
  cursor: pointer;
}

@media (min-width: 901px) and (max-width: 1150px) {
  .nav a { font-size: .92rem; padding: .55rem .6rem; }
  .nav__back a { padding: .65rem .85rem; font-size: .86rem; }
  .masthead .container { gap: .75rem; }
}

@media (max-width: 900px) {
  .masthead .container { min-height: 76px; }
  .masthead__logo img { max-height: 56px; }
  .nav__toggle { display: block; }
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .5rem var(--gut) 1rem;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav li.nav-selected > a { border-bottom-color: var(--line-soft); }
  .nav__back { margin: .85rem 0 0; }
  .nav__back a { text-align: center; padding: .85rem 1rem; }
}

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

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(420px, 62vh, 640px);
  background: var(--ink-2) center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 12, 14, .92) 0%, rgba(10, 12, 14, .55) 45%, rgba(10, 12, 14, .25) 100%),
    linear-gradient(to right, rgba(10, 12, 14, .6) 0%, rgba(10, 12, 14, 0) 60%);
}
.hero > .container { position: relative; z-index: 1; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero__lead {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: #dfe4e8;
  max-width: 56ch;
  margin-bottom: 2rem;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .85rem;
  color: #fff;
  background: var(--brand);
  padding: .5em 1em;
  margin-bottom: 1.4rem;
}
.hero--compact { min-height: clamp(280px, 38vh, 400px); }
/* Nothing to look at until they send a photo, so do not reserve the space. */
.hero.photo-pending { min-height: clamp(300px, 40vh, 420px); }
.hero.photo-pending.hero--compact { min-height: clamp(240px, 30vh, 320px); }
.hero--compact h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }

/* Stand-in for a photo we have not been sent yet. Deliberately visible: the
   client should notice it during review, because it doubles as the ask. */
.photo-pending {
  position: relative;
  background:
    repeating-linear-gradient(135deg, #232a30 0 14px, #1c2226 14px 28px);
}
.photo-pending::before {
  content: attr(data-note);
  position: absolute;
  z-index: 2;
  right: var(--gut);
  top: var(--gut);
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  color: #0d0f11;
  background: #e8c14a;
  padding: .45em .8em;
}

/* --- company cards ------------------------------------------------------- */

.co-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Four cards would leave one orphaned on a row of three; make it two by two. */
@media (min-width: 768px) {
  .co-grid--n4 { grid-template-columns: repeat(2, 1fr); }
}

.co-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--card-brand, var(--brand));
  transition: transform .18s ease, box-shadow .18s ease;
}
.co-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.co-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  padding: 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}
.co-card__logo img { max-height: 100%; width: auto; object-fit: contain; }
.co-card__logo--placeholder {
  font-family: var(--head);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.5rem;
  color: #b9b2a7;
  letter-spacing: .05em;
  text-align: center;
  line-height: 1.15;
}
.co-card__body { padding: 1.5rem; flex: 1; }
.co-card__body h3 { margin-bottom: .5rem; }
.co-card__body p { color: var(--muted); font-size: .96rem; }
.co-card__more {
  display: block;
  padding: 0 1.5rem 1.5rem;
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .92rem;
  color: var(--card-brand, var(--brand));
}
.co-card__more::after { content: " →"; }
.co-card--soon { opacity: .72; }
.co-card--soon .co-card__more { color: var(--muted); }
.co-card__more--out::after { content: " ↗"; }
/* A card that links nowhere (e.g. Carrier Tire until its own site exists):
   a real business with a real contact, so not faded, and no hover lift or
   arrow promising a click. */
.co-card--static,
.co-card--static:hover { opacity: 1; transform: none; box-shadow: none; }
.co-card--static .co-card__more::after { content: none; }
.co-card__body p.co-card__contact { margin-top: .75rem; color: var(--ink); font-size: .92rem; }

/* --- service list -------------------------------------------------------- */

.svc-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 3rem; }
.svc-list li {
  break-inside: avoid;
  padding: .85rem 0 .85rem 2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 1.05rem;
  color: var(--ink-2);
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.45rem;
  width: 10px; height: 10px;
  background: var(--brand);
  transform: rotate(45deg);
}
@media (max-width: 700px) { .svc-list { columns: 1; } }

/* Full-width content column: keep running text to a readable measure, but let
   grids and galleries use the whole width. */
.content-measured > p,
.content-measured > h2,
.content-measured > h3,
.content-measured > h4,
.content-measured > ul:not(.svc-list),
.content-measured > ol,
.content-measured > .needs-input { max-width: 68ch; }

/* --- tiles ---------------------------------------------------------------
   A grid of small cards for content that would otherwise be a wall of
   heading-then-paragraph. Authored as plain <h3>/<p> inside .tiles > div so
   the client can still edit it as ordinary content.
   ------------------------------------------------------------------------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}
.tiles > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  padding: 1.6rem 1.5rem;
}
.section--sand .tiles > div { background: var(--paper); }
.tiles h3 {
  font-size: 1.2rem;
  margin-bottom: .6rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.tiles p { font-size: .98rem; color: var(--ink-3); }
.tiles p:last-child { margin-bottom: 0; }

/* Numbered variant, for a list of capabilities rather than services. */
.tiles--numbered { counter-reset: tile; }
.tiles--numbered > div { counter-increment: tile; position: relative; padding-top: 3.2rem; }
.tiles--numbered > div::before {
  content: counter(tile, decimal-leading-zero);
  position: absolute;
  top: 1.4rem;
  left: 1.5rem;
  font-family: var(--head);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--brand);
  letter-spacing: .08em;
}

/* --- clients -------------------------------------------------------------- */

.clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.client {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.client__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.client__mark img { max-height: 100%; width: auto; object-fit: contain; }
.client__wordmark {
  font-family: var(--head);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: .02em;
  color: var(--ink);
  text-align: center;
  line-height: 1.1;
}
.client__body { padding: 1.35rem 1.5rem; flex: 1; }
.client__body p { font-size: .95rem; margin-bottom: .6rem; }
.client__since {
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .76rem;
  color: var(--muted);
}

/* --- fact strip ---------------------------------------------------------- */

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); }
.facts > div { background: var(--sand); padding: 1.75rem 1.5rem; }
.facts dt {
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--brand);
  text-transform: uppercase;
}
.facts dd { margin: .5rem 0 0; font-size: .95rem; color: var(--ink-3); }

/* --- gallery ------------------------------------------------------------- */

/* Fixed column counts rather than auto-fill: with four photos, auto-fill was
   fitting three and dropping the fourth onto a row of its own. */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 560px)  { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px)  { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery figure:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gallery figure:hover img { transform: scale(1.05); }

/* Caption sits on the photo under a scrim, so the tile is one object rather
   than an image with a slab of sand stuck to the bottom of it. */
.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.75rem 1.1rem 1rem;
  font-size: .9rem;
  line-height: 1.4;
  color: #fff;
  background: linear-gradient(to top, rgba(8, 10, 12, .92) 0%, rgba(8, 10, 12, .72) 45%, rgba(8, 10, 12, 0) 100%);
}

/* A single photo should not stretch across the page. */
.gallery--one,
.gallery--one[class] { grid-template-columns: minmax(260px, 520px); }

/* --- contact ------------------------------------------------------------- */

.contact-card { background: var(--sand); padding: clamp(1.75rem, 3vw, 2.5rem); border-top: 4px solid var(--brand); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list strong {
  display: block;
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .2rem;
}
.contact-list a { font-size: 1.1rem; }

/* --- footer -------------------------------------------------------------- */

.site-footer { background: var(--ink); color: #98a2aa; font-size: .95rem; padding-top: clamp(3rem, 5vw, 4.5rem); }
.site-footer h4 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 1.1rem;
}
.site-footer a { color: #d5dbe0; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .3rem 0; }
.site-footer__logo { max-height: 66px; width: auto; margin-bottom: 1.25rem; }
.site-footer__legal {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.5rem;
  font-size: .86rem;
  color: #78838b;
}
.site-footer__legal a { color: #98a2aa; }

.territory {
  border-left: 3px solid var(--brand);
  padding-left: 1.1rem;
  font-size: .93rem;
  line-height: 1.6;
  color: #b3bcc3;
}

/* --- sister-companies band ----------------------------------------------- */

.sisters {
  background: var(--sand);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 2.25rem;
}
.sisters .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.sisters p { margin: 0; font-size: 1.1rem; }
.sisters strong { color: var(--ink); }

/* --- Concrete editing chrome --------------------------------------------- */

.ccm-page-edit-mode .hero { min-height: 340px; }

/* --- team ---------------------------------------------------------------- */

.section--rule { border-top: 1px solid var(--line-soft); }

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem 1.5rem;
}

.team__person { text-align: center; }
.team__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-bottom: 4px solid var(--card-brand);
  margin-bottom: 1rem;
}
.team__photo.photo-pending { display: flex; align-items: center; justify-content: center; }
.team__photo.photo-pending::before { top: .6rem; right: .6rem; font-size: .62rem; }
.team__photo.photo-pending span {
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .85);
}
.team__person h3 { margin: 0 0 .2rem; font-size: 1.3rem; }
.team__role {
  margin: 0;
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85rem;
  color: var(--card-brand);
}
.team__co { margin: .15rem 0 0; font-size: .9rem; color: var(--muted); }
.team__bio { margin: .75rem 0 0; font-size: .95rem; text-align: left; }
.team__email { margin: .5rem 0 0; font-size: .9rem; overflow-wrap: anywhere; }

/* --- contact form ---------------------------------------------------------
   The core Express Form block, built by tools/build-contact-form.php. Its
   markup uses Bootstrap classes, which this theme does not load, so the
   fields are styled here. */

.ccm-form { max-width: 640px; margin-top: 1rem; }
.ccm-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ccm-form .mb-3 { margin-bottom: 1.1rem; }
.ccm-form .form-label {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85rem;
  color: var(--ink);
  margin-bottom: .35rem;
}
.ccm-form .text-muted.small { font-size: .78rem; color: var(--muted); margin-left: .4rem; }
.ccm-form .form-control {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .7rem .85rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ccm-form textarea.form-control { min-height: 9rem; resize: vertical; }
.ccm-form .form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}
.ccm-form .captcha { margin: .5rem 0 1rem; }
.ccm-form .form-actions { margin-top: 1rem; }
.ccm-form .btn-primary { background: var(--brand); color: #fff; }
.ccm-form .btn-primary:hover { background: var(--brand-dk); color: #fff; }
.ccm-form .alert {
  padding: 1rem 1.25rem;
  border-left: 4px solid;
  margin-bottom: 1.25rem;
  background: var(--sand);
}
.ccm-form .alert-success { border-color: #3f7d4a; color: #24502c; }
.ccm-form .alert-danger { border-color: #b3261e; color: #7a1a14; }
.ccm-form .alert ul { margin: 0; padding-left: 1.1rem; }
.section--sand .ccm-form .form-control { background: #fff; }

/* Phones: one person per row, photo beside the text, so a bio is not
   squeezed into half the screen width. */
@media (max-width: 559px) {
  .team { grid-template-columns: 1fr; gap: 1.75rem; }
  .team__person {
    display: grid;
    grid-template-columns: 112px 1fr;
    column-gap: 1rem;
    align-content: start;
    text-align: left;
  }
  .team__person > * { grid-column: 2; }
  .team__person > .team__photo { grid-column: 1; grid-row: 1 / span 6; margin: 0; align-self: start; }
  .team__photo.photo-pending::before { display: none; }
}
