/* Requested feedback: four strengths, a single team photograph and compact sections. */
section.values.ml-values-restored {
  padding-block: clamp(36px, 5vh, 64px);
  background: #f9f9fb;
}
.ml-values-restored .ml-val-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
section.values.ml-values-restored .ml-val-item { min-width: 0; }
section.values.ml-values-restored .ml-val-card {
  min-height: 166px;
  padding: 26px 34px;
  border-radius: 36px;
  gap: 22px;
  align-items: center;
}
section.values.ml-values-restored .ml-val-txt-box { min-width: 0; }
section.values.ml-values-restored .ml-val-tit {
  font-size: clamp(20px, 1.65vw, 27px);
  line-height: 1.35;
}
section.values.ml-values-restored .ml-val-txt {
  margin-top: 12px;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
  word-break: keep-all;
}
section.values.ml-values-restored .ml-val-icon {
  position: relative;
  right: auto;
  bottom: auto;
  margin: 0;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
}
section.values.ml-values-restored .ml-val-icon-img { width: 68px; height: 68px; }

/* One shared work scene, with all six areas of expertise remaining visible. */
#people .ml-team-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 3.5vw, 60px);
  margin-top: clamp(28px, 3.5vh, 42px);
}
#people .ml-team-overview-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  background: #eeedf0;
}
#people .ml-team-overview-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
#people .ml-team-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(22px, 2.5vw, 38px);
  row-gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#people .ml-team-specialist { padding-top: 13px; border-top: 1px solid #dfdfe4; min-width: 0; }
#people .ml-team-role { font-size: clamp(18px, 1.35vw, 23px); }
#people .ml-team-desc { font-size: clamp(13.5px, .98vw, 15.5px); line-height: 1.6; margin-top: 6px; }
#people .ml-team-en { color: #087f80; font-size: 9px; margin-bottom: 5px; }

/* Desktop density follows the requested 90% feel without browser zoom or clipped content. */
#people .ml-people-lead { max-width: 32em; text-wrap: pretty; }
#contact .interest-picker { width: 100%; min-width: 0; color: white; }
#contact .interest-picker summary {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  align-items: baseline;
  gap: 20px;
  list-style: none;
  font-size: 15px;
  cursor: pointer;
}
#contact .interest-picker summary::-webkit-details-marker { display: none; }
#contact .interest-selection {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  min-height: 44px;
  border-bottom: 1px solid white;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
#contact .interest-selection small { margin-left: auto; color: #a2d4ce; font-size: 12px; white-space: nowrap; }
#contact .interest-selection::after {
  content: '';
  flex: 0 0 7px;
  height: 7px;
  border: solid #c4e4df;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
