/* Editorial inner pages. Loaded after theme.css and motion.css. */
main.editorial-page {
  --ed-blue: #073b70;
  --ed-deep: #052e59;
  --ed-ink: #102b44;
  --ed-sky: #4bb4e6;
  --ed-paper: #f6f8f9;
  --ed-gutter: clamp(24px, 4vw, 64px);
  overflow: clip;
  color: var(--ed-ink);
  background: #fff;
}

:is(#solutions, #industries, #projects, #expertises, #page).editorial-page {
  padding: 0;
}

:is(#solutions, #industries, #projects, #expertises, #page).editorial-page > .page_hero.editorial-hero {
  margin: 0;
}

:is(#solutions, #page).editorial-not-found > .page_hero {
  min-height: 45svh;
  margin: 0;
  padding: calc(5rem + 3rem) var(--ed-gutter) 4rem;
  background: var(--ed-deep);
}

:is(#solutions, #page).editorial-not-found > .page_hero h1 {
  max-width: 900px;
  font-size: clamp(2.5rem, 4.5vw, 5rem);
  line-height: 1.08;
}

:is(#solutions, #page).editorial-not-found > .text_content {
  margin: 0;
  padding: clamp(64px, 8vw, 120px) var(--ed-gutter);
}

/* Media covers share a measured grid, while each route supplies its own image. */
main.editorial-page > .page_hero.editorial-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3rem;
  min-height: 72svh;
  margin: 0;
  padding: calc(5rem + 2rem) var(--ed-gutter) 0;
  color: #fff;
  background-color: var(--ed-deep);
  background-image: linear-gradient(180deg, rgba(2, 27, 50, .33) 0%, rgba(2, 27, 50, .03) 32%, rgba(2, 27, 50, .13) 57%, rgba(2, 27, 50, .61) 100%), var(--hero-image, none);
  background-position: center, var(--hero-position, center);
  background-size: cover;
  background-repeat: no-repeat;
  isolation: isolate;
}

main.editorial-page > .editorial-hero .breadcrumbs {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  width: min(100%, 1200px);
  margin: 0 auto auto;
  padding-block: .5rem;
  line-height: 1.5;
}

main.editorial-page > .editorial-hero .breadcrumbs,
main.editorial-page > .editorial-hero .breadcrumbs a {
  color: rgba(255, 255, 255, .92);
  font-size: .88rem;
}

main.editorial-page > .editorial-hero .breadcrumbs a:hover,
main.editorial-page > .editorial-hero .breadcrumbs a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .3em;
}

main.editorial-page > .editorial-hero .breadcrumbs .current {
  white-space: normal;
}

main.editorial-page > .editorial-hero .editorial-hero__copy {
  position: relative;
  z-index: 1;
  width: min(100%, 870px);
  margin-left: max(0px, calc((100% - 1200px) / 2));
  padding: clamp(28px, 3.4vw, 52px);
  border-radius: 28px 28px 0 0;
  background: linear-gradient(112deg, rgba(4, 49, 94, .97), rgba(5, 60, 109, .84));
}

main.editorial-page > .editorial-hero .section-label {
  color: #f3b6a8;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  margin-bottom: 1.1rem;
}

main.editorial-page > .editorial-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.5rem, 5.5vw, 6.1rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

main.editorial-page > .editorial-hero .accent-rule {
  width: 78px;
  height: 4px;
  margin: clamp(20px, 2vw, 30px) 0 0;
  background: #d16d50;
}

main.editorial-page > .editorial-hero .editorial-hero__lead {
  max-width: 710px;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}

main.editorial-page.editorial-detail > .editorial-hero {
  min-height: 84svh;
}

main.editorial-page.editorial-about > .editorial-hero {
  min-height: 86svh;
}

/* Intro text carries the larger editorial statement before the content. */
main.editorial-list > .editorial-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2rem clamp(36px, 5vw, 96px);
  margin: 0;
  padding: clamp(76px, 9vw, 136px) var(--ed-gutter);
  background: #fff;
}

main.editorial-list > .editorial-intro p {
  max-width: 760px;
  margin: 0;
  color: #496174;
  font-size: clamp(1.1rem, 1.4vw, 1.28rem);
  line-height: 1.65;
}

main.editorial-list > .editorial-intro p:first-child {
  grid-row: span 2;
  color: var(--ed-ink);
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 2.65vw, 2.9rem);
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: -.025em;
  text-wrap: pretty;
}

/* The four solution routes have always-visible names, descriptions and arrows. */
#solutions.editorial-solutions > .solutions_container.editorial-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  margin: 0;
  padding: 0 var(--ed-gutter) clamp(90px, 10vw, 150px);
  background: #fff;
}

