
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/red-hat-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/red-hat-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/red-hat-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/red-hat-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/red-hat-text-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/red-hat-text-latin-700-normal.woff2") format("woff2"); }
:root {
  --navy: #0f2650;
  --navy-2: #173263;
  --blue: #304999;
  --red: #ca414c;
  --teal: #40c5ca;
  --mist: #e7eaef;
  --white: #ffffff;
  --text-on-navy: #c7d2e6;
  --muted: #4b5d7e;
  --rule: #cfd6e2;
  --cold: #2d63c8;
  --power: #c7901f;
  --net: #5d6e8c;
  --container: 1180px;
  --pad: clamp(20px, 4vw, 40px);
  --display: "Red Hat Display", "Gilroy", "Arial", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Red Hat Text", "Arial", sans-serif; font-size: 17px; line-height: 1.65; color: var(--navy); background: var(--white); }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad); }
h1, h2, h3 { font-family: var(--display); margin: 0; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 900; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.005em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 900; line-height: 1.1; text-transform: uppercase; }
h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
p { margin: 0; }

/* Header */
.site-header { position: relative; background: linear-gradient(180deg, #f5f7f9 0%, var(--mist) 100%); overflow: hidden; }
.site-header .lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.header-inner { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 12px 40px; padding-block: 14px 20px; }
.logo { grid-row: 1 / span 2; align-self: center; display: block; width: 245px; }
.logo img, .logo svg { display: block; width: 100%; height: auto; }
.utility { display: flex; justify-content: flex-end; align-items: center; gap: 24px; }
.utility a { font-family: var(--display); font-weight: 800; font-size: 0.9rem; text-transform: uppercase; color: var(--blue); text-decoration: none; }
.langswitch { display: flex; border: 2px solid var(--blue); }
.langswitch button { font-family: var(--display); font-weight: 800; font-size: 0.8rem; background: none; border: 0; color: var(--blue); padding: 3px 10px; cursor: pointer; }
.langswitch button[aria-pressed="true"] { background: var(--blue); color: var(--white); }
.mainnav { background: var(--blue); clip-path: polygon(34px 0, 100% 0, calc(100% - 34px) 100%, 0 100%); padding-inline: 56px; display: flex; justify-content: space-between; gap: 16px; }
.mainnav a { position: relative; font-family: var(--display); font-weight: 800; font-size: 0.93rem; text-transform: uppercase; color: var(--white); text-decoration: none; padding: 22px 6px; white-space: nowrap; }
.mainnav a[aria-current="page"]::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: 0; height: 7px; background: var(--red); }

/* Hero */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero::before { content: ""; position: absolute; top: 0; bottom: 0; left: 44%; width: 30%; background: var(--navy-2); clip-path: polygon(0 0, 55% 0, 100% 100%, 45% 100%); opacity: 0.55; }
.hero-photo { position: absolute; top: 0; right: 0; width: 44vw; height: calc(100% - 150px); clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%); background: #1d3a73 18% center / cover no-repeat; }
.hero-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-text { position: relative; padding-block: 88px 64px; max-width: 690px; }
.hero-text .sub { margin-top: 26px; font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 800; }
.hero-text p.body { margin-top: 22px; color: var(--text-on-navy); max-width: 62ch; }
.contact-band { position: relative; background: var(--teal); width: min(1480px, 60%); clip-path: polygon(0 0, calc(100% - 100px) 0, 100% 100%, 0 100%); padding-block: 26px 28px; }
.contact-band .inner { padding-left: max(var(--pad), calc((100vw - var(--container)) / 2 + var(--pad) + 24px)); padding-right: 110px; }
.contact-band .q { color: var(--navy); }
.contact-band .name { font-family: var(--display); font-weight: 900; font-size: 1.55rem; line-height: 1.2; color: var(--white); }
.contact-band .line { color: var(--white); font-size: 1.2rem; line-height: 1.45; }
.contact-band .person { display: flex; align-items: center; gap: 24px; }
.contact-band .avatar { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 4px solid var(--white); flex: none; background: var(--mist); }
.contact-band a { color: inherit; text-decoration: none; }
.contact-band a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-bottom { height: 80px; }
.redline { height: 8px; background: var(--red); }

/* Sections */
section.block { padding-block: clamp(64px, 8vw, 104px); }
.mist { background: var(--mist); }
.lead { margin-top: 18px; max-width: 64ch; color: var(--muted); font-size: 1.08rem; }

/* Drawing */
.sheet { margin-top: 40px; background: var(--white); border: 2px solid var(--navy); }
.sheet svg { display: block; width: 100%; height: auto; }
svg text { font-family: "Red Hat Text", Arial, sans-serif; fill: var(--navy); }
.lbl { font-size: 13px; fill: var(--muted); }
.eq { font-size: 14px; font-weight: 700; }
.pipe { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pipe.cold { stroke: var(--cold); stroke-width: 4; }
.pipe.warm { stroke: var(--red); stroke-width: 4; }
.pipe.power { stroke: var(--power); stroke-width: 3.5; }
.pipe.net { stroke: var(--net); stroke-width: 2.5; stroke-dasharray: 7 5; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s ease-out forwards; }
.draw.d2 { animation-delay: .3s; } .draw.d3 { animation-delay: .6s; } .draw.d4 { animation-delay: .9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.box { fill: #fff; stroke: var(--navy); stroke-width: 2; }
.leader { stroke: var(--navy); stroke-width: 1.2; }
.tag { cursor: pointer; }
.tag circle { fill: var(--teal); stroke: var(--navy); stroke-width: 2; }
.tag text { font-family: var(--display); font-size: 13px; font-weight: 900; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.tag:hover circle { fill: #86dfe2; }
.tag.is-active circle { fill: var(--navy); }
.tag.is-active text { fill: var(--teal); }
.tag:focus { outline: none; }
.tag:focus-visible circle { stroke-width: 5; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 28px; border-top: 4px solid; display: inline-block; }
.swatch.cold { border-color: var(--cold); } .swatch.warm { border-color: var(--red); } .swatch.power { border-color: var(--power); }
.swatch.net { border-top: 3px dashed var(--net); }
.swatch.scope { width: 16px; height: 16px; border: 2px solid var(--navy); border-radius: 50%; background: var(--teal); }
.explorer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.chip { font: inherit; font-size: 0.92rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; background: var(--white); color: var(--navy); border: 2px solid var(--navy); padding: 5px 12px 5px 5px; cursor: pointer; }
.chip b { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 5px; border-radius: 16px; background: var(--teal); border: 2px solid var(--navy); font-family: var(--display); font-size: 0.72rem; font-weight: 900; }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.readout { background: var(--navy); color: var(--white); padding: 28px 32px; clip-path: polygon(0 0, 100% 0, 100% 100%, 28px 100%); min-height: 210px; align-self: start; position: sticky; top: 24px; }
.readout h3 { font-size: 1.5rem; font-weight: 900; }
.readout p { margin-top: 10px; color: var(--text-on-navy); }
.readout .principal { margin-top: 16px; color: var(--white); }
.readout .principal strong { color: var(--teal); font-family: var(--display); }

/* Inside band */
.inside { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.inside .lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.inside .container { position: relative; }
.inside h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.inside p { margin-top: 22px; max-width: 62ch; color: var(--text-on-navy); font-size: 1.12rem; }
.facts { list-style: none; margin: 44px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.facts li { font-family: var(--display); font-weight: 800; background: var(--blue); padding: 12px 34px 12px 22px; clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%); }

/* Scope table */
table.scope { width: 100%; border-collapse: collapse; margin-top: 40px; }
.scope th { text-align: left; font-family: var(--display); font-weight: 900; font-size: 0.95rem; text-transform: uppercase; color: var(--white); background: var(--blue); padding: 14px 18px; }
.scope td { padding: 18px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.scope tbody tr:nth-child(even) td { background: #f4f6f9; }
.scope td:first-child { font-family: var(--display); font-weight: 800; width: 26%; }
.scope td:last-child { width: 28%; color: var(--muted); }
.scope td.own { color: var(--navy); font-weight: 700; }

/* Pedigree */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 44px; }
.trio > div { background: var(--white); padding: 28px 28px 32px; border-top: 7px solid var(--red); }
.trio p { margin-top: 10px; color: var(--muted); }
.coda { margin-top: 40px; font-family: var(--display); font-weight: 900; font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--blue); }


/* Audiences */
.aud-tabs { display: flex; margin-top: 40px; gap: 0; }
.aud-tabs [role="tab"] {
  position: relative; flex: 1 1 0; font-family: var(--display); font-weight: 900; font-size: 1rem; text-transform: uppercase;
  background: var(--mist); color: var(--navy); border: 0; cursor: pointer; padding: 22px 40px 20px;
  clip-path: polygon(26px 0, 100% 0, calc(100% - 26px) 100%, 0 100%); margin-right: -18px; text-align: center;
}
.aud-tabs [role="tab"]:first-child { clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 0 100%); }
.aud-tabs [role="tab"]:last-child { margin-right: 0; clip-path: polygon(26px 0, 100% 0, 100% 100%, 0 100%); }
.aud-tabs [role="tab"]:hover { background: var(--blue); color: var(--white); }
.aud-tabs [role="tab"][aria-selected="true"] { background: var(--navy); color: var(--white); }
.aud-tabs [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; left: 30px; right: 30px; top: 0; height: 6px; background: var(--red); }
.aud-tabs [role="tab"]:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--teal); }
.aud-panel { position: relative; background: var(--navy); color: var(--white); overflow: hidden; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 20px 56px; padding: 52px 48px 0; }
.aud-panel[hidden] { display: none; }
.aud-panel .lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.aud-intro { position: relative; }
.aud-intro h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 900; text-transform: uppercase; line-height: 1.05; }
.aud-intro p { margin-top: 18px; color: var(--text-on-navy); }
.aud-intro .who { margin-top: 22px; padding-left: 16px; border-left: 4px solid var(--teal); color: var(--white); font-weight: 500; }
ul.offers { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.offers li { position: relative; padding: 18px 48px 20px 0; border-top: 1px solid #2f4677; }
.offers li:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.offers h4 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.offers h4::before { content: ""; width: 16px; height: 10px; background: var(--teal); clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); flex: none; }
.offers p { margin-top: 6px; color: var(--text-on-navy); font-size: 0.97rem; }
.tagjump {
  position: absolute; right: 0; top: 16px; min-width: 36px; height: 36px; padding: 0 6px; border-radius: 18px;
  background: var(--teal); color: var(--navy); border: 2px solid var(--white); font-family: var(--display); font-weight: 900; font-size: 0.72rem; cursor: pointer;
}
.offers li:nth-child(-n+2) .tagjump { top: -2px; }
.tagjump:hover { background: var(--white); }
.aud-strip {
  grid-column: 1 / -1; position: relative; margin: 36px -48px 0; padding: 18px 48px;
  background: var(--teal); color: var(--navy); font-family: var(--display); font-weight: 800; font-size: 1.1rem;
  clip-path: polygon(0 0, calc(100% - 60px) 0, 100% 100%, 0 100%); width: calc(100% + 48px);
}
@media (max-width: 900px) {
  .aud-tabs { flex-direction: column; }
  .aud-tabs [role="tab"], .aud-tabs [role="tab"]:first-child, .aud-tabs [role="tab"]:last-child { clip-path: none; margin-right: 0; text-align: left; padding: 16px 20px; }
  .aud-tabs [role="tab"][aria-selected="true"]::before { left: 0; right: auto; top: 0; bottom: 0; width: 6px; height: auto; }
  .aud-panel { grid-template-columns: minmax(0, 1fr); padding: 32px 22px 0; }
  ul.offers { grid-template-columns: minmax(0, 1fr); }
  .offers li:nth-child(2) { border-top: 1px solid #2f4677; padding-top: 18px; }
  .offers li:nth-child(2) .tagjump { top: 16px; }
  .aud-strip { margin: 24px -22px 0; padding: 16px 64px 16px 22px; width: calc(100% + 44px); clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 100%, 0 100%); }
}

/* Instrumentation */
.brandgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; margin-top: 44px; align-items: stretch; }
.brandpanel { display: flex; flex-direction: column; background: var(--mist); }
.brandpanel header { position: relative; padding: 26px 32px 24px; color: var(--white); }
.brandpanel.pm header { background: var(--navy); }
.brandpanel.bn header { background: var(--blue); }
.brandpanel header::after { content: ""; position: absolute; left: 0; bottom: -7px; height: 7px; width: 42%; background: var(--red); clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
.brandpanel.pm header::after { background: var(--teal); }
.brandpanel .brand { font-family: var(--display); font-weight: 900; font-size: 1.9rem; line-height: 1; letter-spacing: -0.01em; }
.brandpanel .brand .by { font-size: 0.85rem; font-weight: 700; color: #c9d4ee; margin-left: 8px; letter-spacing: 0; }
.brandpanel h3 { margin-top: 10px; font-size: 1.2rem; font-weight: 800; }
.bp-body { padding: 26px 32px 8px; flex: 1; }
.bp-intro { color: var(--muted); }
ul.apps { list-style: none; margin: 20px 0 0; padding: 0; }
.brandpanel.bn ul.apps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; }
.apps li { padding: 16px 0 16px; border-top: 1px solid var(--rule); }
.apps h4 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 1.05rem; }
.apps .prod { margin-top: 2px; font-family: var(--display); font-weight: 800; font-size: 0.9rem; color: var(--blue); }
.brandpanel.pm .apps .prod { color: #1f8f94; }
.apps p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
.apps .prod + p { margin-top: 4px; }
.brandpanel footer { display: flex; align-items: center; gap: 12px; padding: 14px 32px 22px; font-family: var(--display); font-weight: 800; color: var(--navy); }
.brandpanel footer .tagjump { position: static; border-color: var(--navy); }
.instr-strip {
  margin-top: 28px; padding: 18px 90px 18px 32px; background: var(--teal); color: var(--navy);
  font-family: var(--display); font-weight: 800; font-size: 1.1rem; clip-path: polygon(0 0, calc(100% - 60px) 0, 100% 100%, 0 100%);
}
@media (max-width: 1000px) {
  .brandgrid, .brandpanel.bn ul.apps { grid-template-columns: minmax(0, 1fr); }
  .brandpanel header, .bp-body, .brandpanel footer { padding-left: 22px; padding-right: 22px; }
  .instr-strip { padding: 16px 56px 16px 22px; clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 100%, 0 100%); }
}


/* Brand filter */
.brandfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.brandfilter button {
  font-family: var(--display); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; cursor: pointer;
  background: var(--mist); color: var(--navy); border: 0; padding: 10px 26px 10px 18px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.brandfilter button:hover { background: var(--blue); color: var(--white); }
.brandfilter button[aria-pressed="true"] { background: var(--navy); color: var(--white); box-shadow: inset 0 -5px 0 var(--red); }
.tag.dim { opacity: 0.18; }
.tag.portable circle { stroke-dasharray: 5 3; }
.chip.dim { opacity: 0.35; }
.swatch.scope.portable { border-style: dashed; }
.brandjump {
  font-family: var(--display); font-weight: 800; font-size: 0.95rem; cursor: pointer; color: var(--navy);
  background: var(--teal); border: 0; padding: 10px 30px 10px 16px; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.brandjump:hover { background: var(--white); }


/* Standalone site additions */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 16px; }
.logo-text { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 2.3rem; color: var(--blue); letter-spacing: -0.01em; }
.logo-text.light { color: var(--white); font-size: 1.8rem; }
.hero-text .kicker { font-family: var(--display); font-weight: 800; font-size: 1rem; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; letter-spacing: 0.02em; }
.hero-text h1 { max-width: 13ch; }
.hero-text { max-width: min(640px, calc(56vw - 2 * var(--pad))); }
@media (max-width: 900px) { .hero-text { max-width: none; } }
.footer-logo { display: inline-block; width: 190px; margin-bottom: 16px; text-decoration: none; }
.footer-logo img { display: block; width: 100%; height: auto; }
.foot-indutrade { display: block; width: 150px; height: auto; margin-top: 12px; }
body > footer a { color: var(--white); }
body > footer .container.legal { display: block; margin-top: 36px; padding-top: 18px; border-top: 1px solid #2f4677; font-size: 0.85rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Steps */
ol.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; counter-reset: s; }
ol.steps::before { content: ""; position: absolute; left: 24px; right: calc((100% - 96px) / 5 - 24px); top: 22px; border-top: 4px solid var(--red); }
.steps li { position: relative; counter-increment: s; }
.steps li::before { content: counter(s); position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--teal); border: 2px solid var(--navy); font-family: var(--display); font-weight: 900; font-size: 1.1rem; }
.steps h3 { margin-top: 18px; font-size: 1.1rem; }
.steps p { margin-top: 8px; font-size: 0.95rem; color: var(--muted); }

/* Group */
.group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.principals { margin: 0; }
.principals div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.principals div:first-child { border-top: 1px solid var(--rule); }
.principals dt { font-family: var(--display); font-weight: 900; font-size: 1.15rem; color: var(--blue); }
.principals dd { margin: 0; color: var(--muted); }
.principals dt { line-height: 0; }
.plogo { display: block; width: auto; height: auto; max-width: 190px; max-height: 30px; }
.plogo.tall { max-height: 80px; }
.group-logo { display: block; width: 200px; height: auto; margin-top: 32px; }
@media (max-width: 700px) { .principals div { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* Closing CTA */
.closing { background: var(--navy); color: var(--white); padding-top: clamp(64px, 8vw, 96px); }
.closing h2 { max-width: 20ch; }
.closing p { margin-top: 18px; max-width: 60ch; color: var(--text-on-navy); }
.closing .contact-band { margin-top: 48px; }
.closing .contact-band p { margin-top: 0; max-width: none; }

/* Footer */
body > footer { background: var(--navy); color: var(--text-on-navy); padding-block: 56px; font-size: 0.95rem; }
body > footer .container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
body > footer h4 { margin: 0; font-family: var(--display); font-weight: 900; color: var(--white); text-transform: uppercase; font-size: 1rem; }
body > footer .tel { font-family: var(--display); font-weight: 800; color: var(--white); font-size: 1.35rem; text-decoration: none; }
body > footer .tagline { font-family: var(--display); font-weight: 800; color: var(--white); font-size: 1.15rem; line-height: 1.3; }
body > footer p { margin-top: 10px; }

@media (max-width: 1100px) {
  .mainnav { padding-inline: 40px; gap: 8px; }
  .mainnav a { font-size: 0.8rem; }
}
@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr; }
  .logo { grid-row: auto; width: 190px; }
  .utility { justify-content: flex-start; }
  .mainnav { clip-path: none; padding-inline: 16px; flex-wrap: wrap; justify-content: flex-start; }
  .mainnav a { padding: 12px 6px; }
  .hero-photo { position: relative; width: 100%; height: 240px; clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%); }
  .hero::before { display: none; }
  .hero-text { padding-block: 48px 40px; }
  .contact-band { width: 100%; clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 100%, 0 100%); }
  .contact-band .inner { padding-left: var(--pad); padding-right: 64px; }
  .contact-band .person { gap: 16px; }
  .contact-band .avatar { width: 76px; height: 76px; border-width: 3px; }
  .contact-band .line { font-size: 1.05rem; }
  .explorer, .group, .trio, body > footer .container { grid-template-columns: minmax(0, 1fr); }
  .sheet { overflow-x: auto; }
  .sheet svg { min-width: 780px; }

  ol.steps { grid-template-columns: minmax(0, 1fr); }
  ol.steps::before { left: 22px; right: auto; top: 24px; bottom: 24px; border-top: 0; border-left: 4px solid var(--red); }
  .steps li { padding-left: 68px; }
  .steps li::before { position: absolute; left: 0; top: 0; }
  .steps h3 { margin-top: 10px; }
  table.scope, .scope tbody, .scope tr, .scope td { display: block; width: 100% !important; }
  .scope thead { display: none; }
  .scope tr { border-bottom: 1px solid var(--rule); padding: 12px 0; }
  .scope td { border: 0; padding: 2px 0; background: none !important; }
}
@media (prefers-reduced-motion: reduce) { .draw { animation: none; stroke-dashoffset: 0; } }
/* Mobile typography: headings scale with the viewport and never overflow */
h1, h2, h3, h4, .brand, .name { overflow-wrap: break-word; }
p, li, td, dd { overflow-wrap: break-word; }
@media (max-width: 600px) {
  h1 { font-size: clamp(1.6rem, 8.2vw, 2.4rem); line-height: 1.08; }
  .hero-text h1 { max-width: none; }
  .hero-text .kicker { font-size: clamp(0.8rem, 3.6vw, 1rem); }
  h2 { font-size: clamp(1.35rem, 6.4vw, 1.8rem); line-height: 1.12; }
  .inside h2 { font-size: clamp(1.6rem, 7.6vw, 2.2rem); }
  .aud-intro h3 { font-size: clamp(1.3rem, 6vw, 1.7rem); }
  .brandpanel .brand { font-size: clamp(1.4rem, 6.4vw, 1.9rem); }
  .coda { font-size: clamp(1.1rem, 5vw, 1.3rem); }
  .contact-band .name { font-size: clamp(1.2rem, 5.6vw, 1.55rem); }
  .contact-band .line { font-size: clamp(0.9rem, 4.3vw, 1.05rem); }
  .contact-band .q { font-size: 0.95rem; }
}
.contact-band .person > div { min-width: 0; }
@media (max-width: 360px) { .contact-band .avatar { width: 60px; height: 60px; } .contact-band .inner { padding-right: 52px; } }

/* ---- Additions for the multi-page site ---- */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--navy); color: var(--white); padding: 8px 14px; font-family: var(--display); font-weight: 800; }
.skip:focus { left: 8px; }