#contact .interest-picker[open] .interest-selection::after { transform: translateY(2px) rotate(225deg); }
#contact .interest-picker summary:focus-visible,
#contact .interest-picker label:has(input:focus-visible) { outline: 2px solid #83e4d6; outline-offset: 2px; }
#contact .interest-picker fieldset {
  margin: 8px 0 10px;
  padding: 12px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px;
  border: 1px solid #52716e;
  border-radius: 8px;
}
#contact .interest-picker legend { padding: 0 6px; color: #c6dfdc; font-size: 13px; }
#contact .interest-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}
#contact .interest-picker label:has(input:checked) { background: #214743; }
#contact .interest-picker input { width: 16px; height: 16px; flex: none; margin: 0; accent-color: #77dbca; }
@media (max-width: 768px) {
  #contact .interest-picker { margin-block: 16px; }
  #contact .interest-picker summary { grid-template-columns: 1fr; gap: 5px; }
  #contact .interest-picker label { padding-inline: 4px; min-height: 44px; }
}
@media (min-width: 1025px) {
  #industry.ml-industry-section,
  #service.ml-service-section,
  #people.ml-people-renewed,
  #clients.partnership-section { padding-block: clamp(38px, 5.5vh, 66px); }
  #industry.ml-industry-section .ml-ind-title,
  #service.ml-service-section .ml-svc-title,
  #people.ml-people-renewed .ml-people-title,
  #insight.ml-insight-section .ml-ins-title {
    font-size: clamp(26px, 2.79vw, 41.4px);
  }
  #industry.ml-industry-section .ml-ind-lead,
  #service.ml-service-section .ml-svc-lead,
  #people.ml-people-renewed .ml-people-lead,
  #insight.ml-insight-section .ml-ins-lead {
    font-size: clamp(16px, 1.04vw, 18px);
    line-height: 1.65;
  }
  #industry.ml-industry-section .ml-ind-header,
  #service.ml-service-section .ml-svc-header { margin-bottom: clamp(28px, 4vh, 46px); }
  #industry.ml-industry-section .ml-ind-inner { height: clamp(360px, 51vh, 560px); }
  #industry.ml-industry-section .ml-ind-txt-box { padding: 30px 28px; }
  #service.ml-service-section { --ml-spv: 4.65; }
  #service.ml-service-section .ml-card-overlay { padding: 24px 21px; }
  #service.ml-service-section .ml-card-ko { font-size: clamp(18px, 1.35vw, 24px); }
  #people.ml-people-renewed .ml-people-shell { padding-bottom: 0; }
  #people.ml-people-renewed .ml-people-title { font-size: clamp(26px, 2.65vw, 40px); }
  #people .ml-team-roles { row-gap: clamp(14px, 2vh, 22px); }
  #insight.ml-insight-section { min-height: calc(100svh - 78px); }
  #insight.ml-insight-section .ml-ins-inner {
    padding-block: clamp(40px, 6vh, 68px);
  }
  #insight.ml-insight-section .ml-ins-header { margin-bottom: clamp(44px, 8vh, 90px); }
  #insight.ml-insight-section .ml-ins-card-body {
    min-height: clamp(250px, 28vh, 300px);
    padding: 26px;
  }
  #insight.ml-insight-section .ml-ins-card-tit { font-size: clamp(19px, 1.22vw, 23.4px); }
  #insight.ml-insight-section .ml-ins-card-txt { font-size: 15px; }
  #insight.ml-insight-section .ml-ins-cat { font-size: 15px; }
  #clients .partnership-title { font-size: clamp(26px, 2.79vw, 39.6px); }
  .partnership-copy p { font-size: clamp(14px, 1.04vw, 16.2px); line-height: 1.72; }
  .partnership-art img { height: clamp(240px, 32vh, 360px); aspect-ratio: auto; object-position: 50% 0%; }
  #clients .partnership-directory-title { margin-top: clamp(28px, 4vh, 46px); font-size: 26px; }
  .partners-directory { margin-top: 24px; gap: 12px; }
  .partners-directory .ci-tile { min-height: 48px; }

  #contact.section.contact { padding-block: clamp(24px, 3.5vh, 38px); }
  #contact.section.contact .contact-info h2 { font-size: clamp(25px, 2.52vw, 38.7px); }
  #contact.section.contact .contact-form { margin-right: 40px; }
  #contact.section.contact .form-field > label { font-size: 15px; }
  #contact.section.contact .form-field > input,
  #contact.section.contact .form-field > select { height: 40px; min-height: 40px; font-size: 15px; }
  #contact.section.contact .form-field.is-area { margin-top: 12px; }
  #contact.section.contact .form-field > textarea { min-height: 92px; height: 92px; font-size: 15px; resize: vertical; }
  #contact.section.contact .privacy-area { margin-top: 12px; padding-top: 10px; }
  #contact.section.contact .privacy-title-row { margin-bottom: 7px; }
  #contact.section.contact .privacy-scroll { height: 68px; }
  #contact.section.contact .privacy-scroll.is-expanded { height: auto; }
  #contact.section.contact .privacy-check { margin-top: 8px; font-size: 12.5px; }
  #contact.section.contact .privacy-expand { min-height: 28px; font-size: 12px; }
  #contact.section.contact .contact-submit { height: 44px; min-height: 44px; margin-top: 10px; font-size: 15px; }
  #contact.section.contact .contact-form-feedback { margin-top: 7px; font-size: 12px; }
  #contact.section.contact .contact-demo-warning { font-size: 11px; }
  #contact.section.contact .contact-company dt,
  #contact.section.contact .contact-company dd { font-size: 15px; }
}