#solutions.editorial-solutions .solutions_container .solution {
  min-width: 0;
  padding: 0;
  color: inherit;
}

#solutions.editorial-solutions .solutions_container .solution:first-child,
#solutions.editorial-solutions .solutions_container .solution:last-child {
  grid-column: 1 / -1;
}

#solutions.editorial-solutions .solutions_container .solution .solution_container {
  display: grid;
  grid-template: none;
  grid-template-columns: 1fr;
  height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--ed-paper);
  box-shadow: none;
  transition: box-shadow .3s ease, transform .3s ease;
}

#solutions.editorial-solutions .solutions_container .solution:first-child .solution_container,
#solutions.editorial-solutions .solutions_container .solution:last-child .solution_container {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
}

#solutions.editorial-solutions .solutions_container .solution:last-child .solution_container figure {
  order: 2;
}

#solutions.editorial-solutions .solutions_container .solution .solution_container figure {
  position: relative;
  grid-area: auto;
  min-width: 0;
  width: 100%;
  height: clamp(320px, 32vw, 560px);
  margin: 0;
  aspect-ratio: auto;
  filter: none;
  perspective: none;
  overflow: hidden;
  transition: none;
}

#solutions.editorial-solutions .solutions_container .solution:not(:first-child):not(:last-child) .solution_container figure {
  height: clamp(290px, 27vw, 440px);
}

#solutions.editorial-solutions .solutions_container .solution .solution_container figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transition: transform .55s ease;
}

#solutions.editorial-solutions .solutions_container .solution .solution_container .text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  grid-area: auto;
  min-width: 0;
  max-height: none;
  margin: 0;
  padding: clamp(28px, 3.5vw, 54px);
  background: var(--ed-paper);
  color: var(--ed-ink);
  overflow: visible;
}

#solutions.editorial-solutions .solutions_container .solution:first-child .text,
#solutions.editorial-solutions .solutions_container .solution:last-child .text {
  justify-content: center;
  background: var(--ed-blue);
  color: #fff;
}

.editorial-page .editorial-card__number {
  display: block;
  margin-bottom: 1.7rem;
  color: #a9513b;
  font: 700 .82rem var(--font-body);
  letter-spacing: .18em;
}

#solutions.editorial-solutions .solution:first-child .editorial-card__number,
#solutions.editorial-solutions .solution:last-child .editorial-card__number,
#projects.editorial-projects .project:first-child .editorial-card__number {
  color: #95d4f2;
}

#solutions.editorial-solutions .solutions_container .solution .text h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.8rem, 2.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}

#solutions.editorial-solutions .solutions_container .solution .text div {
  display: block;
  max-width: 32rem;
  margin-top: 1.2rem;
  color: inherit;
  opacity: .82;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.5;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.editorial-page .editorial-card__arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-top: auto;
  padding-top: 1.5rem;
  color: currentColor;
  font-size: 2rem;
  line-height: 1;
  transition: transform .25s ease;
}

#solutions.editorial-solutions .solution .solution_container:hover,
#solutions.editorial-solutions .solution .solution_container:focus-within {
  box-shadow: 0 22px 45px rgba(7, 47, 86, .14);
  transform: translateY(-3px);
}

#solutions.editorial-solutions .solution .solution_container:hover figure img,
#solutions.editorial-solutions .solution:focus-visible figure img {
  transform: scale(1.035);
}

#solutions.editorial-solutions .solution:hover .editorial-card__arrow,
#solutions.editorial-solutions .solution:focus-visible .editorial-card__arrow {
  transform: translate(3px, -3px);
}

/* Sectors and capabilities read as image-and-text chapters. */
:is(#industries.editorial-industries, #expertises.editorial-expertise) > .editorial-rows {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  margin: 0;
  padding: 0 var(--ed-gutter) clamp(90px, 10vw, 150px);
}

#expertises.editorial-expertise > .editorial-rows {
  padding-top: clamp(76px, 9vw, 136px);
}

:is(#industries.editorial-industries, #expertises.editorial-expertise) .editorial-rows > :is(.industry, .expertise) {
  min-width: 0;
  padding: 0;
}

:is(#industries.editorial-industries, #expertises.editorial-expertise) .editorial-rows :is(.industry_container, .expertise_container) {
  display: grid;
  grid-template: none;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  min-height: clamp(380px, 42vw, 620px);
  aspect-ratio: auto;
  border-radius: 0;
  background: var(--ed-paper);
  overflow: hidden;
  transition: none;
}