.langswitch a, .langswitch span { font-family: var(--display); font-weight: 800; font-size: 0.8rem; text-transform: none; color: var(--blue); padding: 3px 10px; text-decoration: none; line-height: 1.5; }
.langswitch [aria-current="true"] { background: var(--blue); color: var(--white); }
.langswitch a:hover { background: var(--mist); }

body > footer .foot-gap { margin-top: 20px; }
body > footer .foot-links a, body > footer a { color: var(--white); }
body > footer .foot-links { margin-top: 18px; line-height: 1.8; }
.foot-indutrade-link { text-decoration: none; }

/* Scope as plain text under the drawing (readable without JavaScript) */
.scope-all { margin-top: 28px; border-top: 2px solid var(--navy); padding-top: 14px; }
.scope-all summary { cursor: pointer; font-family: var(--display); font-weight: 800; color: var(--blue); }
.scope-all dl { margin: 18px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; max-width: 82ch; }
.scope-all dt { font-family: var(--display); font-weight: 800; margin-top: 14px; }
.scope-all dt b { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 5px; margin-right: 8px; border-radius: 12px; background: var(--teal); font-size: 0.72rem; }
.scope-all dd { margin: 0; color: var(--muted); }
.scope-all .dd-by { display: block; margin-top: 2px; color: var(--navy); font-size: 0.92rem; }