@media (max-width: 1024px) {
  #people.ml-people-renewed { padding-top: 64px; }
  #people.ml-people-renewed .ml-people-shell { padding-bottom: 64px; }
  #people .ml-team-overview { grid-template-columns: 1fr; gap: 28px; }
  #people .ml-team-overview-photo { aspect-ratio: 16 / 9; }
  #people .ml-team-roles { row-gap: 24px; }
  #service.ml-service-section { padding-block: 64px; }
  #insight.ml-insight-section .ml-ins-inner { padding-block: 68px; }
  #insight.ml-insight-section .ml-ins-header { margin-bottom: 44px; }
  #contact.section.contact .wrap.contact-layout { gap: 30px; }
}
@media (max-width: 600px) {
  section.values.ml-values-restored { padding-block: 28px; }
  .ml-values-restored .ml-val-grid { gap: 12px; }
  section.values.ml-values-restored .ml-val-card {
    min-height: 0;
    padding: 19px 16px;
    gap: 14px;
    border-radius: 24px;
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: flex-end;
  }
  section.values.ml-values-restored .ml-val-icon,
  section.values.ml-values-restored .ml-val-icon-img { width: 38px; height: 38px; flex-basis: 38px; }
  section.values.ml-values-restored .ml-val-tit { font-size: 17px; }
  section.values.ml-values-restored .ml-val-txt { font-size: 13px; line-height: 1.6; margin-top: 9px; }
  #people .ml-team-roles { column-gap: 18px; }
  #people .ml-team-role { font-size: 17px; }
  #people .ml-team-desc { font-size: 13.5px; }
  #people .ml-team-en { font-size: 8px; letter-spacing: .05em; }
}

/* Use the horizontal space of a landscape tablet before stacking for phones. */
@media (min-width: 960px) and (max-width: 1024px) and (orientation: landscape) {
  #industry.ml-industry-section,
  #service.ml-service-section,
  #people.ml-people-renewed,
  #clients.partnership-section { padding-block: clamp(30px, 4.5svh, 46px); }

  #industry .ml-ind-header,
  #service .ml-svc-header,
  #people .ml-people-head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }
  #industry.ml-industry-section .ml-ind-header,
  #service.ml-service-section .ml-svc-header { margin-bottom: 28px; }
  #industry.ml-industry-section .ml-ind-title,
  #service.ml-service-section .ml-svc-title,
  #people.ml-people-renewed .ml-people-title { font-size: clamp(26px, 2.9vw, 32px); }
  #industry.ml-industry-section .ml-ind-lead,
  #service.ml-service-section .ml-svc-lead,
  #people.ml-people-renewed .ml-people-lead { font-size: 16px; line-height: 1.6; }
  #industry.ml-industry-section .ml-ind-inner { height: clamp(300px, 48svh, 420px); }
  #industry.ml-industry-section .ml-ind-txt-box { padding: 24px; }
  #service.ml-service-section { --ml-spv: 3.25; --ml-gaps-visible: 3; }
  #service.ml-service-section .ml-card-overlay { padding: 22px; }
  #people.ml-people-renewed .ml-people-shell { padding-bottom: 0; }
  #people .ml-team-overview { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px; }
  #people .ml-team-overview-photo { aspect-ratio: 4 / 3; }
  #people .ml-team-roles { gap: 14px 20px; }
  #people .ml-team-desc { font-size: 14px; }
  #clients .partnership-art img { height: clamp(220px, 32svh, 270px); aspect-ratio: auto; }
  #clients .partnership-directory-title { margin-top: 28px; }
  #clients .partners-directory { margin-top: 22px; gap: 10px; }
}