:is(#industries.editorial-industries, #expertises.editorial-expertise) .editorial-rows > :is(.industry, .expertise):nth-child(even) :is(.industry_container, .expertise_container) {
  background: var(--ed-deep);
}

:is(#industries.editorial-industries, #expertises.editorial-expertise) .editorial-rows > :is(.industry, .expertise):nth-child(even) figure {
  order: 2;
}

:is(#industries.editorial-industries, #expertises.editorial-expertise) .editorial-rows :is(.industry_container, .expertise_container) figure {
  position: relative;
  grid-area: auto;
  width: 100%;
  height: 100%;
  min-height: 380px;
  margin: 0;
  aspect-ratio: auto;
  filter: none;
  perspective: none;
  transition: none;
}

#industries.editorial-industries .industry_container figure::after {
  content: none;
}

:is(#industries.editorial-industries, #expertises.editorial-expertise) .editorial-rows :is(.industry_container, .expertise_container) figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transition: transform .55s ease;
}

:is(#industries.editorial-industries, #expertises.editorial-expertise) .editorial-rows :is(.industry_container, .expertise_container) .text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  grid-area: auto;
  max-height: none;
  margin: 0;
  padding: clamp(30px, 4vw, 64px);
  background: transparent;
  color: var(--ed-ink);
  overflow: visible;
}

:is(#industries.editorial-industries, #expertises.editorial-expertise) .editorial-rows > :is(.industry, .expertise):nth-child(even) .text {
  color: #fff;
}

:is(#industries.editorial-industries, #expertises.editorial-expertise) .editorial-rows > :is(.industry, .expertise):nth-child(even) .editorial-card__number {
  color: #95d4f2;
}

/* A block without a photo is a single text column and only as tall as its text. */
#expertises.editorial-expertise .editorial-rows > .expertise.expertise--text-only .expertise_container {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

#expertises.editorial-expertise .editorial-rows > .expertise.expertise--text-only .text {
  padding-block: clamp(48px, 6vw, 96px);
}

#expertises.editorial-expertise .editorial-rows > .expertise.expertise--text-only .text h2 {
  max-width: none;
}

/* theme.css still paints the old light expertise card (dark heading, muted
   blurb) with a more specific selector; on the dark even rows that text was
   unreadable. */
#expertises.editorial-expertise .expertises_container .expertise:nth-child(even) .expertise_container .text :is(h2, div) {
  color: #fff;
}

:is(#industries.editorial-industries, #expertises.editorial-expertise) .editorial-rows .text h2 {
  max-width: 12ch;
  margin: 0;
  color: inherit;
  font-size: clamp(2rem, 3vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
}

:is(#industries.editorial-industries, #expertises.editorial-expertise) .editorial-rows .text div {
  display: block;
  max-width: 28rem;
  margin-top: 1.5rem;
  color: inherit;
  opacity: .82;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  overflow: visible;
  -webkit-line-clamp: unset;
}

:is(#industries.editorial-industries, #expertises.editorial-expertise) .editorial-rows > :is(.industry, .expertise):hover figure img {
  transform: scale(1.025);
}

/* Portfolio: a large first story, followed by a color grid at mixed scales. */
#projects.editorial-projects > .projects_container.editorial-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  margin: 0;
  padding: 0 var(--ed-gutter) clamp(90px, 10vw, 150px);
}

#projects.editorial-projects .projects_container .project {
  min-width: 0;
  padding: 0;
}

#projects.editorial-projects .projects_container .project:first-child,
#projects.editorial-projects .projects_container .project:nth-child(6) {
  grid-column: 1 / -1;
}

#projects.editorial-projects .projects_container .project .project_container {
  display: grid;
  grid-template: none;
  grid-template-columns: 1fr;
  height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--ed-paper);
  box-shadow: none;
  transition: box-shadow .3s ease, transform .3s ease;
}

#projects.editorial-projects .projects_container .project:first-child .project_container,
#projects.editorial-projects .projects_container .project:nth-child(6) .project_container {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
}

#projects.editorial-projects .projects_container .project:nth-child(6) .project_container figure {
  order: 2;
}

#projects.editorial-projects .projects_container .project .project_container figure {
  grid-area: auto;
  width: 100%;
  height: clamp(300px, 32vw, 510px);
  margin: 0;
  aspect-ratio: auto;
  filter: none;
  perspective: none;
  overflow: hidden;
  transition: none;
}

#projects.editorial-projects .projects_container .project .project_container figure::after {
  content: none;
}

