/* Local homepage polish layered over the captured live release. */

.faq-heading > p:not(.section-eyebrow) {
  font-size: 1rem;
  line-height: 1.75;
}

.faq-list summary strong {
  font-size: 1.125rem;
  line-height: 1.45;
}

.faq-list details > p {
  font-size: 1rem;
  line-height: 1.75;
}

.contact-form label > span,
.form-helper,
.form-notice,
.consent-field span,
.form-error {
  font-size: 0.875rem;
}

.service-panel-intro > span:not(.service-panel-icon),
.service-media-disclosure,
.service-facts li,
.capability-heading > p:not(.section-eyebrow),
.capability-list p,
.capability-condition,
.bespoke-card-copy > p:not(.bespoke-card-kicker),
.material-category p,
.process-rail p {
  font-size: 0.875rem;
}

@media (min-width: 1181px) {
  .main-nav > a {
    font-size: 0.8125rem;
  }
}

@media (max-width: 600px) {
  .process-rail,
  .material-categories {
    padding-bottom: 0.75rem;
    scrollbar-color: var(--orange) rgba(254, 248, 240, 0.2);
    scrollbar-width: thin;
  }

  .process-rail {
    scrollbar-color: var(--orange) var(--line);
  }

  .process-rail::-webkit-scrollbar,
  .material-categories::-webkit-scrollbar {
    display: block;
    height: 0.25rem;
  }

  .process-rail::-webkit-scrollbar-track {
    background: var(--line);
  }

  .material-categories::-webkit-scrollbar-track {
    background: rgba(254, 248, 240, 0.2);
  }

  .process-rail::-webkit-scrollbar-thumb,
  .material-categories::-webkit-scrollbar-thumb {
    background: var(--orange);
  }
}

/* Corporate navigation, responsive rhythm and interaction polish. */
:root {
  --mf-header-height: 76px;
  --mf-control-height: 48px;
  --mf-page-max: 1440px;
}

html {
  scroll-padding-top: calc(var(--mf-header-height) + 24px);
}

body {
  overflow-x: clip;
}

.header-inner {
  width: 100%;
  max-width: var(--mf-page-max);
  margin-inline: auto;
}

