/* Brand typography, study photography and editorial sections. */
.editorial {
  --ink: #172019;
  --brand-dark: #16241e;
  --brand-accent: #37664f;
  --brand-muted: #b9cabe;
  --heading: "Xmind", "Manrope", Arial, sans-serif;
  font-family: "Manrope", Arial, sans-serif;
}

.field-editorial-title {
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .92;
}

.brief-rail { display: none; }
@media (min-width: 1080px) {
  .home { --frame: clamp(44px, 4vw, 68px); }
  .brief-rail {
    position: fixed;
    inset: 50% auto auto 0;
    display: flex;
    align-items: center;
    gap: 9px;
    width: var(--frame);
    min-height: 44px;
    padding-block: 12px;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
    font-size: .83rem;
    font-weight: 600;
    color: var(--brand-accent);
    z-index: 5;
  }
  .brief-rail::before { content: ""; width: .46em; height: .46em; background: currentColor; }
  .editorial:has(.nav.is-open) .brief-rail { visibility: hidden; }
}

.field-hero__second {
  position: absolute;
  inset: 0;
  opacity: var(--plate-reveal, 0);
  transform: translateY(calc(var(--plate-drift, 0) * 1px));
  transition: transform .08s linear;
}
@media (prefers-reduced-motion: reduce) {
  .field-hero__second { display: none; }
}