/* The form keeps its reading size and grows when services or privacy details open. */
@media (min-width: 960px) and (max-height: 850px) and (orientation: landscape) {
  #contact.section.contact {
    --inquiry-label: clamp(152px, 11vw, 164px);
    --inquiry-gap: 14px;
    padding-block: clamp(16px, 2.5svh, 21px);
  }
  #contact.section.contact .wrap.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(28px, 4vw, 58px);
  }
  #contact.section.contact .contact-info {
    display: flex;
    min-width: 0;
    justify-content: flex-start;
  }
  #contact.section.contact .contact-info h2 { font-size: clamp(25px, 2.52vw, 38px); }
  #contact.section.contact .contact-info > .lead { margin-bottom: 16px; }
  #contact.section.contact .contact-info .contact-company {
    padding-top: 24px;
    margin-block: auto 0;
    border-top: 0;
  }
  #contact.section.contact .contact-company .company-details { gap: 10px; }
  #contact.section.contact .contact-company .company-details > div { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; }
  #contact.section.contact .contact-form { width: 100%; min-width: 0; max-width: none; margin: 0; }
  #contact.section.contact .form-field,
  #contact.section.contact .interest-picker summary {
    display: grid;
    grid-template-columns: var(--inquiry-label) minmax(0, 1fr);
    gap: var(--inquiry-gap);
  }
  #contact.section.contact .form-field > label { width: auto; font-size: 15px; }
  #contact.section.contact .form-field > input,
  #contact.section.contact .form-field > textarea {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    max-width: none;
    font-size: 15px;
  }
  #contact.section.contact .form-field > input { height: 40px; min-height: 40px; }
  #contact.section.contact .form-field.is-area { margin-top: 8px; }
  #contact.section.contact .form-field > textarea { min-height: 78px; height: 78px; }
  #contact.section.contact .privacy-area,
  #contact.section.contact .contact-submit {
    width: calc(100% - var(--inquiry-label) - var(--inquiry-gap));
    max-width: none;
    margin-left: auto;
  }
  #contact.section.contact .privacy-area { margin-top: 8px; padding-top: 8px; }
  #contact.section.contact .privacy-title-row { margin-bottom: 6px; }
  #contact.section.contact .privacy-scroll { height: 68px; }
  #contact.section.contact .privacy-scroll.is-expanded { height: auto; }
  #contact.section.contact .privacy-check { margin-top: 6px; }
  #contact.section.contact .privacy-expand { min-height: 28px; }
  #contact.section.contact .contact-submit { height: 44px; min-height: 44px; margin-top: 8px; }
  #contact.section.contact .contact-form-feedback,
  #contact.section.contact .contact-demo-warning {
    width: 100%;
    max-width: none;
    margin: 5px 0 0;
    text-align: right;
  }
}

@media (min-width: 960px) {
  #values .ml-val-sentence { display: block; }
}

/* Ordinary chapters share the space between the fixed menu and the viewport edge. */
#home {
  --chapter-header: 78px;
  --chapter-height: calc(100svh - var(--chapter-header));
  --chapter-edge: clamp(112px, 15svh, 184px);
  --chapter-content-gap: clamp(36px, 5.5svh, 68px);
}
@media (max-width: 1120px) {
  #home { --chapter-header: 66px; --chapter-edge: clamp(88px, 12svh, 148px); }
}
@media (max-width: 680px) {
  #home { --chapter-header: 60px; --chapter-edge: clamp(68px, 10svh, 96px); }
}
@media (max-height: 540px) and (orientation: landscape) {
  #home { --chapter-edge: clamp(48px, 12svh, 64px); }
}