#projects.editorial-projects .projects_container .project .project_container figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transition: transform .55s ease;
}

#projects.editorial-projects .projects_container .project .project_container .text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  grid-area: auto;
  max-height: none;
  margin: 0;
  padding: clamp(28px, 3.5vw, 54px);
  background: var(--ed-paper);
  color: var(--ed-ink);
  overflow: visible;
}

#projects.editorial-projects .projects_container .project:first-child .text,
#projects.editorial-projects .projects_container .project:nth-child(6) .text {
  background: var(--ed-blue);
  color: #fff;
}

#projects.editorial-projects .projects_container .project .text h2 {
  max-width: 20ch;
  margin: 0;
  color: inherit;
  font-size: clamp(1.7rem, 2.45vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}

#projects.editorial-projects .project:hover .project_container,
#projects.editorial-projects .project:focus-within .project_container {
  box-shadow: 0 22px 45px rgba(7, 47, 86, .14);
  transform: translateY(-3px);
}

#projects.editorial-projects .project:hover figure img,
#projects.editorial-projects .project:focus-within figure img {
  transform: scale(1.035);
}

#projects.editorial-projects .project:hover .editorial-card__arrow,
#projects.editorial-projects .project:focus-within .editorial-card__arrow {
  transform: translate(3px, -3px);
}

/* Solution detail uses one opening image, then substantial visual chapters. */
#solutions.editorial-solution-detail .detail_section {
  margin: 0;
  padding: clamp(76px, 9vw, 136px) var(--ed-gutter);
}

#solutions.editorial-solution-detail .editorial-detail__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  background: #fff;
}

#solutions.editorial-solution-detail .editorial-detail__intro .text_content {
  max-width: 650px;
  margin: 0;
}

#solutions.editorial-solution-detail .editorial-detail__intro .text_content p {
  margin: 0 0 1.3rem;
  color: #526779;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.66;
}

#solutions.editorial-solution-detail .editorial-detail__intro .text_content p:first-child {
  color: var(--ed-ink);
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.5vw, 2.9rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.025em;
}

#solutions.editorial-solution-detail .editorial-detail__image {
  width: 100%;
  height: clamp(390px, 42vw, 630px);
  overflow: hidden;
}

#solutions.editorial-solution-detail .editorial-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#solutions.editorial-solution-detail .editorial-detail__items {
  background: var(--ed-paper);
}

#solutions.editorial-solution-detail .detail_section--gray .solutions_container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}

#solutions.editorial-solution-detail .detail_section--gray .solution {
  padding: 0;
}

#solutions.editorial-solution-detail .detail_section--gray .solution:first-child {
  grid-column: 1 / -1;
}

#solutions.editorial-solution-detail .detail_section--gray .solution .solution_container {
  display: grid;
  grid-template: none;
  grid-template-columns: 1fr;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transform: none;
}

#solutions.editorial-solution-detail .detail_section--gray .solution:first-child .solution_container {
  grid-template-columns: 1.2fr .8fr;
}

#solutions.editorial-solution-detail .detail_section--gray .solution figure {
  grid-area: auto;
  width: 100%;
  height: clamp(260px, 27vw, 440px);
  margin: 0;
  aspect-ratio: auto;
  filter: none;
  perspective: none;
  transition: none;
}

#solutions.editorial-solution-detail .detail_section--gray .solution:first-child figure {
  height: clamp(350px, 34vw, 540px);
}

#solutions.editorial-solution-detail .detail_section--gray .solution figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transition: transform .45s ease;
}

#solutions.editorial-solution-detail .detail_section--gray .solution:hover figure img {
  transform: scale(1.025);
}

#solutions.editorial-solution-detail .detail_section--gray .solution .text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  grid-area: auto;
  max-height: none;
  margin: 0;
  padding: clamp(28px, 3.4vw, 54px);
  background: #fff;
  color: var(--ed-ink);
  overflow: visible;
}

#solutions.editorial-solution-detail .detail_section--gray .solution:first-child .text {
  background: var(--ed-blue);
  color: #fff;
}

#solutions.editorial-solution-detail .detail_section--gray .solution:first-child .editorial-card__number {
  color: #95d4f2;
}

#solutions.editorial-solution-detail .detail_section--gray .solution .text h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.55rem, 2.2vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -.03em;
}

#solutions.editorial-solution-detail .detail_section--gray .solution .text div {
  display: block;
  margin-top: 1.25rem;
  color: inherit;
  opacity: .82;
  overflow: visible;
  -webkit-line-clamp: unset;
}

#solutions.editorial-solution-detail .detail_section--gray .solution .text p {
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.6;
}

