/* ==========================================================================
   Inner pages — portfolio, site detail, corridor, vision, expertise,
   plan a campaign, contact, 404.
   ========================================================================== */

/* --- Page head ----------------------------------------------------------- */
.phead {
  padding-block: 180px var(--s-8);
  position: relative;
  overflow: hidden;
}
.phead--tight { padding-block: 180px var(--s-7); }
.phead h1 { margin-block: var(--s-5) var(--s-5); }
.phead__lede { max-width: 56ch; }

/* Expertise: each head in two columns, the heading on the left and its words
   on the right, resting on the same line. A hairline then opens "What we do"
   on the same grid, so the page reads as one ruled spread with no empty half */
.phead--split { padding-bottom: var(--s-7); }
.phead--split .phead__lede { margin-top: var(--s-5); }
.section--caps-split { padding-top: 0; }
.vision__head--split { padding-top: var(--s-7); border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .phead--split .wrap,
  .vision__head--split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: clamp(48px, 7vw, 128px);
    align-items: end;
  }
  .vision__head--split { align-items: start; }          /* the heading level with the top of its words */
  .phead--split h1 { margin-block: 0; }
  .phead--split .phead__lede { margin: 0; max-width: 52ch; padding-bottom: .4em; }
  .vision__head--split .deck__aside { max-width: 52ch; }
}

.phead__stats {
  display: flex; flex-wrap: wrap; gap: var(--s-8);
  margin-top: var(--s-7);
}
.phead__stat { display: flex; flex-direction: column; gap: var(--s-2); }
.phead__stat .t-fig { font-size: clamp(34px, 3.6vw, 52px); }
/* The label only: a deeper "last span" also caught the counter's digit drums
   and shrank the figures to 13px */
.phead__stat > span:last-child { font-size: 14px; color: var(--text-mute); }

/* --- Toolbar (filters + view toggle) ------------------------------------- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.toolbar__filters { display: flex; flex-wrap: wrap; gap: 10px; }
/* Count and view switch take their own row under the filters: count left,
   switch right, instead of wrapping under the chips wherever they fall */
.toolbar__right {
  flex: 1 1 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
}
.toolbar__count { font-size: 13px; color: var(--text-mute); }
/* A count straight in the toolbar (the roads page) stays at the right end, also when the chips wrap */
.toolbar > .toolbar__count { margin-left: auto; }

.viewtoggle { display: flex; padding: 3px; gap: 2px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-strong); }
.viewtoggle button {
  height: 34px; padding-inline: 16px;
  background: transparent; border: 0; border-radius: var(--r-pill); cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--text-mute);
  transition: background-color var(--t-ui) var(--dare-out), color var(--t-ui) var(--dare-out), scale 120ms ease-out;
}
.viewtoggle button:hover { color: var(--text); }
.viewtoggle button:active { scale: .96; }
@media (pointer: coarse) { .viewtoggle button { height: 40px; } }
.viewtoggle button[aria-pressed="true"] { background: var(--text); color: var(--canvas); }

/* --- Portfolio list ------------------------------------------------------ */
.plist { list-style: none; }
.plist__head,
.row--site {
  grid-template-columns: 56px minmax(0, 2.2fr) 1.2fr 1fr .9fr 1.4fr 40px;
  align-items: center;
  gap: var(--s-4);
}
.plist__head {
  display: grid;
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute);
}
.row--site { border-top: 0; border-bottom: 1px solid var(--line); }
.row--site .t-label { font-family: var(--display); font-size: 20px; letter-spacing: -0.01em; }
.row--site .cell { font-size: 14px; color: var(--text-soft); }
.row--site .cell--dim { color: var(--text-mute); }