/* Guide pages */
.article-hero { background: var(--navy); color: var(--white); padding-block: clamp(40px, 6vw, 72px) clamp(44px, 6vw, 76px); position: relative; overflow: hidden; }
.article-hero::before { content: ""; position: absolute; top: 0; bottom: 0; right: 8%; width: 26%; background: var(--navy-2); clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%); opacity: 0.6; }
.article-hero .container { position: relative; }
.article-hero h1 { text-transform: none; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; letter-spacing: 0; max-width: 26ch; margin-top: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.92rem; color: var(--text-on-navy); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--teal); }
.crumbs a { color: var(--white); text-underline-offset: 3px; }
.article-meta { margin-top: 18px; color: var(--text-on-navy); font-size: 0.95rem; }
.hub-lead { margin-top: 18px; max-width: 66ch; color: var(--text-on-navy); font-size: 1.08rem; }
.hub-lead a { color: var(--white); }

.article-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-block: clamp(40px, 6vw, 72px) clamp(56px, 7vw, 96px); align-items: start; }
.toc { position: sticky; top: 20px; font-size: 0.92rem; border-left: 4px solid var(--red); padding-left: 18px; }
.toc-h { font-family: var(--display); font-weight: 900; margin-bottom: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 6px 0; line-height: 1.35; }
.toc a { color: var(--blue); text-decoration: none; }
.toc a:hover { text-decoration: underline; text-underline-offset: 3px; }