.site-header {
  height: var(--mf-header-height);
  background: rgba(13, 37, 61, 0.98);
  border-bottom-color: rgba(254, 248, 240, 0.14);
  box-shadow: 0 10px 32px rgba(4, 22, 38, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  grid-template-columns: minmax(176px, 220px) minmax(0, 1fr) auto;
  gap: clamp(1rem, 2.2vw, 2.5rem);
  padding-inline: clamp(1.25rem, 4vw, 4.5rem);
}

.site-header .brand-link {
  width: clamp(176px, 15vw, 216px);
  min-width: 0;
  margin-left: 0;
}

.main-nav {
  min-width: 0;
  gap: clamp(1rem, 2vw, 1.9rem);
}

.main-nav > a {
  color: var(--ivory);
  font-size: clamp(0.75rem, 0.85vw, 0.84rem);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.6rem;
}

.main-nav > a:hover,
.main-nav > a[aria-current] {
  color: #fff;
  border-color: var(--orange);
}

.header-actions {
  gap: 0.625rem;
}

.language-switch,
.mobile-language-switch {
  display: none !important;
}

.nav-quote.desktop-only {
  min-width: 138px;
  min-height: var(--mf-control-height);
  padding: 0 1.15rem;
  gap: 1rem;
  border-color: var(--orange);
  font-size: 0.8rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.mf-language {
  position: relative;
  z-index: 120;
}

.mf-language-trigger {
  min-width: 76px;
  min-height: var(--mf-control-height);
  padding: 0 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border: 1px solid rgba(254, 248, 240, 0.35);
  border-radius: 3px;
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.035);
  font: 750 0.78rem/1 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.05em;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.mf-language-trigger::after {
  width: 0.42rem;
  height: 0.42rem;
  content: '';
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
  transition: transform 160ms ease;
}

.mf-language.is-open .mf-language-trigger::after {
  transform: translateY(0.12rem) rotate(225deg);
}

.mf-language-trigger:hover,
.mf-language-trigger:focus-visible,
.mf-language.is-open .mf-language-trigger {
  border-color: var(--orange);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mf-language-popover {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: min(248px, calc(100vw - 2rem));
  padding: 0.5rem;
  border: 1px solid #c9d1d5;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(4, 22, 38, 0.22);
}

.mf-language-popover[hidden] {
  display: none;
}

.mf-language-option {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  border: 0;
  border-bottom: 1px solid #e2e7e9;
  border-radius: 0;
  color: var(--navy);
  background: transparent;
  text-align: left;
  font: 650 0.84rem/1.3 'Plus Jakarta Sans', sans-serif;
}

.mf-language-option:last-child {
  border-bottom: 0;
}

.mf-language-option:hover,
.mf-language-option:focus-visible {
  color: var(--navy);
  background: #f1f4f3;
}

.mf-language-option[aria-checked='true'] {
  color: var(--navy);
  background: #eef2f2;
}

.mf-language-option-code {
  color: var(--orange-dark);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mf-language-option-check {
  width: 0.48rem;
  height: 0.48rem;
  background: var(--orange);
  opacity: 0;
}

.mf-language-option[aria-checked='true'] .mf-language-option-check {
  opacity: 1;
}

main :is(h1, h2, h3, h4),
.main-nav a,
.button,
.nav-quote,
.service-tabs strong {
  min-width: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

main p,
main li,
.contact-form label > span {
  text-wrap: pretty;
}

.hero h1 {
  font-size: clamp(3.25rem, 5.7vw, 6rem);
  line-height: 0.96;
}

.hero-lead {
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.72;
}

.responsibility-heading p,
.service-heading > p,
.service-panel-intro > strong,
.service-panel-intro > span,
.planning-preview-grid p,
.faq-heading > p:not(.section-eyebrow),
.faq-list details > p,
.contact-aside > p {
  font-size: clamp(0.96rem, 0.35vw + 0.88rem, 1.04rem);
  line-height: 1.76;
}

.section-eyebrow,
.eyebrow,
.service-panel-intro > p,
.service-panel-media figcaption,
.material-category-index,
.service-heading-meta > span {
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.085em;
}

.service-tabs {
  position: relative;
  grid-template-columns: repeat(7, minmax(10rem, 1fr));
  gap: 0.5rem;
  padding-bottom: 0.7rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--orange) #dfe5e6;
  scrollbar-width: thin;
}

.service-tabs::-webkit-scrollbar {
  display: block;
  height: 0.24rem;
}

.service-tabs::-webkit-scrollbar-track {
  background: #dfe5e6;
}

.service-tabs::-webkit-scrollbar-thumb {
  background: var(--orange);
}

.service-tabs button {
  min-width: 0;
  min-height: 8rem;
  padding: 0.95rem;
  gap: 0.75rem;
  border-right: 1px solid var(--line);
  scroll-snap-align: center;
}

.service-tabs button > span {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  color: var(--orange-dark);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.service-tabs button[aria-selected='true'] > span {
  border-color: var(--orange);
  color: var(--navy);
  background: var(--orange);
}

.service-tabs button > strong {
  max-width: none;
  font-size: clamp(0.8rem, 0.8vw, 0.92rem);
  line-height: 1.4;
  hyphens: auto;
}

.service-progress {
  display: block !important;
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--navy-soft);
  font-size: 0.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

.mf-service-timer {
  width: 100%;
  max-width: var(--mf-page-max);
  height: 2px;
  margin: 0.15rem auto clamp(1.5rem, 3vw, 2.5rem);
  padding-inline: var(--gutter);
  overflow: hidden;
}

.mf-service-timer-track {
  height: 100%;
  background: #dfe5e6;
  overflow: hidden;
}

.mf-service-timer-bar {
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
}

.mf-service-timer.is-running .mf-service-timer-bar {
  animation: mf-service-autoplay 7s linear forwards;
}

.mf-service-timer.is-paused .mf-service-timer-bar {
  animation-play-state: paused;
}

@keyframes mf-service-autoplay {
  to { transform: scaleX(1); }
}

.service-panel {
  min-width: 0;
}

.service-panel > * {
  min-width: 0;
}

.service-panel-media {
  position: relative;
}

.service-panel-number {
  width: 3.5rem;
  height: 3.5rem;
  display: grid !important;
  place-items: center;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.responsibility-points li > span,
.process-rail li > span,
.planning-preview-grid article > span,
.faq-list summary > span,
.service-fact-index,
.material-category-index {
  font-size: 0.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.process-rail li > span,
.responsibility-points li > span {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
}

.faq-list summary {
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
}

.faq-list summary > span {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid #d5dcdf;
}

.planning-preview-grid article > span {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
}

@media (max-width: 1180px) {
  :root {
    --mf-header-height: 72px;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .main-nav {
    inset: var(--mf-header-height) 0 auto;
    height: calc(100dvh - var(--mf-header-height));
    padding: 1.1rem var(--gutter) 2rem;
    background: var(--navy);
  }

  .main-nav > a {
    padding: 1.2rem 0;
    color: var(--ivory);
    border-bottom-color: rgba(254, 248, 240, 0.16);
    font-size: clamp(1.15rem, 3vw, 1.5rem);
  }

  .main-nav .nav-quote {
    min-height: 52px;
    margin-top: 1.25rem;
  }

  .menu-toggle {
    width: var(--mf-control-height);
    height: var(--mf-control-height);
    color: var(--ivory);
    border-color: rgba(254, 248, 240, 0.35);
    background: rgba(255, 255, 255, 0.035);
  }

  .nav-quote.desktop-only {
    display: none !important;
  }

  .service-tabs {
    grid-template-columns: repeat(7, minmax(10.5rem, 1fr));
    scroll-snap-type: inline mandatory;
  }
}

@media (max-width: 860px) {
  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.7rem, 10.5vw, 4.35rem);
    line-height: 0.98;
  }

  .service-heading h2,
  .bespoke-copy h2,
  .materials-copy h2,
  .process-section > h2,
  .applications-copy h2 {
    font-size: clamp(2.25rem, 8.5vw, 3.4rem);
    line-height: 1.05;
  }

  .service-panel-number {
    top: 1rem;
    left: 1rem;
  }
}

@media (max-width: 600px) {
  :root {
    --mf-header-height: 68px;
    --mf-control-height: 44px;
  }

  .header-inner {
    padding-inline: 1rem;
  }

  .site-header .brand-link {
    width: clamp(145px, 44vw, 172px);
  }

  .mf-language-trigger {
    min-width: 58px;
    padding-inline: 0.65rem;
  }

  .mf-language-trigger::after {
    width: 0.36rem;
    height: 0.36rem;
  }

  .mf-language-popover {
    position: fixed;
    top: calc(var(--mf-header-height) + 0.5rem);
    right: 1rem;
  }

  .menu-toggle {
    width: var(--mf-control-height);
    height: var(--mf-control-height);
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(2.4rem, 11vw, 3.15rem);
  }

  .hero-lead {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .button,
  .nav-quote {
    min-height: 50px;
    padding-inline: 1rem;
    gap: 0.85rem;
  }

  .service-tabs {
    margin-right: calc(-1 * var(--gutter));
    padding-right: var(--gutter);
    grid-template-columns: repeat(7, minmax(10rem, 76vw));
  }

  .service-tabs button {
    min-height: 7.25rem;
  }

  .service-progress {
    margin-top: 1.5rem;
  }

  .mf-service-timer {
    margin-bottom: 1.5rem;
  }

  .service-panel-picture {
    height: 250px;
  }

  .service-panel-number {
    width: 3rem;
    height: 3rem;
  }

  .service-panel-intro h3 {
    font-size: clamp(1.65rem, 8vw, 2rem);
  }

  .process-rail li {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }

  .process-rail p {
    grid-column: 2;
    font-size: 0.95rem;
  }

  .faq-list summary {
    grid-template-columns: 2.4rem minmax(0, 1fr) auto;
    gap: 0.75rem;
  }

  .faq-list summary strong {
    font-size: 1rem;
  }
}

@media (max-width: 370px) {
  .site-header .brand-link {
    width: 136px;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .mf-language-trigger {
    min-width: 52px;
  }
}

/* Keep desktop typography measured and readable at real browser widths. */
@media (min-width: 861px) {
  .hero h1 {
    max-width: min(100%, 13.5ch);
    font-size: clamp(3.4rem, 4.8vw, 4.7rem);
    line-height: 0.99;
    letter-spacing: -0.048em;
  }

  .responsibility-heading h2,
  .service-heading h2,
  .bespoke-copy h2,
  .materials-copy h2,
  .process-section > h2,
  .story-copy h2,
  .applications-copy h2,
  #planning-title,
  .faq-heading h2,
  .contact-aside h2 {
    font-size: clamp(2.625rem, 3.6vw, 3.75rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
  }

  .bespoke-intro {
    grid-template-columns: minmax(22rem, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  .materials-copy {
    grid-column: 1 / 7;
    padding-right: clamp(1rem, 2.5vw, 2.5rem);
  }

  .materials-media {
    grid-column: 7 / 13;
  }

  .contact-section {
    grid-template-columns: minmax(23rem, 0.84fr) minmax(0, 1.16fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mf-service-timer {
    display: none;
  }

  .mf-language-trigger,
  .mf-language-trigger::after {
    transition: none;
  }
}