/* The thumbnail that follows the cursor on row hover */
.rowthumb {
  position: fixed;
  z-index: var(--z-float);
  width: 220px; aspect-ratio: 4/3;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.94);
  transition: opacity 260ms var(--dare-out), transform 260ms var(--dare-out);
  --cut-size: var(--r-sm); clip-path: var(--cut-poly);
}
.rowthumb.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.rowthumb img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1100px) {
  .plist__head { display: none; }
  .row--site {
    grid-template-columns: 44px minmax(0, 1fr) 32px;
    grid-template-areas: "no name arrow" ". meta arrow";
    row-gap: 4px;
  }
  .row--site .row__no { grid-area: no; }
  .row--site .c-name { grid-area: name; }
  .row--site .c-meta { grid-area: meta; }
  .row--site .row__arrow { grid-area: arrow; }
  .row--site .c-hide { display: none; }
}

/* --- Portfolio grid (cards) ---------------------------------------------- */
.pgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}
@media (max-width: 1000px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .pgrid { grid-template-columns: 1fr; } }

/* --- Site detail --------------------------------------------------------- */
.shero {
  position: relative;
  min-height: 82svh;
  display: flex; align-items: flex-end;
  padding-block: 180px var(--s-8);
  overflow: hidden;
}
.shero__media { position: absolute; inset: 0; }
.shero__media img { width: 100%; height: 100%; object-fit: cover; }
.shero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.2) 40%, rgba(0,0,0,.95) 100%);
}

.shero__inner { position: relative; z-index: var(--z-base); }
.shero__no {
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.45);
  margin-bottom: var(--s-4);
}
/* The four figures share one size, set by site.js so the longest value fits
   its card (--fig-size); on one line, in the weight of the home page's figures,
   and on a fixed line so every label below starts level */
.sspecs .t-fig {
  font-size: var(--fig-size, clamp(28px, 3vw, 48px));
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.04;                 /* the counters' drums are 1.04em tall */
  width: max-content;
  white-space: nowrap;
}
.shero__loc { display: flex; align-items: center; gap: 12px; margin-block: var(--s-4) var(--s-5); }

.sspecs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
  padding-block: var(--s-7);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 800px) { .sspecs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.sbody {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--s-8);
  padding-block: var(--s-8);
}
@media (max-width: 1000px) { .sbody { grid-template-columns: 1fr; } }

.taglist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-3); }
.taglist span {
  display: inline-flex; align-items: center; height: 36px; padding-inline: 14px;
  font-size: 13px; color: var(--text-soft);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--r-pill);
}

/* In the wild: the title, with the Day / Night / Video switch beside it */
.wildbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--s-4);
  margin-block: var(--s-4) var(--s-6);
}
.flagship__video {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}
/* The fade and the caption would sit over the player's controls */
.flagship__frame.is-video::after,
.flagship__frame.is-video .flagship__cap { display: none; }

/* --- Forms --------------------------------------------------------------- */
.formgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
}
.formgrid .span-2 { grid-column: 1 / -1; }
@media (max-width: 700px) { .formgrid { grid-template-columns: 1fr; } }

.formnote { font-size: 13px; color: var(--text-mute); }

.formdone {
  display: none;
  flex-direction: column;
  gap: var(--s-4);
  align-items: flex-start;
}
.formdone.is-on { display: flex; }
.formdone__mark {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--red);
  border-radius: 50%;
}

/* --- Steps (plan a campaign) --------------------------------------------- */
.steps {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  margin-bottom: var(--s-7);
}
.stepdot {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--text-mute);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--r-pill);
  transition: background-color var(--t-ui) var(--dare-out), color var(--t-ui) var(--dare-out), box-shadow var(--t-ui) var(--dare-out);
}
.stepdot b { font-family: var(--display); font-weight: 400; }
.stepdot.is-on { color: var(--on-red); background: var(--red); box-shadow: none; }
.stepdot.is-done { color: var(--text); box-shadow: inset 0 0 0 1px var(--text-mute); }