.article { max-width: 72ch; }
.article > * + * { margin-top: 1.1em; }
.article section > * + * { margin-top: 1em; }
.article h2 { text-transform: none; font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.2; font-weight: 900; scroll-margin-top: 20px; }
.article section { margin-top: 2.6em; }
.article section > h2::before { content: ""; display: block; width: 48px; height: 5px; background: var(--red); margin-bottom: 14px; }
.article h3 { font-size: 1.12rem; line-height: 1.35; scroll-margin-top: 20px; }
.article a { color: var(--blue); text-underline-offset: 3px; }
.article ul { margin: 0; padding-left: 1.2em; }
.article li { margin: 0.35em 0; }
.article li::marker { color: var(--red); }
.article strong { font-weight: 700; }

.brief { background: var(--mist); border-left: 8px solid var(--teal); padding: 22px 28px 24px; }
.brief h2 { font-size: 1.05rem; }
.brief p { margin-top: 8px; font-size: 1.08rem; }

.buyer { background: var(--white); border: 2px solid var(--navy); padding: 20px 26px 22px; }
.buyer > h2::before { display: none !important; }
.buyer h2 { font-size: 1.15rem; }

.faq h3 { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 22px; }
.faq h3 + p { margin-top: 8px; }

.readnext ul, .refs ul { list-style: none; padding: 0; }
.readnext li { margin: 0; border-bottom: 1px solid var(--rule); }
.readnext li:first-child { border-top: 1px solid var(--rule); }
.readnext a { display: block; padding: 12px 0; font-family: var(--display); font-weight: 800; text-decoration: none; }
.readnext a:hover { color: var(--red); }
.refs { font-size: 0.95rem; }
.refs li { margin: 6px 0; }