.editorial-page .editorial-back-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: clamp(36px, 5vw, 70px) var(--ed-gutter);
  background: var(--ed-deep);
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.4vw, 2.8rem);
  font-weight: 600;
}

.editorial-page .editorial-back-nav a {
  color: inherit;
}

.editorial-page .editorial-back-nav a:hover,
.editorial-page .editorial-back-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: .18em;
}

/* Case studies separate scope and outcome from the photography. */
#page.editorial-project-detail > .editorial-project-story {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(50px, 7vw, 120px);
  margin: 0;
  padding: clamp(76px, 9vw, 136px) var(--ed-gutter);
  background: #fff;
}

#page.editorial-project-detail .facts_table {
  margin: 0;
}

#page.editorial-project-detail .facts_table_row {
  display: grid;
  grid-template-columns: minmax(110px, .34fr) 1fr;
  gap: 1rem 1.5rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid #d5e1e9;
}

#page.editorial-project-detail .facts_table_row:first-child {
  border-top: 2px solid var(--ed-blue);
}

#page.editorial-project-detail .facts_table_label {
  flex: none;
  color: #688198;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
}

#page.editorial-project-detail .facts_table_value {
  min-width: 0;
  color: var(--ed-ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.55;
}

#page.editorial-project-detail .editorial-project-story__copy {
  align-self: center;
  max-width: 730px;
}

#page.editorial-project-detail .wp-block-paragraph {
  margin: 0 0 1.3rem;
  color: var(--ed-ink);
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 2.4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: -.025em;
}

#page.editorial-project-detail > .wp-block-gallery.columns-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: clamp(12px, 1.5vw, 24px);
  margin: 0;
  padding: 0 var(--ed-gutter) clamp(76px, 8vw, 128px);
  background: #fff;
}

#page.editorial-project-detail .wp-block-gallery figure {
  width: 100%;
  height: clamp(300px, 36vw, 600px);
  margin: 0;
  border-radius: 0;
  overflow: hidden;
}

/* theme.css uses :not(#individual-image) twice on gallery figures. Match that
   specificity so editorial row heights stay deliberate instead of auto-sized. */
#page.editorial-project-detail .wp-block-gallery figure:not(#individual-image):not(#individual-image) {
  height: clamp(300px, 36vw, 600px);
}

#page.editorial-project-detail .wp-block-gallery figure:first-child,
#page.editorial-project-detail .wp-block-gallery figure:nth-child(5) {
  grid-column: 1 / -1;
  height: clamp(380px, 48vw, 750px);
}

#page.editorial-project-detail .wp-block-gallery figure:first-child:not(#individual-image):not(#individual-image),
#page.editorial-project-detail .wp-block-gallery figure:nth-child(5):not(#individual-image):not(#individual-image) {
  height: clamp(380px, 48vw, 750px);
}

#page.editorial-project-detail .wp-block-gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

#page.editorial-project-detail .wp-block-gallery figure:hover img {
  transform: scale(1.025);
}

#page.editorial-project-detail > .project_nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  background: #477299;
}

#page.editorial-project-detail .project_nav_link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  min-height: 200px;
  margin: 0;
  padding: clamp(32px, 4vw, 64px);
  background: var(--ed-deep);
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  transition: background .25s ease;
}

#page.editorial-project-detail .project_nav_link:hover,
#page.editorial-project-detail .project_nav_link:focus-visible {
  background: #0b548d;
  color: #fff;
}

#page.editorial-project-detail .project_nav_link .arrow {
  font-size: 2rem;
  font-weight: 400;
}

/* Company narrative, facts, safety and partnerships. */
#about.editorial-about .text_block,
#about.editorial-about .mission,
#about.editorial-about .social,
#about.editorial-about .partners {
  margin: 0;
}

#about.editorial-about .text_block--intro {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: 1.25rem clamp(48px, 7vw, 120px);
  padding: clamp(82px, 10vw, 150px) var(--ed-gutter);
  background: #fff;
}

#about.editorial-about .text_block--intro h2 {
  grid-row: span 4;
  max-width: 9ch;
  margin: 0;
  color: var(--ed-blue);
  font-size: clamp(3rem, 5vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

#about.editorial-about .text_block--intro p {
  max-width: 760px;
  margin: 0;
  color: #4a6376;
  font-size: clamp(1.06rem, 1.35vw, 1.25rem);
  line-height: 1.65;
}

#about.editorial-about .text_block--intro p:first-of-type {
  color: var(--ed-ink);
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}