.field-work { background: var(--brand-dark); }
.field-study__visual {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  padding: 0;
  background: #211c12;
}
.field-study__visual img { width: 100%; height: 100%; object-fit: cover; }
.field-study__art-label,
.study-ledger__cover figcaption {
  position: absolute;
  inset: auto auto 12px 12px;
  padding: 5px 8px;
  background: #101711;
  color: #e5eee7;
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  line-height: 1.3;
  letter-spacing: .04em;
}
.field-study__copy { max-width: 700px; }
.field-study__copy .field-label { color: var(--brand-muted); }
.field-study__copy .field-result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 17px;
  margin: 16px 0 5px;
  padding-top: 12px;
  border-top: 1px solid #64756b;
  font-size: .93rem;
  color: #e3eae5;
}
.field-result strong { font-family: var(--heading); font-weight: 400; font-size: 2.45rem; line-height: 1; color: #eff9ef; transition: color .18s ease; }
.field-result:hover strong { color: #FFF; }

.field-method { background: #e9eee4; }
.field-method__head { max-width: 840px; margin-bottom: clamp(32px, 6vw, 72px); }
.field-method__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3.2vw, 52px);
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}
.field-method__steps li { border-top: 1px solid #8e9e91; padding-top: 16px; }
.field-method__steps h3 { font-size: clamp(1.35rem, 2.5vw, 2.2rem); line-height: 1.02; letter-spacing: -.045em; }
.field-method__steps p { margin-top: 12px; color: var(--graphite-soft); font-size: 1rem; max-width: 37ch; }
.field-services { background: var(--paper); }
.field-services__list details[open] summary { color: #2d654c; }
.field-services__lead { display: flex; flex-direction: column; align-items: start; }
.field-services__lead .field-title { margin-bottom: clamp(26px, 7vh, 78px); }

.field-sectors { background: var(--paper-2); }
.field-sectors .field-list a, .field-insights .field-list a { transition: padding-left .2s ease, color .2s ease; }
.field-sectors .field-list a:hover, .field-insights .field-list a:hover { padding-left: 10px; color: var(--brand-accent); }
.field-people .field-split { align-items: center; }
.field-people__photo { margin: 0; }
.field-people__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.4;
  object-position: center 58%;
  object-fit: cover;
  filter: saturate(.7);
}
.field-people__photo figcaption { margin-top: 8px; color: var(--graphite-soft); font: .75rem "IBM Plex Mono", monospace; }
.field-people__copy p:not(.field-label) { max-width: 38ch; margin: 22px 0 9px; color: var(--graphite-soft); }

.field-contact {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: min(720px, 80svh);
  background: #17201a;
  color: #f3f8f2;
  border-color: #34433a;
  overflow: hidden;
}
.field-contact__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  z-index: -2;
}
.field-contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #0a140fd9 0%, #0a140fa0 59%, #0a140f25),
    linear-gradient(0deg, #0b1510b8, transparent 55%);
}
.field-contact__story { width: 100%; }
.field-contact .field-title { max-width: 12ch; font-size: clamp(3rem, 9.6vw, 10rem); }
.field-contact p:not(.field-label) { max-width: 40ch; margin: 24px 0 16px; }
.field-contact .btn, .field-contact .btn:hover { background: #eef6ee; color: var(--ink); border-color: #eef6ee; }
.field-contact .btn:hover { background: #d5e9dd; }
.field-contact a:focus-visible, .field-work a:focus-visible { outline-color: #f3faf4; }

.editorial .footer {
  background: var(--paper);
  color: var(--ink);
  border-top: 0;
  margin-inline: var(--frame);
  border-inline: 1px solid var(--line);
}
.editorial .footer__top { margin-bottom: 20px; }
.editorial .footer a,
.editorial .footer a:hover,
.editorial .footer__brand .wordmark__text { color: var(--ink); }
.editorial .footer__brand .wordmark__text small,
.editorial .footer :is(h2, .footer__tagline, .footer__note, .footer__bottom) { color: var(--graphite-soft); }
.editorial .footer .wordmark { margin-bottom: 6px; }
.editorial .footer__bottom { border-color: var(--line); }
.editorial .footer__note { border-color: var(--line); }
.editorial .footer a:focus-visible { outline-color: var(--blue); }

.study-ledger.cs-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: none; gap: clamp(40px, 9vw, 112px); }
.study-ledger .cs-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: 0 clamp(22px, 4vw, 70px); background: transparent; border: 0; overflow: visible; }
.study-ledger__cover {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #182520;
}
.study-ledger__cover img { width: 100%; height: 100%; object-fit: cover; }
.study-ledger .cs-card__media { border: 1px solid var(--line); margin-top: 16px; }
.study-ledger .cs-card__media img { object-fit: contain; }
.study-ledger .cs-card__body { padding: 0; }
.study-ledger .cs-card__title { font-family: var(--heading); font-size: clamp(2.5rem, 5.3vw, 5.4rem); font-weight: 400; line-height: .92; letter-spacing: -.035em; }
.study-ledger .cs-card__foot { padding-inline: 0; margin-top: 12px; }

@media (max-width: 760px) {
  .field-method__steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .field-people__photo img { aspect-ratio: 4 / 3; }
  .field-people__copy { grid-row: 1; }
  .field-contact { min-height: min(560px, 78svh); }
  .study-ledger .cs-card { display: flex; align-items: stretch; gap: 14px; }
  .study-ledger .cs-card__body { order: -1; }
  .study-ledger .cs-card__media { align-self: stretch; }
}

.enquiry-fields { padding: 0; margin: 0; min-inline-size: 0; border: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.enquiry-optional { margin-top: 18px; }
.enquiry-optional summary { width: fit-content; cursor: pointer; }
.enquiry-status { margin: 14px 0 0; min-height: 0; color: var(--blue-deep); font-size: 1rem; }
.enquiry-status[data-error] { color: #873b25; }
.landing-study { margin: 0; }
.landing-study img { width: 100%; height: auto; }
.landing-study figcaption { color: var(--graphite-soft); font-size: .83rem; margin-top: 8px; }

.field-hero__services {
  font: 500 .79rem/1.55 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .04em;
  text-align: right;
  text-transform: uppercase;
}

@media (max-width: 1450px) {
  .field-section { padding-block: clamp(58px, 8.2vw, 110px); }
  .field-title { font-size: clamp(2.8rem, 6.5vw, 6.15rem); }
  .field-contact .field-title { font-size: clamp(2.8rem, 7.6vw, 7rem); }
  .editorial .page-head .display-page { font-size: clamp(2.5rem, 5vw, 4.6rem); }
}
@media (max-width: 760px) {
  .field-hero__services { font-size: .68rem; }
}

/* Make study actions and calculated findings easy to pick out. */
.field-study__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 22px;
  margin-top: 7px;
}
.field-study__actions > a { min-height: 44px; }
.field-study__read { color: #eff9ef; }
.field-study__actions > [download] { color: var(--brand-muted); font-weight: 400; }
.field-study__actions > [download]:hover { color: #eff9ef; }
.study-ledger .study-ledger__finding {
  margin: 22px 0 3px;
  padding: 15px 18px;
  border-left: 2px solid var(--brand-accent);
  background: var(--paper-2);
}
.study-ledger__finding > .mono { color: var(--graphite-soft); }
.study-ledger__metric {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 14px;
  margin-block: 7px;
}
.study-ledger__metric strong {
  font-family: var(--heading);
  font-size: clamp(2rem, 3.9vw, 3.3rem);
  font-weight: 400;
  line-height: .95;
}
.study-ledger__metric > span { font-size: .92rem; color: var(--graphite-soft); }
.study-ledger .cs-card__summary { line-height: 1.58; }
.study-ledger .cs-card__foot {
  align-items: baseline;
  gap: 5px 16px;
}

/* A clearer reading order and focus states for the shared enquiry form. */
.editorial .enquiry-panel {
  margin-top: 12px;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  background: #fafbf8;
}
.enquiry-panel .form-grid { gap: 17px clamp(16px, 2vw, 24px); }
.enquiry-panel .field label { color: var(--graphite); }
.enquiry-panel .field :is(input, textarea) { background: #fff; }
.enquiry-panel .field input { min-height: 46px; }
.enquiry-panel .field :is(input, textarea):focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
.enquiry-panel .enquiry-optional {
  padding-block: 4px;
  border-block: 1px solid var(--line);
}
.enquiry-panel .enquiry-optional summary {
  display: list-item;
  min-height: 44px;
  padding: 9px 0;
  color: var(--graphite);
}
.enquiry-panel .enquiry-optional[open] { padding-bottom: 14px; }
.enquiry-panel__actions { gap: 10px; margin-top: 16px; }
.enquiry-panel__actions > :is(a, button) { min-height: 44px; }
.enquiry-panel .enquiry-status:empty { margin: 0; }
.enquiry-panel .enquiry-status:not(:empty) {
  padding: 10px 13px;
  border-left: 2px solid currentColor;
  background: var(--paper-2);
}
.enquiry-panel .enquiry-status[data-error] { background: #f7ede8; }

@media (max-width: 760px) {
  .field-section { padding-block: clamp(40px, 10vw, 64px); }
  .field-gallery { row-gap: 30px; }
  .field-study__copy { padding-top: 16px; }
  .field-study__copy .field-result { margin-top: 11px; }
  .study-ledger .cs-card__foot { margin-top: 0; }
}
@media (max-width: 420px) {
  .enquiry-panel__actions > :is(a, button) { flex: 1 1 100%; justify-content: center; }
}

/* Align editorial content to a shared left edge and use weight to signal hierarchy. */
.editorial .page-head .display-page { font-weight: 600; line-height: 1.06; }
.editorial :is(.h-section, .h-subsection, .h-card) {
  font-weight: 600;
  text-wrap: balance;
}
.editorial .btn { font-weight: 700; }
.field-caption { row-gap: 6px; }
@media (max-width: 760px) {
    .field-hero__services { text-align: start; }
}

/* Project positioning and next steps in the opening view. */
.editorial :is(h1, h2, h3, .wordmark__text) { font-family: var(--heading); }
.editorial .field-title {
  font-size: clamp(2.25rem, 4.9vw, 5rem);
  line-height: 1.04;
  letter-spacing: -.052em;
}
.field-hero {
  padding-top: clamp(34px, 7vh, 72px);
  column-gap: clamp(22px, 3.5vw, 56px);
}
.field-hero__main h1 {
  max-width: 14ch;
  font-size: clamp(2rem, 4.5vw, 5.65rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 600;
}
.field-hero__lede {
  max-width: 34ch;
  margin-block: clamp(16px, 2vw, 26px) 20px;
  color: var(--graphite-soft);
  font-size: clamp(1rem, 1.45vw, 1.23rem);
  line-height: 1.5;
}
.field-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 19px;
}
.field-hero__actions .btn { padding-inline: 16px; }
.field-hero__foot { padding-top: 11px; border-top: 1px solid var(--line); }
.field-hero__services {
  display: flex;
  flex-wrap: wrap;
  column-gap: clamp(12px, 3vw, 40px);
  text-align: start;
}
.field-hero__services a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
.field-hero__plate { border-radius: 3px; }

/* Compact study previews with one consistent reading order. */
.field-work.field-section { padding-block: clamp(46px, 6vw, 89px); }
.editorial .field-work__title { font-size: clamp(1.95rem, 4.2vw, 3.65rem); }
.field-work .field-caption { border-top: 0; align-items: end; margin-bottom: 0; }
.field-work .field-caption > a { color: #e1ebe1; }
.field-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 36px);
  margin-top: clamp(20px, 3vw, 34px);
}
.field-study {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 4px;
  background: #f1f4ee;
  color: var(--ink);
}
.field-study__visual { aspect-ratio: 2.5 / 1; }
.field-study__visual:focus-visible, .field-study a:focus-visible { outline-color: var(--blue); outline-offset: -3px; }
.field-study__art-label { inset: auto auto 8px 8px; }
.field-study__copy { flex: 1; display: flex; flex-direction: column; padding: clamp(16px, 2.2vw, 28px); }
.field-study__copy .field-label { color: var(--blue); margin-bottom: 9px; font-size: .69rem; }
.field-study__copy h3 { font-weight: 600; font-size: clamp(1.35rem, 2.3vw, 2.2rem); line-height: 1.09; letter-spacing: -.04em; }
.field-study__copy > p:not(.field-label) { font-size: .96rem; line-height: 1.53; }
.field-study__copy .field-result { color: var(--graphite-soft); border-color: var(--line); align-items: baseline; padding-top: 11px; margin-block: auto 0; }
.field-study__copy > h3 + p { padding-bottom: 11px; }
.field-result strong { font-size: 1.24rem; font-weight: 700; color: var(--ink); }
.field-study__actions .field-study__read { color: var(--ink); }
.field-study__actions > [download], .field-study__actions > [download]:hover { color: var(--blue); }

/* Put the result, its limits and the report before the full engineering notes. */
.study-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0 23px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.study-index a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.study-ledger.cs-grid { gap: clamp(28px, 5vw, 60px); }
.study-ledger .cs-card {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(22px, 4vw, 44px);
}
.study-ledger .cs-card__title { font-size: clamp(1.85rem, 3.35vw, 3.3rem); font-weight: 600; line-height: 1.03; }
.study-ledger .study-ledger__finding { margin-top: 15px; }
.study-ledger__metric strong { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; }
.study-ledger__limit { font-size: .94rem; line-height: 1.55; margin: 14px 0 0; color: var(--graphite-soft); }
.study-ledger__limit strong { display: block; color: var(--ink); }
.study-ledger__details { margin-top: 8px; border-top: 1px solid var(--line); }
.study-ledger__details summary { cursor: pointer; min-height: 44px; padding-block: 9px; font-weight: 600; }
.study-ledger__details .cs-card__summary { margin-top: 5px; }

@media (max-width: 760px) {
  .field-hero__main h1 { font-size: clamp(2.2rem, 9.2vw, 4.15rem); }
  .field-hero__services { column-gap: 16px; }
  .field-gallery { grid-template-columns: minmax(0, 1fr); }
  .study-ledger__cover { aspect-ratio: 2.5 / 1; }
  .study-ledger .cs-card__body { order: 0; }
}

/* Answer the first questions a prospective client brings to the site. */
.field-trust {
  padding-block: clamp(28px, 4.8vw, 65px);
  border-bottom: 1px solid var(--line);
  background: #e9eee7;
}
.field-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3.2vw, 48px);
}
.field-trust__grid > div {
  display: flex;
  align-items: start;
  flex-direction: column;
}
.field-trust h2 {
  font-size: clamp(1.15rem, 1.65vw, 1.48rem);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.2;
}
.field-trust p {
  max-width: 38ch;
  margin: 10px 0 5px;
  color: var(--graphite-soft);
  font-size: .96rem;
  line-height: 1.55;
}
.field-trust .field-text-link {
  margin-top: auto;
  color: var(--blue);
}
.field-contact .field-title { max-width: 18ch; }
@media (max-width: 760px) {
  .field-trust__grid { grid-template-columns: 1fr; gap: 15px; }
  .field-trust__grid > div + div { border-top: 1px solid var(--line); padding-top: 18px; }
}
