/* Mid-page editorial refactor. Load after styles.css. */

/* Four levers: the hierarchy is carried by type, not a decorative diagram. */
.system {
  position: relative;
  background: #101216;
}

.system-sticky {
  isolation: isolate;
  background: #101216;
}

.system-sticky::before {
  content: '04';
  position: absolute;
  z-index: -1;
  right: clamp(24px, 5vw, 90px);
  bottom: 6vh;
  color: rgba(255, 255, 255, .035);
  font: 800 clamp(190px, 28vw, 480px)/.7 var(--sans);
  letter-spacing: -.13em;
  pointer-events: none;
}

.system-top { padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.2); }
.system h2 { max-width: 9ch; line-height: .88; }
.system h2 em { color: var(--orange); }
.system-description { padding-left: 18px; border-left: 2px solid var(--orange); }
.system-dial { display: none; }
.system-steps { position: relative; padding-top: 0; }
.system-step {
  position: relative;
  min-height: 70svh;
  padding: 10vh 0 10vh clamp(20px, 4vw, 75px);
  opacity: .28;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.system-step::before {
  content: attr(data-no);
  position: absolute;
  top: 7vh;
  left: 0;
  color: rgba(255,255,255,.18);
  font: 500 10px var(--mono);
}
.system-step::after {
  content: attr(data-title);
  position: absolute;
  right: 0;
  bottom: 9vh;
  max-width: 20ch;
  color: rgba(255,255,255,.3);
  font: 500 9px/1.45 var(--mono);
  letter-spacing: .07em;
  text-align: right;
  text-transform: uppercase;
}
.system-step.is-active { opacity: 1; transform: translateX(-10px); }
.system-step > span { display: none; }
.system-step h3 {
  max-width: 6ch;
  margin: 0 0 25px;
  font-size: clamp(66px, 8.3vw, 136px);
  line-height: .78;
  letter-spacing: -.095em;
}
.system-step p { max-width: 32rem; }
.system-step ul { max-width: 31rem; margin-top: 36px; gap: 0; }
.system-step li { margin: 0 -1px -1px 0; border-radius: 0; }

/* Manifesto becomes a paced statement instead of a static colour field. */
.manifesto {
  display: grid;
  grid-template-columns: minmax(100px,.3fr) minmax(0,1.7fr);
  align-content: center;
  column-gap: clamp(26px,6vw,110px);
  min-height: 92svh;
  padding-top: 11vw;
  padding-bottom: 11vw;
  background: #e9e7e0;
}
.manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 57%, rgba(238,120,35,.17) 57% 57.25%, transparent 57.25%);
  pointer-events: none;
}
.manifesto-number { position: relative; z-index: 1; align-self: start; margin-top: 16px; }
.manifesto h2 {
  grid-column: 2;
  margin-top: 0;
  max-width: 15ch;
  font-size: clamp(54px, 7.2vw, 122px);
  line-height: .86;
  letter-spacing: -.085em;
}
.manifesto h2 em { color: #c9323c; }
.manifesto > p {
  grid-column: 2;
  justify-self: end;
  width: min(100%, 38rem);
  margin: clamp(42px,7vw,100px) 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(21,23,27,.3);
}
.manifesto-pulse { display: none; }
.manifesto.is-inview h2 { animation: manifesto-rise .9s var(--ease) both; }
.manifesto.is-inview > p { animation: manifesto-rise .8s .18s var(--ease) both; }
.manifesto.is-inview .manifesto-number { animation: manifesto-rise .6s .08s var(--ease) both; }
@keyframes manifesto-rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: translateY(0); } }