#home > section[id],
#home > #contact,
#home #about-medal {
  scroll-margin-top: var(--chapter-header);
}
.ml-about-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  scroll-margin-top: var(--chapter-header);
}
.ml-hero-about-pin[data-about-motion] > .ml-about-anchor {
  top: calc(100% - 100svh);
  scroll-margin-top: 0;
}
#home > :is(#values, #industry, #service, #people, #insight, #clients, #contact) {
  box-sizing: border-box;
  min-height: var(--chapter-height);
  padding-block: var(--chapter-edge);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* The outer chapter owns the gutters; full-width media stays inside its own shell. */
#home #people .ml-people-shell { padding-block: 0; }
#home #insight .ml-ins-inner { padding-block: 0; }
#home #ml-strategy-bridge {
  height: max(300px, var(--chapter-height));
}

/* Keep the November 18 scroll distance and stage framing when motion is enabled. */
#home #ml-strategy-bridge[data-scroll-fill] {
  height: 310vh;
  scroll-margin-top: 0;
}
#ml-strategy-bridge[data-scroll-fill] .ml-bridge-stage {
  position: sticky;
  top: 0;
  height: 100vh;
}
#ml-strategy-bridge[data-scroll-fill] .ml-bridge-glow {
  bottom: -30vh;
  height: 130vh;
}
#ml-strategy-bridge[data-scroll-fill] .ml-bridge-tit {
  top: calc(50% + 50px);
}
@media (max-width: 768px) {
  #home #ml-strategy-bridge[data-scroll-fill] { height: 260vh; }
  #ml-strategy-bridge[data-scroll-fill] .ml-bridge-tit { top: calc(50% + 34px); }
}

#home .ml-hero-about-pin:not([data-about-motion]) #about-medal {
  box-sizing: border-box;
  min-height: var(--chapter-height);
  padding-block: var(--chapter-edge);
}

@media (min-width: 1025px), (min-width: 960px) and (orientation: landscape) {
  #industry.ml-industry-section .ml-ind-header,
  #service.ml-service-section .ml-svc-header { margin-bottom: var(--chapter-content-gap); }
  #industry.ml-industry-section .ml-ind-inner { height: clamp(335px, 54svh, 630px); }
  #service.ml-service-section .ml-svc-card { min-height: clamp(295px, 47svh, 535px); }
  #people .ml-team-overview { margin-top: var(--chapter-content-gap); }
  #people .ml-team-overview-photo {
    height: clamp(305px, 52svh, 600px);
    aspect-ratio: auto;
  }
  #people .ml-team-roles { row-gap: clamp(16px, 3svh, 36px); }
  #insight.ml-insight-section .ml-ins-header { margin-bottom: clamp(48px, 8svh, 96px); }
  #insight.ml-insight-section .ml-ins-card-body { min-height: clamp(275px, 35svh, 400px); }
  #clients.partnership-section .partnership-art img { height: clamp(240px, 40svh, 470px); }
  #clients .partnership-directory-title { margin-top: var(--chapter-content-gap); }
}

@media (min-width: 960px) and (max-width: 1024px) and (orientation: landscape) {
  #industry.ml-industry-section .ml-ind-inner { height: clamp(330px, 52svh, 460px); }
  #people .ml-team-overview-photo { height: clamp(310px, 50svh, 420px); }
  #clients.partnership-section .partnership-art img { height: clamp(235px, 36svh, 310px); }
}

@media (max-width: 600px) {
  section.values.ml-values-restored .ml-val-grid { grid-template-columns: 1fr; }
  section.values.ml-values-restored .ml-val-card {
    position: relative;
    display: block;
    padding: 22px;
  }
  section.values.ml-values-restored .ml-val-tit { padding-right: 46px; min-height: 32px; }
  section.values.ml-values-restored .ml-val-icon {
    position: absolute;
    inset: 16px 20px auto auto;
  }
  section.values.ml-values-restored .ml-val-txt {
    margin-top: 7px;
    font-size: 14px;
  }
  #industry.ml-industry-section .ml-ind-header { margin-bottom: 38px; }
}