#about.editorial-about .text_block--intro .kpi-row {
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 2rem;
  max-width: none;
  margin: clamp(44px, 6vw, 90px) 0 0;
  padding-top: clamp(26px, 3vw, 46px);
  border-top: 1px solid #d4e0e8;
}

#about.editorial-about .text_block--intro .kpi b {
  color: var(--ed-blue);
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 1;
}

#about.editorial-about .text_block--intro .kpi span {
  display: block;
  margin-top: .85rem;
  color: #57718a;
  font-size: .82rem;
  letter-spacing: .1em;
}

#about.editorial-about .text_block--geography,
#about.editorial-about .text_block--hse {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: stretch;
  min-height: 630px;
  padding: 0;
}

#about.editorial-about .text_block--geography {
  background: var(--ed-paper);
}

#about.editorial-about .text_block--geography .editorial-copy,
#about.editorial-about .text_block--hse .editorial-copy {
  align-self: center;
  padding: clamp(48px, 6vw, 100px) var(--ed-gutter);
}

#about.editorial-about .text_block--geography h2,
#about.editorial-about .text_block--hse h2 {
  margin: 0 0 2rem;
  color: var(--ed-blue);
  font-size: clamp(2.8rem, 4.4vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -.04em;
}

#about.editorial-about .text_block--geography p,
#about.editorial-about .text_block--hse p {
  max-width: 670px;
  margin: 0 0 1.1rem;
  color: #496174;
  font-size: clamp(1.06rem, 1.3vw, 1.24rem);
  line-height: 1.65;
}

#about.editorial-about .text_block--geography p:first-of-type,
#about.editorial-about .text_block--hse p:first-of-type {
  color: var(--ed-ink);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.1vw, 2.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}

#about.editorial-about .text_block--geography .editorial-side-image,
#about.editorial-about .text_block--hse .background {
  position: relative;
  z-index: auto;
  top: auto;
  left: auto;
  width: 100%;
  height: 100%;
  min-height: 630px;
  opacity: 1;
  overflow: hidden;
}

#about.editorial-about .text_block--geography .editorial-side-image img,
#about.editorial-about .text_block--hse .background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#about.editorial-about .text_block--hse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  background: var(--ed-deep);
}

#about.editorial-about .text_block--hse .background::after {
  content: none;
}

#about.editorial-about .text_block--hse .background {
  order: 0;
}

#about.editorial-about .text_block--hse .editorial-copy {
  order: 1;
}

#about.editorial-about .text_block--hse h2,
#about.editorial-about .text_block--hse p,
#about.editorial-about .text_block--hse p:first-of-type {
  color: #fff;
}

#about.editorial-about .text_block--hse p:not(:first-of-type) {
  color: rgba(255, 255, 255, .78);
}

#about.editorial-about .mission {
  padding: clamp(84px, 10vw, 150px) var(--ed-gutter);
  background: var(--ed-blue);
  color: #fff;
}

#about.editorial-about .mission h2,
#about.editorial-about .social h2,
#about.editorial-about .partners h2 {
  max-width: 1000px;
  margin: 0 0 2rem;
  font-size: clamp(3rem, 5vw, 5.8rem);
  line-height: 1.05;
  letter-spacing: -.045em;
  text-wrap: balance;
}

#about.editorial-about .mission > p {
  max-width: 810px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  line-height: 1.52;
}

#about.editorial-about .mission .cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 40px);
  margin-top: clamp(54px, 7vw, 110px);
}

#about.editorial-about .mission .cards .card {
  display: block;
  min-width: 0;
  padding: 2rem 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .5);
  border-radius: 0;
  color: #fff;
}

#about.editorial-about .mission .cards .icon {
  display: none;
}

#about.editorial-about .mission .cards .card h3 {
  margin: 0 0 1.2rem;
  color: #fff;
  font-size: clamp(1.3rem, 1.8vw, 2rem);
  line-height: 1.22;
}

#about.editorial-about .mission .cards .card h3::before {
  display: block;
  margin-bottom: 1.7rem;
  color: var(--ed-sky);
  font-size: 1rem;
  letter-spacing: .16em;
}

#about.editorial-about .mission .cards .card p {
  margin: 0;
  color: rgba(255, 255, 255, .75);
  font-size: clamp(1rem, 1.12vw, 1.13rem);
  line-height: 1.58;
}

#about.editorial-about .social {
  padding: clamp(84px, 10vw, 150px) var(--ed-gutter);
  background: #fff;
}

#about.editorial-about .social h2,
#about.editorial-about .partners h2 {
  color: var(--ed-blue);
  text-align: left;
}