/* The two routes gain a clear operating state and preserve their real detail. */
.solutions { padding-top: 12vw; padding-bottom: 12vw; }
.solutions-heading { align-items: start; }
.solution-grid { gap: clamp(18px, 2vw, 32px); grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); }
.solution-card {
  min-height: 0;
  border-top: 1px solid rgba(255,255,255,.32);
  border-radius: 0;
  background: transparent;
  grid-template-rows: auto 0fr;
}
.solution-card.solution-compass { color: #f1efe9; }
.solution-card.solution-department { color: #f1efe9; }
.solution-card::after { display: none; }
.solution-face { min-height: 470px; padding: 28px 0 38px; }
.solution-face::before { content: ''; display: block; width: 11px; height: 11px; margin-bottom: 34px; background: var(--orange); }
.solution-department .solution-face::before { background: #6e8ade; }
.solution-face h3 { margin: 42px 0 22px; font-size: clamp(50px,5.7vw,94px); line-height: .83; }
.solution-face h3 em { color: var(--orange); }
.solution-face > p { min-height: 51px; color: rgba(255,255,255,.68); }
.solution-toggle { min-width: 0; width: 100%; margin-top: 42px; padding-left: 0; border-width: 1px 0; border-radius: 0; color: inherit; }
.solution-toggle:hover { color: var(--orange); }
.solution-details { padding-left: 0; padding-right: 0; }
.solution-card.is-open .solution-details { padding-bottom: 45px; }
.solution-details > ul li { border-color: rgba(255,255,255,.26); }
.solution-note { color: rgba(255,255,255,.64); }
.solution-card .text-link { color: #fff; }

/* Projects: make the full rail reachable; only mobile owns native horizontal scroll. */
@media (min-width: 901px) {
  .works { overflow: visible; }
  .works-window { overflow: visible; }
  .works-track { padding-right: max(var(--page), 8vw); }
  .work-card:last-child { margin-right: 0; }
}

/* Competence is an operable index, not a radial diagram of boxes. */
.competence {
  display: grid;
  grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr);
  align-items: start;
  background: #e8e7e1;
}
.competence-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0;
  min-height: 0;
  margin-top: 0;
  border-top: 1px solid rgba(21,23,27,.32);
  border-bottom: 1px solid rgba(21,23,27,.32);
  place-items: stretch;
}
.competence-map::before, .competence-map::after { display: none; }
.competence-node {
  position: relative;
  inset: auto !important;
  width: auto;
  min-height: 150px;
  padding: 22px 14px 22px 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(21,23,27,.22);
  background: transparent;
  box-shadow: none;
  color: #15171b;
  font-size: clamp(19px,2vw,31px);
  line-height: .93;
  transition: color .35s var(--ease), padding-left .4s var(--ease);
}
.competence-node:nth-of-type(odd) { border-right: 1px solid rgba(21,23,27,.22); padding-right: 22px; }
.competence-node:nth-of-type(even) { padding-left: 22px; }
.competence-node:nth-last-of-type(-n+2) { border-bottom: 0; }
.competence-node span { margin-bottom: 36px; color: var(--orange); }
.competence-node:hover, .competence-node.is-current {
  background: transparent;
  color: #c9323c;
  transform: none;
  padding-left: 14px;
}
.competence-node:nth-of-type(odd):hover, .competence-node:nth-of-type(odd).is-current { padding-left: 0; }
.competence-core {
  grid-column: 1 / -1;
  width: auto;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
  padding: 26px 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #15171b;
}
.competence-core b { color: #c9323c; font-size: clamp(52px,6vw,94px); }
.competence-core p { max-width: 48rem; margin: 12px 0 0; font-size: clamp(14px,1.25vw,18px); }
.values { grid-column: 1 / -1; margin-top: 8px; }
.values span { border-radius: 0; }

@media (max-width: 900px) {
  .system-sticky { min-height: 70svh; }
  .system-step { min-height: 58svh; padding: 68px 0 68px 36px; }
  .system-step::before { top: 70px; }
  .system-step::after { display: none; }
  .system-step.is-active { transform: none; }
  .system-step h3 { font-size: clamp(59px,15vw,83px); }
  .manifesto { display: block; min-height: 0; padding-top: 105px; padding-bottom: 105px; }
  .manifesto::before { background: linear-gradient(135deg, transparent 0 72%, rgba(238,120,35,.22) 72% 72.4%, transparent 72.4%); }
  .manifesto h2 { margin-top: 35px; font-size: clamp(48px,12.4vw,69px); }
  .manifesto > p { width: 100%; margin-top: 42px; }
  .solution-grid { display: block; }
  .solution-card + .solution-card { margin-top: 46px; }
  .solution-face { min-height: 0; padding-bottom: 28px; }
  .solution-face h3 { font-size: clamp(50px,13.2vw,72px); }
  .competence { display: block; }
  .competence-map { margin-top: 48px; grid-template-columns: 1fr; }
  .competence-node, .competence-node:nth-of-type(odd), .competence-node:nth-of-type(even) { min-height: 0; padding: 20px 0; border-right: 0; border-bottom: 1px solid rgba(21,23,27,.22); }
  .competence-node:nth-last-of-type(-n+2) { border-bottom: 1px solid rgba(21,23,27,.22); }
  .competence-node span { display: inline-block; width: 45px; margin: 0; vertical-align: 6px; }
  .competence-node:hover, .competence-node.is-current, .competence-node:nth-of-type(odd):hover, .competence-node:nth-of-type(odd).is-current { padding-left: 10px; }
  .competence-core { padding-top: 24px; }
  .competence-core p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .manifesto.is-inview h2, .manifesto.is-inview > p, .manifesto.is-inview .manifesto-number { animation: none; }
  .system-step, .competence-node, .solution-card { transition: none; }
}