.step { display: none; }
.step.is-on { display: block; animation: stepIn 420ms var(--dare-out) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.stepnav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
/* Back + counter + Continue do not fit on one line on a phone */
@media (max-width: 560px) {
  .stepnav { flex-direction: column-reverse; align-items: stretch; gap: var(--s-3); }
  .stepnav > div { justify-content: space-between; }
  .stepnav .btn { justify-content: center; }
}

/* Site picker in step 2 */
.picklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding-inline-end: 6px;
}
.picklist::-webkit-scrollbar { width: 4px; }
.picklist::-webkit-scrollbar-thumb { background: var(--line-strong); }
.pick {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color var(--t-ui) var(--dare-out), color var(--t-ui) var(--dare-out), box-shadow var(--t-ui) var(--dare-out);
}
.pick:hover { box-shadow: inset 0 0 0 1px var(--text-mute); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick__box {
  width: 16px; height: 16px; flex: none;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  display: grid; place-items: center;
}
.pick input:checked ~ .pick__box { background: var(--red); box-shadow: none; }
.pick input:checked ~ .pick__box::after {
  content: ""; width: 6px; height: 6px; background: var(--on-red);
}
.pick__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pick__t b { font-weight: 500; font-size: 14px; }
.pick__t span { font-size: 12px; color: var(--text-mute); }
.pick:has(input:checked) { box-shadow: inset 0 0 0 1px var(--red); background: rgba(255,0,0,.05); }
@media (max-width: 700px) { .picklist { grid-template-columns: 1fr; } }

/* --- Contact ------------------------------------------------------------- */
/* Top: the title, its line and the four ways to reach us (a ruled 2x2 grid)
   on the left; on the right the person who answers, her portrait square-cut
   on the white it was shot on. Then the enquiry, heading left and form right,
   and the media kit on one line, each opened by a hairline. */
.chero { padding-block: 160px var(--s-8); }
.chero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 112px);
  align-items: stretch;
}
/* The title at the top, the four ways to reach us level with the foot of the card */
.chero__main { display: flex; flex-direction: column; }
.chero__lede { max-width: 52ch; margin-top: var(--s-5); }

.cways {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: auto;
  padding-top: var(--s-7);
  background: linear-gradient(var(--line), var(--line)) 0 var(--s-7) / 100% 1px no-repeat;
}
.cway {
  display: flex; flex-direction: column; gap: 6px;
  padding: var(--s-5) var(--s-5) var(--s-5) 0;
  border-bottom: 1px solid var(--line);
}
.cway:nth-child(2n) { padding-inline: var(--s-5) 0; border-inline-start: 1px solid var(--line); }
.cway__k {
  margin-bottom: 4px;
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-mute);
}
.cway__v { font-size: 17px; line-height: 1.5; color: var(--text); }
a.cway__v, .cway__v a { transition: color var(--t-ui); }
a.cway__v:hover, .cway__v a:hover { color: var(--red-ink); }
.cway__sep { margin-inline: 8px; color: var(--text-mute); }

.chost { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); }
.chost__photo { background: #fff; aspect-ratio: 4 / 3.4; overflow: hidden; border-bottom: 1px solid var(--line); }
.chost__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.chost__cap { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: var(--s-5) var(--s-6) var(--s-6); }
.chost__k {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-mute);
}
.chost__k::before { content: ""; width: 6px; height: 6px; background: var(--red); }
.chost__name { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; letter-spacing: -0.015em; }
.chost__role { font-size: 14px; color: var(--text-mute); }
.chost__text { margin-block: var(--s-4) var(--s-5); max-width: 42ch; font-size: 15px; line-height: 1.6; color: var(--text-dim); }

.cform { padding-block: var(--s-8); }
.cform__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(40px, 6vw, 112px);
  padding-top: var(--s-7);
  border-top: 1px solid var(--line);
}
.cform__intro .t-body-l { margin-top: var(--s-4); max-width: 40ch; }
.cform__alt { margin-top: var(--s-5); }

.ckit { padding-block: 0 var(--section-y); }
.ckit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(40px, 6vw, 112px);
  align-items: end;
  padding-top: var(--s-7);
  border-top: 1px solid var(--line);
}
.ckit__text { margin-top: 10px; max-width: 46ch; }

@media (max-width: 950px) {
  .chero { padding-top: 140px; }
  .chero__grid, .cform__grid, .ckit__grid { grid-template-columns: 1fr; }
  .chost { max-width: 520px; }
}
@media (max-width: 560px) {
  .cways { grid-template-columns: 1fr; }
  .cway, .cway:nth-child(2n) { padding-inline: 0; border-inline-start: 0; }
}