/* Guides hub */
.hub { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 7vw, 96px); max-width: calc(820px + 2 * var(--pad)); margin-inline: 0; }
@media (min-width: 1181px) { .hub { margin-left: calc((100vw - var(--container)) / 2); } }
.hub-pillar { display: block; border: 2px solid var(--navy); border-left: 10px solid var(--teal); padding: 24px 28px; text-decoration: none; }
.hub-pillar:hover { background: var(--mist); }
.hub-kind { display: block; font-size: 0.9rem; color: var(--muted); }
.hub-title { display: block; font-family: var(--display); font-weight: 900; font-size: 1.3rem; line-height: 1.25; color: var(--blue); }
.hub-pillar .hub-title { font-size: 1.6rem; margin-top: 4px; }
.hub-desc { display: block; margin-top: 6px; color: var(--muted); }
.hub-list { list-style: none; margin: 36px 0 0; padding: 0; }
.hub-list li { border-top: 1px solid var(--rule); }
.hub-list li:last-child { border-bottom: 1px solid var(--rule); }
.hub-list a { display: block; padding: 20px 0; text-decoration: none; }
.hub-list a:hover .hub-title { color: var(--red); }

@media (max-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; }
  .article-hero::before { display: none; }
}
@media (max-width: 600px) {
  .article-hero h1 { font-size: clamp(1.6rem, 7.4vw, 2.1rem); }
  .brief, .buyer { padding: 18px 18px 20px; }
}
.intro { margin-top: 1.6em; }
.intro > * + * { margin-top: 1em; }
html[lang="fi"] .hero-text h1 { max-width: 17ch; }
@media (max-width: 900px) { html[lang="fi"] .hero-text h1 { max-width: none; } }