#about.editorial-about .social > p,
#about.editorial-about .partners > p {
  max-width: 770px;
  width: auto;
  margin: 0;
  color: #4d6578;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.6;
  text-align: left;
}

#about.editorial-about .social .projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  margin-top: clamp(52px, 7vw, 104px);
}

#about.editorial-about .social .projects .project {
  grid-area: auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 0 1.6rem;
  border: 0;
  border-bottom: 1px solid #d8e3eb;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  opacity: 1;
  transform: none;
  transition: none;
}

#about.editorial-about .social .projects .project:hover {
  box-shadow: none;
  transform: none;
}

#about.editorial-about .social .projects .project figure {
  width: 100%;
  height: auto;
  margin: 0 0 1.7rem;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

#about.editorial-about .social .projects .project figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

#about.editorial-about .social .projects .project:hover figure img {
  transform: scale(1.025);
}

#about.editorial-about .social .projects .project h3 {
  margin: 0 0 .8rem;
  padding: 0;
  color: var(--ed-ink);
  font-size: clamp(1.3rem, 1.8vw, 2rem);
  line-height: 1.2;
  text-align: left;
}

#about.editorial-about .social .projects .project p {
  margin: 0;
  padding: 0;
  color: #52697b;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.58;
  text-align: left;
}

#about.editorial-about .partners {
  padding: clamp(84px, 10vw, 150px) var(--ed-gutter);
  background: var(--ed-paper);
}

#about.editorial-about .partners .icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(48px, 6vw, 90px);
  background: #dce6ed;
}

#about.editorial-about .partners .icons .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: clamp(120px, 12vw, 180px);
  padding: clamp(20px, 2.5vw, 40px);
  background: #fff;
  border: 0;
  border-radius: 0;
}

#about.editorial-about .partners .icons .icon img {
  max-width: 100%;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Focus, small screens and low-motion states remain fully readable. */