/* --- Vision / Expertise editorial ---------------------------------------- */
.prose { max-width: 62ch; display: flex; flex-direction: column; gap: var(--s-5); }
.prose p { font-size: 17px; line-height: 1.75; color: var(--text-soft); font-weight: 300; }

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
}
.pillar {
  display: flex; flex-direction: column; gap: 12px;
  padding: var(--s-6);
  border-radius: var(--r);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--t-ui) var(--dare-out), background var(--t-ui);
}
.pillar:hover { box-shadow: inset 0 0 0 1px rgba(255,0,0,.45); background: rgba(255,0,0,.04); }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }

.placeholder {
  padding: var(--s-6);
  text-align: center;
  color: var(--text-mute);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px var(--line);
  background: repeating-linear-gradient(
    45deg, var(--hatch) 0 8px, transparent 8px 16px
  );
}

/* --- Corridor page ------------------------------------------------------- */
.cpage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--s-5);
  align-items: start;
}
/* Grid items default to min-width:auto and would refuse to shrink below the
   860px map, pushing the page sideways. */
.cpage__grid > * { min-width: 0; }
.cpage__card { margin-top: var(--s-6); padding: var(--s-6); }
@media (max-width: 768px) { .cpage__card { padding: var(--s-5); } }

.cpage__map {
  position: relative;
  width: 100%;
  height: clamp(440px, 64vh, 720px);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #cdc2ad;            /* the aerial map's ground, while it loads */
}
/* If the aerial map cannot run, the drawn map comes back at its own shape */
.cpage__map.is-fallback { height: auto; aspect-ratio: 1312 / 574; background: none; border-radius: 0; overflow: visible; }
/* The map column sticks while the list scrolls past it */
@media (min-width: 1001px) {
  .cpage__grid > :first-child { position: sticky; top: 120px; }
}
@media (max-width: 1000px) {
  .cpage__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .cpage__map { height: min(70svh, 600px); min-height: 420px; }
  .cpage__hint { display: block; }
}
.cpage__hint {
  display: none;
  margin-top: var(--s-3);
  font-size: 12px;
  color: var(--text-mute);
}

/* --- 404 ----------------------------------------------------------------- */
.nf {
  min-height: 84svh;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: var(--s-5);
  padding-block: 180px var(--s-9);
}
.nf__code {
  font-family: var(--display);
  font-size: clamp(90px, 22vw, 300px);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px var(--red-ink);
}

/* --- Contact · Find us: the office from the air, the address on a card --- */
/* The aerial view (assets/aerial/place.js) fills the frame; the card holds
   the address and the two ways to get there */
.findus {
  position: relative;
  height: clamp(420px, 58vh, 620px);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #cdc2ad;               /* the map's ground while it loads */
  isolation: isolate;
}
.findus__card {
  position: absolute; z-index: 3; left: 24px; bottom: 24px;
  max-width: 420px;
  padding: 22px 24px 24px;
  color: #fff;
  background: rgba(14, 15, 18, .76);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border-radius: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 18px 48px rgba(0,0,0,.35);
}
.findus__icon { display: block; width: 26px; height: 26px; margin-bottom: 12px; }
.findus__card .t-label { color: #fff; font-size: 16px; letter-spacing: 0; text-transform: none; }
.findus__card .t-body { color: rgba(255,255,255,.72); margin-top: 4px; }
.findus__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 768px) {
  .findus { height: 540px; border-radius: var(--r); }
  .findus__card { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 18px 18px 20px; }
  .findus__actions { flex-wrap: nowrap; gap: 8px; }
  .findus__actions .btn { flex: 1 1 auto; justify-content: center; padding-inline: 12px; font-size: 13px; white-space: nowrap; }
}

/* --- Contact · Book a call (shown only with a scheduling link) ------------ */
.callbook__in {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--s-5) var(--s-7);
}
.callbook__in p { margin-top: var(--s-4); max-width: 46ch; }