/* About page */
.facts { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 8px 20px; margin: 22px 0 0; }
.facts dt { font-family: var(--display); font-weight: 800; }
.facts dd { margin: 0; }
.people { list-style: none; padding: 0 !important; margin-top: 18px !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.people li { margin: 0 !important; border: 2px solid var(--navy); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.people li::marker { content: none; }
.p-name { font-family: var(--display); font-weight: 900; font-size: 1.15rem; }
.p-title { color: var(--muted); }
.p-line { font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.p-li { margin-top: 6px; font-size: 0.95rem; }
.hub-note { margin-top: 28px; color: var(--muted); max-width: 70ch; }
.brandpanel footer { flex-wrap: wrap; }
.panel-more { flex-basis: 100%; margin-top: 4px; font-family: var(--display); font-weight: 800; color: var(--blue); text-underline-offset: 3px; }
.dd-more { margin-left: 10px; color: var(--blue); }
@media (max-width: 700px) {
  .people { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}

/* Contact cards */
.team-photo { display:block; width:120px; height:120px; object-fit:cover; border-radius:50%; margin-bottom:12px; }
.contact-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin:32px 0; padding:0; list-style:none; }
.contact-card { border:1px solid #d7dce6; padding:28px; background:#fff; min-width:0; }
.contact-card h2 { font-size:1.45rem; margin:12px 0 4px; }
.contact-card p { margin:7px 0; }
.contact-card a { overflow-wrap:anywhere; text-underline-offset:3px; }
.contact-role { color:var(--muted); }
.contact-body { padding-block:40px 64px; }
.contact-actions { display:flex; gap:16px; flex-wrap:wrap; margin:20px 0 32px; }
.contact-actions a { padding:12px 18px; border:2px solid var(--navy); font-weight:700; }
.contact-card a:focus-visible,.contact-actions a:focus-visible { outline:3px solid #ca414c; outline-offset:4px; }
@media(max-width:640px) { .contact-grid { grid-template-columns:1fr; } .contact-card { padding:22px; } }

.enquiry-form{max-width:820px;margin:24px 0 56px}.enquiry-form label{display:block;font-weight:700;margin:0 0 18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.enquiry-form input,.enquiry-form select,.enquiry-form textarea{box-sizing:border-box;display:block;width:100%;padding:12px;border:1px solid #8c99ae;background:white;color:#0f2650;font:inherit;margin-top:7px}.enquiry-form textarea{resize:vertical}.enquiry-form button{padding:14px 24px;background:#0f2650;color:white;border:2px solid #0f2650;font:inherit;font-weight:700;cursor:pointer}.enquiry-form button:disabled{opacity:.6;cursor:wait}.enquiry-form :focus-visible{outline:3px solid #ca414c;outline-offset:3px}.form-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.form-note{font-size:.9rem;color:#536174}#form-status{font-weight:700}@media(max-width:640px){.form-grid{grid-template-columns:1fr}}

#cookie-dialog{width:min(620px,calc(100% - 32px));max-height:85vh;overflow:auto;box-sizing:border-box;border:2px solid #0f2650;padding:28px;background:#fff;color:#0f2650;font-family:var(--text);box-shadow:0 12px 60px #0004}#cookie-dialog::backdrop{background:#10254077}#cookie-dialog h2{font-size:1.5rem;margin:0 0 14px}#cookie-dialog p{line-height:1.55;margin:12px 0}#cookie-dialog summary{cursor:pointer;text-decoration:underline;font-weight:700}#cookie-dialog a{color:#0f2650}.cookie-actions{display:flex;gap:12px;margin-top:24px;flex-wrap:wrap}.cookie-actions button{flex:1;min-width:180px;background:#0f2650;color:#fff;border:2px solid #0f2650;padding:12px 16px;font:inherit;font-weight:700;cursor:pointer}#cookie-dialog :focus-visible{outline:3px solid #ca414c;outline-offset:3px}[data-cookie-settings]{border:0;background:transparent;color:inherit;font:inherit;text-decoration:underline;cursor:pointer;padding:5px} @media(max-width:480px){#cookie-dialog{padding:20px}.cookie-actions{flex-direction:column}}

/* Compact home page: service summaries and routes to detailed content. */
.home-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin:28px 0; }
.home-cards article { padding:24px; border:1px solid var(--rule); border-top:3px solid var(--blue,#304999); }
.home-cards h3 { margin-top:0; }
.home-summary a { font-weight:700; }
.home-note { max-width:850px; }
.home-resources { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:40px; }
.home-contact { display:inline-block; margin-top:12px; padding:12px 18px; background:#fff; color:#243d84; font-weight:700; }
@media(max-width:760px) { .home-cards,.home-resources { grid-template-columns:1fr; gap:20px; } }

/* Services hub: delivery phases and grouped services */
.svc-hub { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 7vw, 96px); }
.svc-hub h2 { text-transform: none; font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.2; }
.svc-phases-lead, .svc-group-lead { margin-top: 8px; color: var(--muted); max-width: 70ch; }
.phases { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.phases li { border-top: 5px solid var(--teal); background: var(--mist); padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.ph-n { font-family: var(--display); font-weight: 900; color: var(--red); }
.ph-name { font-family: var(--display); font-weight: 800; line-height: 1.25; }
.ph-text { font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
.svc-group { margin-top: clamp(40px, 5vw, 64px); max-width: 860px; }
.svc-group .hub-list { margin-top: 16px; }
@media (max-width: 1100px) { .phases { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .phases { grid-template-columns: minmax(0, 1fr); } }

/* Home: tighter rhythm between the service cards and the drawing */
#home-services { padding-bottom: clamp(24px, 3vw, 40px); }
#diagram, #kaavio { padding-top: clamp(32px, 4vw, 56px); }
#diagram .home-note, #kaavio .home-note { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }
.phases li { padding: 12px 11px 14px; }
.ph-name { font-size: 0.95rem; overflow-wrap: normal; word-break: normal; hyphens: auto; }
@media (max-width: 1260px) { .phases { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