main.editorial-page a:focus-visible {
  outline: 3px solid #e47f5a;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  main.editorial-list > .editorial-intro {
    grid-template-columns: 1fr;
  }

  main.editorial-list > .editorial-intro p:first-child {
    grid-row: auto;
  }

  #about.editorial-about .mission .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #about.editorial-about .social .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #about.editorial-about .partners .icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  main.editorial-page {
    --ed-gutter: clamp(16px, 5vw, 24px);
  }

  main.editorial-page > .page_hero.editorial-hero,
  main.editorial-page.editorial-detail > .editorial-hero,
  main.editorial-page.editorial-about > .editorial-hero {
    min-height: 74svh;
    padding: calc(5rem + 1rem) var(--ed-gutter) 0;
    background-position: center, var(--hero-position-mobile, center);
  }

  main.editorial-page > .editorial-hero .breadcrumbs {
    font-size: .78rem;
  }

  main.editorial-page > .editorial-hero .editorial-hero__copy {
    width: 100%;
    margin: 0;
    padding: clamp(24px, 6vw, 34px);
    border-radius: 22px 22px 0 0;
  }

  main.editorial-page > .editorial-hero h1 {
    font-size: clamp(2.3rem, 9vw, 3.4rem);
    line-height: 1.06;
  }

  main.editorial-page > .editorial-hero .editorial-hero__lead {
    margin-top: 1.15rem;
    font-size: clamp(.96rem, 3.8vw, 1.1rem);
    line-height: 1.48;
  }

  main.editorial-list > .editorial-intro {
    gap: 1.25rem;
    padding: 64px var(--ed-gutter);
  }

  #solutions.editorial-solutions > .solutions_container.editorial-cards,
  #projects.editorial-projects > .projects_container.editorial-cards,
  #solutions.editorial-solution-detail .detail_section--gray .solutions_container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #solutions.editorial-solutions .solutions_container .solution:first-child,
  #solutions.editorial-solutions .solutions_container .solution:last-child,
  #projects.editorial-projects .projects_container .project:first-child,
  #projects.editorial-projects .projects_container .project:nth-child(6),
  #solutions.editorial-solution-detail .detail_section--gray .solution:first-child {
    grid-column: auto;
  }

  #solutions.editorial-solutions .solutions_container .solution:first-child .solution_container,
  #solutions.editorial-solutions .solutions_container .solution:last-child .solution_container,
  #projects.editorial-projects .projects_container .project:first-child .project_container,
  #projects.editorial-projects .projects_container .project:nth-child(6) .project_container,
  #solutions.editorial-solution-detail .detail_section--gray .solution:first-child .solution_container {
    grid-template-columns: 1fr;
  }

  #solutions.editorial-solutions .solutions_container .solution:last-child .solution_container figure,
  #projects.editorial-projects .projects_container .project:nth-child(6) .project_container figure,
  :is(#industries.editorial-industries, #expertises.editorial-expertise) .editorial-rows > :is(.industry, .expertise):nth-child(even) figure {
    order: 0;
  }

  #solutions.editorial-solutions .solutions_container .solution .solution_container figure,
  #solutions.editorial-solutions .solutions_container .solution:not(:first-child):not(:last-child) .solution_container figure,
  #projects.editorial-projects .projects_container .project .project_container figure,
  #solutions.editorial-solution-detail .detail_section--gray .solution figure,
  #solutions.editorial-solution-detail .detail_section--gray .solution:first-child figure {
    height: clamp(230px, 70vw, 380px);
  }

  #solutions.editorial-solutions .solutions_container .solution .solution_container .text,
  #projects.editorial-projects .projects_container .project .project_container .text,
  #solutions.editorial-solution-detail .detail_section--gray .solution .text {
    padding: 28px;
  }

  :is(#industries.editorial-industries, #expertises.editorial-expertise) .editorial-rows :is(.industry_container, .expertise_container) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  :is(#industries.editorial-industries, #expertises.editorial-expertise) .editorial-rows :is(.industry_container, .expertise_container) figure {
    height: clamp(280px, 75vw, 430px);
    min-height: 0;
  }

  :is(#industries.editorial-industries, #expertises.editorial-expertise) .editorial-rows :is(.industry_container, .expertise_container) .text {
    min-height: 270px;
    padding: 30px;
  }

  #solutions.editorial-solution-detail .editorial-detail__intro,
  #page.editorial-project-detail > .editorial-project-story {
    grid-template-columns: 1fr;
  }

  #solutions.editorial-solution-detail .editorial-detail__image {
    height: clamp(300px, 80vw, 480px);
  }

  #page.editorial-project-detail > .wp-block-gallery.columns-2 {
    grid-template-columns: 1fr;
  }

  #page.editorial-project-detail .wp-block-gallery figure,
  #page.editorial-project-detail .wp-block-gallery figure:first-child,
  #page.editorial-project-detail .wp-block-gallery figure:nth-child(5) {
    grid-column: auto;
    height: clamp(280px, 82vw, 480px);
  }

  #page.editorial-project-detail .wp-block-gallery figure:not(#individual-image):not(#individual-image),
  #page.editorial-project-detail .wp-block-gallery figure:first-child:not(#individual-image):not(#individual-image),
  #page.editorial-project-detail .wp-block-gallery figure:nth-child(5):not(#individual-image):not(#individual-image) {
    height: clamp(280px, 82vw, 480px);
  }

  #page.editorial-project-detail > .project_nav {
    grid-template-columns: 1fr;
  }

  #page.editorial-project-detail .project_nav_link {
    min-height: 150px;
  }

  #about.editorial-about .text_block--intro,
  #about.editorial-about .text_block--geography,
  #about.editorial-about .text_block--hse {
    grid-template-columns: 1fr;
  }

  #about.editorial-about .text_block--intro {
    padding: 70px var(--ed-gutter);
  }

  #about.editorial-about .text_block--intro h2 {
    grid-row: auto;
    max-width: none;
    margin-bottom: 1rem;
  }

  #about.editorial-about .text_block--intro .kpi-row {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2.5rem;
  }

  #about.editorial-about .text_block--geography .editorial-copy,
  #about.editorial-about .text_block--hse .editorial-copy {
    padding: 70px var(--ed-gutter);
  }

  #about.editorial-about .text_block--geography .editorial-side-image,
  #about.editorial-about .text_block--hse .background {
    min-height: 0;
    height: clamp(300px, 75vw, 460px);
  }

  #about.editorial-about .text_block--hse .background {
    order: 1;
  }

  #about.editorial-about .text_block--hse .editorial-copy {
    order: 0;
  }

  #about.editorial-about .mission,
  #about.editorial-about .social,
  #about.editorial-about .partners {
    padding: 80px var(--ed-gutter);
  }

  #about.editorial-about .mission .cards,
  #about.editorial-about .social .projects {
    grid-template-columns: 1fr;
  }

  #about.editorial-about .partners .icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  main.editorial-page *,
  main.editorial-page *::before,
  main.editorial-page *::after {
    animation: none !important;
    transition: none !important;
  }

  main.editorial-page .reveal-media,
  main.editorial-page .reveal-media img {
    clip-path: none !important;
    translate: none !important;
    scale: none !important;
  }
}
