/* Shared brand typography. Keep the display hierarchy and a readable text floor.
   Keep the photographic crop unchanged: the point-cloud registration uses it. */
:root {
  --matsu-display: clamp(40px, 5.3vw, 78px);
  --matsu-ship-clearance: 28px;
  --matsu-section: clamp(30px, 2.8vw, 40px);
  --matsu-panel: 24px;
  --matsu-body: 17px;
  --matsu-ui: 14px;
  --matsu-caption: 12px;
  --matsu-leading: 1.65;
}
.matsu-ui-icon { display:inline-block; width:1em; height:1em; flex-shrink:0; vertical-align:-.125em; }
html:root body,
html:root body :is(.matsu-publication,.fleet-preview,.workflow-showcase,.gateway-section,.competitor-analysis,.industry-evidence,.product-resources,.passport-section,.port-arrival,.fm-root) {
  font-family:var(--matsu-font);
  -webkit-font-smoothing:antialiased;
}
html:root body { font-weight:300; letter-spacing:.012em; }
html:root body :is(button,input,select,textarea) { font-family:inherit; }

/* Navigation stays subordinate to the photograph and headline. */
:root .site-header :is(.top-nav a,.header-actions,.header-login,.header-price,.header-demo,.language-menu summary) {
  font-size:var(--matsu-ui); font-weight:300; letter-spacing:.025em;
}
:root .site-header .small-logo { font-size:20px; font-weight:300; letter-spacing:.14em; }
:root .site-header .top-nav { gap:clamp(17px,1.8vw,26px); }
:root .site-header .header-actions { gap:16px; }

/* Anchor the headline above the mast in the unchanged 1638 × 2048 photo.
   With object-position 50% 48%, source y=995 maps to:
   48% of stage height + 11.96 × cover scale. The bottom edge, rather than
   a viewport top estimate, keeps all headline lines clear of the ship. */
.opening-title {
  position:absolute;
  top:auto;
  bottom:calc(52% + var(--matsu-ship-clearance) - max(.73016vw,.58399svh));
  left:var(--gutter); right:var(--gutter);
  max-width:none; text-align:center;
}
.opening h1 {
  max-width:16ch; margin:0 auto; padding:0;
  font-family:var(--matsu-font); font-size:var(--matsu-display); font-weight:300;
  font-synthesis:none;
  line-height:1.13; letter-spacing:.012em; text-wrap:balance; overflow-wrap:break-word;
}
.opening-bottom {
  position:absolute; bottom:7.5%; left:var(--gutter); right:var(--gutter);
  display:flex; justify-content:space-between; align-items:flex-end; gap:48px;
}
.hero-product-copy { min-width:0; max-width:480px; flex:0 1 480px; }
.opening-bottom .hero-product-copy > p {
  margin:0; max-width:45ch; color:#edf5fa;
  font-size:var(--matsu-body); font-weight:300; line-height:1.65; letter-spacing:.018em;
  text-wrap:pretty; text-shadow:0 1px 10px #00192c55;
}
.hero-product-link {
  display:inline-flex; flex:none; align-items:center; gap:22px; min-height:40px;
  pointer-events:auto; color:#edf5fa; border-bottom:1px solid #ffffff50;
  font-size:var(--matsu-ui); font-weight:300; line-height:1.5; letter-spacing:.035em;
}
.hero-product-link:hover { color:#fff; border-color:#fff; }
.hero-product-link:focus-visible { outline:2px solid #fff; outline-offset:5px; }

/* The same hierarchy and column ratio across the editorial sections. */
.matsu-publication { --content-gutter:max(24px,calc((100vw - 1240px)/2)); }
:root .matsu-publication > .competitor-analysis { padding-inline:var(--content-gutter); }
:root .matsu-publication :is(.fleet-preview-heading,.wf-section-heading,.gateway-heading,.comparison-heading,.industry-section-heading) {
  width:100%; max-width:1240px; margin-inline:auto;
  grid-template-columns:minmax(0,1.618fr) minmax(0,1fr);
  gap:16px clamp(28px,4vw,64px);
  align-items:end;
}
:root .matsu-publication :is(.fleet-preview-heading,.wf-section-heading,.gateway-heading,.comparison-heading,.industry-section-heading,.resource-heading) h2 {
  font-size:var(--matsu-section); font-weight:300; line-height:1.16; letter-spacing:.006em;
  text-wrap:balance;
}
:root .matsu-publication :is(.fleet-preview-heading,.wf-heading-detail,.gateway-heading,.comparison-heading,.industry-section-heading) > p,
:root .matsu-publication .fleet-preview-heading > div > p {
  font-size:var(--matsu-body); font-weight:300; line-height:var(--matsu-leading); letter-spacing:.012em;
}
:root .matsu-publication :is(.eyebrow,.resource-kicker,.comparison-label) {
  font-size:var(--matsu-caption); font-weight:300; line-height:1.5; letter-spacing:.065em;
}
:root .matsu-publication :is(.industry-card h3,.resource-row h3,.wf-panel-intro h3) {
  font-size:20px; font-weight:300; line-height:1.4; letter-spacing:.008em;
}
:root .matsu-publication :is(.fs-page-heading h3,.gateway-detail h3) {
  font-size:var(--matsu-panel); font-weight:300; line-height:1.3; letter-spacing:.008em;
}
:root .matsu-publication :is(.industry-summary,.industry-card-detail p,.resource-row p,.comparison-baseline p,.comparison-dossier>p,.comparison-dossier-grid p,.comparison-dossier li,.comparison-method p,.wf-panel-intro p,.fs-assessment) {
  font-size:16px; line-height:var(--matsu-leading);
}
:root .matsu-publication :is(.industry-summary,.resource-row p,.comparison-dossier>p) { font-weight:300; }

/* Operational data shares the same Light weight as the rest of the site. */
:root .matsu-publication :is(.comparison-name,.comparison-table th,.comparison-dossier h3,.comparison-filters button,.comparison-pagination button,.fs-panel-heading h4,.fs-vessel-name,.fs-detail-heading h5,.connection-list-label,.gateway-step strong) {
  font-weight:300;
}
:root .matsu-publication .comparison-baseline h3 { font-weight:300; font-size:24px; letter-spacing:.025em; }
:root .matsu-publication .comparison-row :is(td,th) { font-size:14px; line-height:1.65; }
:root .matsu-publication .comparison-contrast { font-size:14px!important; }
:root .matsu-publication .comparison-name { font-size:14px; }
:root .matsu-publication :is(.wf-particulars,.wf-record-table,.wf-activity-entry p,.fs-evidence-row p,.fs-requirement,.fs-vessel-name,.fs-panel-heading h4,.fs-page-heading p,.fs-vessel-heading p,.comparison-filters button,.comparison-pagination button,.comparison-method summary,.comparison-sources a,.comparison-baseline a,.comparison-empty,.comparison-empty button,.fs-connect,.wf-step strong,.wf-source-link,.wf-record-footer a,.connection-technical-link,.industry-card-detail summary,.industry-card-links a,.industry-actions a) {
  font-size:14px; line-height:1.6;
}
:root .matsu-publication .fleet-showcase :is(.fs-sidebar nav a,.fleet-open-link) { font-size:14px; line-height:1.5; }
:root .matsu-publication :is(.comparison-group,.comparison-table thead th,.comparison-dossier h3,.comparison-sources>span,.comparison-pagination p,.fs-vessel-meta,.fs-vessel-open,.fs-requirement-status,.fs-status,.fs-list-columns,.fs-metrics span,.fs-evidence-row>span,.fs-evidence-row small,.fs-preview-label,.fs-map-caption,.fs-panel-heading>span,.fs-workspace-name>span,.wf-field-label,.wf-record-table th,.wf-record-table td:first-child>span,.wf-inline-status,.wf-activity-entry time,.wf-record-footer,.connection-preview-label,.connection-list-label,.industry-dates) {
  font-size:var(--matsu-caption); line-height:1.6;
}
:root .matsu-publication :is(.fs-score-note,.fleet-preview-note,.wf-panel-note,.wf-footnote p,.industry-disclaimer,.fs-sidebar>p) { font-size:13px; line-height:1.65; }
:root .matsu-publication :is(.fs-vessel-meta,.fs-vessel-open) { white-space:normal; overflow-wrap:anywhere; }
:root .matsu-publication .fs-requirement { flex-wrap:wrap; gap:4px 12px; }
:root .matsu-publication .fs-requirement-status { white-space:normal; }
:root .matsu-publication .comparison-search input { font-size:16px; }

/* Connector content has its own component cascade; use the same text scale. */
:root .matsu-publication .gateway-section.gateway-showcase #gateway-detail-copy { font-size:16px; line-height:var(--matsu-leading); }
:root .matsu-publication .gateway-section.gateway-showcase :is(#gateway-detail-items li,#gateway-detail-note,.connection-open) { font-size:14px; line-height:1.65; }
:root .matsu-publication .gateway-section.gateway-showcase .connection-type-list .gateway-step span,
:root .matsu-publication .gateway-section.gateway-showcase .gateway-detail-kicker { font-size:var(--matsu-caption); line-height:1.6; }
:root .matsu-publication .gateway-section.gateway-showcase .gateway-bottom p { font-size:13px; line-height:1.65; }
:root .site-footer .footer-base { font-size:12px; }
:root .site-footer .footer-base a { font-size:14px; }

/* Shared marketing pages keep the same Light face and restrained scale. */
:root :is(.careers-intro h1,.approach-intro h1) {
  font-family:var(--matsu-font); font-size:clamp(34px,3.8vw,52px); font-weight:300; line-height:1.15; letter-spacing:.004em;
}
:root :is(.careers-intro p,.approach-lead) { font-size:var(--matsu-body); font-weight:300; line-height:var(--matsu-leading); }
:root :is(.careers-area-title,.approach-section-label h2,.passport-copy h2,.interop-copy h2,.port-heading h2) { font-weight:300; letter-spacing:.008em; }

@media(max-width:1050px) {
  :root .site-header .header-actions { gap:12px; }
}
@media(max-width:760px) {
  :root { --matsu-display:clamp(29px,8.4vw,40px); --matsu-ship-clearance:20px; --matsu-section:30px; --matsu-body:16px; }
  .opening-title { left:6vw; right:6vw; }
  .opening h1 { line-height:1.14; letter-spacing:.008em; }
  .opening-bottom { bottom:max(6%,calc(24px + env(safe-area-inset-bottom))); left:6vw; right:6vw; display:block; }
  .hero-product-copy { max-width:34ch; }
  .opening-bottom .hero-product-copy > p { max-width:34ch; line-height:1.65; }
  .hero-product-link { display:inline-flex; min-height:44px; margin-top:14px; }
  :root .site-header :is(.top-nav a,.header-actions,.header-login,.header-price,.header-demo,.language-menu summary) { font-size:13px; }
  :root .site-header { padding-inline:16px; column-gap:8px; }
  :root .site-header .header-actions { gap:6px; }
  :root .site-header .header-demo { padding-inline:10px; }
  :root .site-header .language-menu summary { min-width:44px; padding-inline:7px; gap:5px; }
  :root .site-header .header-price { display:inline-flex; }
  :root .site-header #menu-toggle { display:none; }
  :root .matsu-publication :is(.fleet-preview-heading,.wf-section-heading,.gateway-heading,.comparison-heading,.industry-section-heading) { grid-template-columns:minmax(0,1fr); gap:16px; }
}
@media(max-height:600px) and (min-width:701px) {
  .opening-bottom { bottom:5%; }
  .hero-product-copy { max-width:48ch; flex-basis:48ch; }
  .opening-bottom .hero-product-copy > p { max-width:48ch; font-size:14px; line-height:1.55; }
}
:root:is(:lang(ar),:lang(he),:lang(hi)) .opening h1 { line-height:1.22; letter-spacing:normal; }
:root:is(:lang(ar),:lang(he),:lang(hi)) :is(.opening-bottom p,.hero-product-link,.matsu-publication h2,.matsu-publication h3,.matsu-publication .eyebrow) { letter-spacing:normal; }

@media(max-width:430px) {
  :root .matsu-publication :is(.fs-page-heading,.wf-record-footer) { flex-wrap:wrap; }
}
@media(max-width:380px) {
  :root .site-header { padding-inline:12px; }
  :root .site-header .small-logo { font-size:18px; }
  :root .site-header .language-menu [data-language-current] {
    position:absolute; width:1px; height:1px; padding:0; margin:-1px;
    overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0;
  }
  :root .site-header .language-panel { width:min(264px,calc(100vw - 96px)); }
}
@media(max-height:500px) and (orientation:landscape) {
  .opening-bottom { bottom:5%; }
  .hero-product-copy { max-width:60ch; }
  .opening-bottom .hero-product-copy > p { max-width:60ch; font-size:14px; line-height:1.5; }
}

@media(max-height:540px) and (orientation:landscape) {
  :root { --matsu-display:clamp(26px,3.6vw,40px); --matsu-ship-clearance:16px; }
}
@media(max-height:600px) and (min-width:701px) {
  :root { --matsu-display:clamp(32px,6vw,58px); }
}

:root:is(:lang(ar),:lang(he),:lang(hi)) body,
:root:is(:lang(ar),:lang(he),:lang(hi)) .site-header :is(a,button,summary) { letter-spacing:normal; }

:root :is(.passport-copy h2,.interop-copy h2,.port-heading h2) { font-size:var(--matsu-section); line-height:1.16; }
