
:root{
  --navy:#041a2e;
  --navy2:#062744;
  --ocean:#0b4c7d;
  --cyan:#22a7c8;
  --ice:#d8e8f0;
  --mist:#f5f8fb;
  --paper:#ffffff;
  --ink:#142537;
  --muted:#627587;
  --line:rgba(6,39,68,.12);
  --glass:rgba(6,39,68,.66);
  --shadow:0 28px 90px rgba(1,14,26,.28);
  --radius:28px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--mist);overflow-x:hidden}
body:before{content:"";position:fixed;inset:0;background-image:linear-gradient(rgba(6,39,68,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(6,39,68,.035) 1px,transparent 1px);background-size:42px 42px;z-index:-1;pointer-events:none}
a{color:inherit;text-decoration:none} img{max-width:100%;display:block}.container{width:min(1180px,calc(100% - 42px));margin:0 auto}.wide{width:min(1360px,calc(100% - 42px));margin:0 auto}
.nav{position:sticky;top:0;z-index:80;background:rgba(3,19,34,.86);backdrop-filter:blur(18px);border-bottom:1px solid rgba(216,232,240,.16)}.nav-inner{height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:13px;color:white;font-weight:900;letter-spacing:.08em}.brand img{width:38px;height:38px}.brand small{display:block;color:rgba(216,232,240,.72);font-weight:600;font-size:10px;letter-spacing:.18em;margin-top:1px}.nav-links{display:flex;gap:18px;color:rgba(255,255,255,.82);font-size:13px;font-weight:750}.nav-links a{position:relative}.nav-links a:after{content:"";position:absolute;left:0;bottom:-8px;width:0;height:2px;background:var(--cyan);transition:.22s}.nav-links a:hover:after,.nav-links a.active:after{width:100%}.mobile-toggle{display:none;background:none;border:1px solid rgba(255,255,255,.25);color:white;border-radius:999px;padding:8px 12px}
.hero{position:relative;min-height:calc(100vh - 72px);display:grid;align-items:center;color:white;background:radial-gradient(circle at 74% 18%,rgba(34,167,200,.22),transparent 28%),linear-gradient(135deg,#02101d 0%,#041a2e 47%,#072f4e 100%);overflow:hidden}.hero:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,rgba(255,255,255,.035) 0 1px,transparent 1px 110px),linear-gradient(0deg,rgba(1,10,18,.62),transparent 42%);pointer-events:none}.hero-grid{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr);gap:36px;align-items:center;padding:86px 0}.eyebrow{display:inline-flex;align-items:center;gap:10px;padding:9px 14px;border:1px solid rgba(216,232,240,.25);border-radius:999px;background:rgba(255,255,255,.06);color:var(--ice);font-size:12px;font-weight:850;letter-spacing:.14em;text-transform:uppercase}.eyebrow:before{content:"";width:9px;height:9px;background:var(--cyan);border-radius:50%;box-shadow:0 0 18px var(--cyan)}.hero h1{font-family:Georgia,serif;font-size:clamp(56px,8vw,114px);line-height:.84;margin:24px 0 12px;letter-spacing:.035em}.hero h2{font-size:clamp(22px,3vw,38px);line-height:1.06;margin:0 0 18px;color:#ecf7fb}.lead{font-size:17px;line-height:1.62;color:rgba(255,255,255,.78);max-width:740px}.actions{display:flex;flex-wrap:wrap;gap:13px;margin-top:26px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:999px;padding:14px 18px;font-weight:900;transition:.2s}.btn:hover{transform:translateY(-2px)}.btn-primary{background:linear-gradient(135deg,var(--cyan),#72d7e8);color:#031421;box-shadow:0 18px 42px rgba(34,167,200,.25)}.btn-ghost{border:1px solid rgba(216,232,240,.32);color:white;background:rgba(255,255,255,.07)}.hero-card{border-radius:34px;overflow:hidden;border:1px solid rgba(216,232,240,.2);background:rgba(255,255,255,.06);padding:12px;box-shadow:var(--shadow)}.hero-card img{width:100%;height:min(55vh,540px);object-fit:contain;background:rgba(0,0,0,.18);border-radius:24px}.hero-caption{display:flex;justify-content:space-between;gap:12px;padding:14px 8px 4px;color:rgba(216,232,240,.82);font-size:12px;font-weight:850;letter-spacing:.07em}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;margin-top:30px;border:1px solid rgba(216,232,240,.16);border-radius:24px;overflow:hidden}.stat{background:rgba(3,19,34,.72);padding:17px}.stat span{display:block;color:rgba(216,232,240,.72);font-size:12px;margin-bottom:5px}.stat b{display:block;font-family:Georgia,serif;font-size:25px;color:white}.section{padding:84px 0}.section.dark{color:white;background:radial-gradient(circle at 14% 8%,rgba(34,167,200,.16),transparent 30%),linear-gradient(180deg,#041a2e,#061f38)}.kicker{font-size:12px;font-weight:900;color:var(--cyan);letter-spacing:.16em;text-transform:uppercase}.title{max-width:880px;margin-bottom:36px}.title h2{font-family:Georgia,serif;color:var(--navy);font-size:clamp(34px,5vw,66px);line-height:.98;margin:10px 0 14px}.dark .title h2{color:white}.title p{font-size:17px;line-height:1.65;color:var(--muted);margin:0}.dark .title p{color:rgba(216,232,240,.78)}.grid{display:grid;gap:24px}.grid-2{grid-template-columns:1.05fr .95fr}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-4{grid-template-columns:repeat(4,1fr)}.card{background:rgba(255,255,255,.86);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 22px 70px rgba(6,39,68,.08);overflow:hidden}.card.pad{padding:28px}.dark .card{background:rgba(255,255,255,.08);border-color:rgba(216,232,240,.16);box-shadow:none}.card h3{margin:0 0 11px;color:var(--navy);font-size:22px}.dark .card h3{color:white}.card p{margin:0;color:var(--muted);line-height:1.6}.dark .card p{color:rgba(216,232,240,.76)}.image-card img{width:100%;height:100%;object-fit:cover;min-height:360px}.image-contain{background:white;padding:18px}.image-contain img{object-fit:contain;min-height:0}.feature{display:grid;grid-template-columns:46px 1fr;gap:14px;align-items:start;padding:18px;border-radius:20px;border:1px solid rgba(6,39,68,.09);background:rgba(255,255,255,.64)}.dark .feature{background:rgba(255,255,255,.06);border-color:rgba(216,232,240,.13)}.icon{width:46px;height:46px;border-radius:15px;background:linear-gradient(135deg,var(--navy),var(--ocean));display:grid;place-items:center;color:white;font-weight:950}.feature h4{margin:0 0 5px;color:var(--navy)}.dark .feature h4{color:white}.feature p{font-size:14px;line-height:1.45}.timeline{position:relative;display:grid;gap:16px}.timeline:before{content:"";position:absolute;left:21px;top:12px;bottom:12px;width:2px;background:rgba(34,167,200,.35)}.tl{position:relative;display:grid;grid-template-columns:44px 1fr;gap:16px}.dot{width:44px;height:44px;border-radius:50%;background:var(--navy2);color:white;display:grid;place-items:center;font-weight:900;z-index:2;border:2px solid var(--cyan)}.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.blog-card{display:flex;flex-direction:column;min-height:260px}.blog-card img{height:168px;object-fit:cover}.blog-card .pad{padding:20px}.tag{display:inline-flex;align-items:center;border-radius:999px;background:rgba(34,167,200,.12);color:var(--ocean);font-size:11px;font-weight:900;letter-spacing:.08em;padding:7px 10px;margin-bottom:12px}.route{position:relative;border-radius:30px;overflow:hidden;background:#061f38;color:white;padding:34px;border:1px solid rgba(216,232,240,.18)}.route svg{width:100%;height:auto}.route-step{border-left:3px solid var(--cyan);padding-left:16px;margin:16px 0;color:rgba(216,232,240,.78)}.docs{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.doc-card{padding:24px;border-radius:24px;background:white;border:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;align-items:center;transition:.22s}.doc-card:hover{transform:translateY(-3px);box-shadow:0 18px 50px rgba(6,39,68,.12)}.doc-card b{display:block;color:var(--navy);font-size:18px}.doc-card span{display:block;color:var(--muted);font-size:13px;margin-top:5px}.pill{border-radius:999px;padding:9px 12px;background:var(--navy2);color:white;font-size:12px;font-weight:900}.footer{background:#031421;color:rgba(216,232,240,.72);padding:42px 0;font-size:13px}.footer-grid{display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center}.reveal{opacity:0;transform:translateY(20px);transition:.65s}.reveal.visible{opacity:1;transform:none}.page-hero{padding:70px 0;background:linear-gradient(135deg,#041a2e,#062744);color:white}.page-hero h1{font-family:Georgia,serif;font-size:clamp(42px,6vw,78px);line-height:.95;margin:12px 0}.page-hero p{max-width:820px;color:rgba(216,232,240,.78);font-size:17px;line-height:1.65}.quote{font-family:Georgia,serif;font-size:clamp(24px,3vw,42px);line-height:1.14;color:var(--navy);margin:0}.dark .quote{color:white}.notice{background:rgba(34,167,200,.10);border:1px solid rgba(34,167,200,.20);border-radius:20px;padding:18px;color:var(--ink)}
@media(max-width:980px){.nav-links{display:none}.mobile-toggle{display:inline-flex}.nav.open .nav-links{display:flex;position:absolute;left:0;right:0;top:72px;background:#031421;flex-direction:column;padding:18px 22px}.hero-grid,.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.blog-grid,.docs{grid-template-columns:1fr}.image-card img{min-height:260px}.footer-grid{grid-template-columns:1fr}.hero-card img{height:auto}}
@media(max-width:640px){.container,.wide{width:min(100% - 26px,1180px)}.hero h1{font-size:54px}.stats{grid-template-columns:1fr}.section{padding:64px 0}}

/* v0.2 corrections: hero layering and concept visual */
.hero-grid{
  position:relative;
  z-index:2;
}
.hero-copy{
  position:relative;
  z-index:12;
}
.hero-copy h1,
.hero-copy h2,
.hero-copy .lead,
.hero-copy .actions,
.hero-copy .stats,
.hero-copy .eyebrow{
  position:relative;
  z-index:13;
}
.hero-card{
  position:relative;
  z-index:3;
}
.hero-card img{
  position:relative;
  z-index:1;
}
.hero h1{
  text-shadow:0 10px 42px rgba(0,0,0,.62);
}
.concept-section{
  padding-top:34px;
  padding-bottom:84px;
}
.concept-card{
  display:grid;
  grid-template-columns:minmax(0,.95fr) minmax(360px,1.05fr);
  gap:28px;
  align-items:center;
  border-radius:32px;
  border:1px solid rgba(6,39,68,.12);
  background:linear-gradient(135deg,#ffffff,#edf5f8);
  box-shadow:0 22px 70px rgba(6,39,68,.10);
  padding:26px;
  overflow:hidden;
}
.concept-card h2{
  font-family:Georgia,serif;
  color:var(--navy);
  font-size:clamp(30px,4vw,52px);
  line-height:1.02;
  margin:10px 0 12px;
}
.concept-card p{
  color:var(--muted);
  line-height:1.62;
  margin:0;
}
.concept-card img{
  width:100%;
  height:auto;
  object-fit:contain;
  border-radius:18px;
  background:#fff;
}
@media(max-width:980px){
  .concept-card{grid-template-columns:1fr}
}

/* v0.5 correction: show technical blueprint images fully */
.image-card.image-contain.technical-visual{
  padding:18px;
  background:#ffffff;
}
.image-card.image-contain.technical-visual img{
  width:100%;
  height:auto !important;
  min-height:0 !important;
  object-fit:contain !important;
  object-position:center !important;
  background:#ffffff;
  border-radius:18px;
}

/* v0.7 content package updates */
.stat small{display:block;margin-top:4px;color:rgba(216,232,240,.68);font-size:11px;line-height:1.25}
.map-visual{position:relative;margin:22px 0 4px;border-radius:26px;overflow:hidden;background:linear-gradient(135deg,rgba(216,232,240,.10),rgba(34,167,200,.09));border:1px solid rgba(216,232,240,.18);min-height:260px}
.map-visual svg{display:block;width:100%;height:auto}.soft-land{fill:rgba(216,232,240,.16)}.soft-sea{fill:rgba(34,167,200,.12)}
.map-label{position:absolute;z-index:3;padding:7px 11px;border-radius:999px;background:rgba(3,20,33,.72);border:1px solid rgba(216,232,240,.18);color:#fff;font-size:12px;font-weight:900;letter-spacing:.06em}
.map-label.north{left:11%;top:12%}.map-label.baltic{left:26%;top:43%}.map-label.coast{left:52%;top:67%}.map-label.south{right:8%;top:52%}
.map-note{margin:0;padding:0 22px 20px;color:rgba(216,232,240,.76);font-size:13px}
.email-card{margin-top:18px;padding:12px;border-radius:24px;background:#fff;border:1px solid rgba(6,39,68,.12)}.email-card img{max-width:100%;height:auto;border-radius:18px}
.contact-form{display:grid;gap:13px;margin-top:18px}.contact-form label{display:grid;gap:6px;color:var(--navy);font-weight:800;font-size:13px}
.contact-form input,.contact-form textarea{width:100%;border:1px solid rgba(6,39,68,.16);border-radius:16px;padding:13px 14px;font:inherit;color:var(--ink);background:#fff}.contact-form textarea{resize:vertical}.hp-field{position:absolute!important;left:-9999px!important;opacity:0!important}.form-note{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
@media(max-width:640px){.map-label{font-size:10px;padding:6px 8px}.map-label.coast{left:42%}}

/* v0.8 hero stats correction: prevent long text from pushing boxes off-screen */
.stats{
  grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  overflow:visible !important;
}
.stat{
  min-width:0;
  overflow:visible;
}
.stat span,
.stat b,
.stat small{
  max-width:100%;
  min-width:0;
  white-space:normal;
  overflow-wrap:break-word;
  word-break:normal;
}
.stat b{
  font-size:clamp(17px, 1.7vw, 24px) !important;
  line-height:1.06;
}
.stat small{
  font-size:10.5px !important;
}
.hero-grid{
  grid-template-columns:minmax(0,.94fr) minmax(360px,1.06fr);
}
.hero-copy{
  min-width:0;
}
.hero-card{
  min-width:0;
}
.hero-card img{
  width:100%;
  max-width:100%;
}
@media(max-width:1180px){
  .stats{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
}
@media(max-width:640px){
  .stats{
    grid-template-columns:1fr !important;
  }
}

/* v0.9 mobile publishing readiness fixes */
html, body{
  max-width:100%;
  overflow-x:hidden;
}
img, svg, video{
  max-width:100%;
}
.container{
  width:min(1180px, calc(100% - 32px));
}
.hero{
  overflow:hidden;
}
.hero-grid{
  min-width:0;
}
.hero-copy,
.hero-card,
.card,
.image-card{
  min-width:0;
}
.nav-inner{
  min-width:0;
}
.nav-links{
  min-width:0;
}
@media(max-width:980px){
  .hero-grid{
    grid-template-columns:1fr !important;
    gap:28px;
  }
  .hero h1{
    font-size:clamp(48px, 16vw, 92px);
    word-break:normal;
    overflow-wrap:break-word;
  }
  .hero-card{
    order:2;
  }
  .stats{
    margin-top:22px;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .blog-grid{
    grid-template-columns:1fr !important;
  }
  .nav-links{
    gap:8px;
    flex-wrap:wrap;
    justify-content:flex-end;
  }
}
@media(max-width:720px){
  .container{
    width:min(100% - 22px, 1180px);
  }
  .nav-inner{
    align-items:flex-start;
  }
  .brand span{
    font-size:16px;
  }
  .brand small{
    font-size:9px;
  }
  .hero{
    padding-top:96px;
  }
  .hero h2,
  .page-hero h1{
    font-size:clamp(30px, 9vw, 48px);
  }
  .lead,
  .page-hero p,
  .title p{
    font-size:16px;
  }
  .card.pad{
    padding:22px;
  }
  .actions{
    flex-direction:column;
    align-items:stretch;
  }
  .btn{
    text-align:center;
    width:100%;
  }
  .email-card{
    overflow:hidden;
  }
}
@media(max-width:480px){
  .hero h1{
    font-size:clamp(42px, 18vw, 72px);
  }
  .stat b{
    font-size:20px !important;
  }
}

/* v0.10 mobile hero title fix: MERIANN must not split one letter to a new line */
.hero h1{
  white-space:nowrap !important;
  overflow-wrap:normal !important;
  word-break:keep-all !important;
  max-width:100%;
  font-size:clamp(44px, 13vw, 112px) !important;
  letter-spacing:.01em;
}
@media(max-width:720px){
  .hero h1{
    font-size:clamp(42px, 15vw, 72px) !important;
    letter-spacing:0;
  }
}
@media(max-width:420px){
  .hero h1{
    font-size:clamp(38px, 14vw, 58px) !important;
  }
}
.form-note{
  opacity:.9;
}

/* v0.11 extra mobile title safety after live Netlify test */
@media(max-width:430px){
  .hero h1{
    font-size:clamp(34px, 12.8vw, 52px) !important;
    letter-spacing:0 !important;
    transform:none !important;
  }
}

/* v0.12 hero stats final correction:
   stats are now a separate stable block below the intro text and hero image */
.hero-grid{
  align-items:start;
}
.hero-stats{
  grid-column:1 / -1;
  display:grid !important;
  grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  gap:14px !important;
  width:100%;
  max-width:100%;
  margin-top:10px !important;
  position:relative;
  z-index:5;
}
.hero-stats .stat{
  min-width:0 !important;
  width:100%;
  box-sizing:border-box;
  overflow:visible !important;
}
.hero-stats .stat span,
.hero-stats .stat b,
.hero-stats .stat small{
  display:block;
  width:100%;
  max-width:100%;
  white-space:normal !important;
  overflow:visible !important;
  overflow-wrap:break-word !important;
  word-break:normal !important;
}
.hero-stats .stat b{
  font-size:clamp(18px, 2vw, 26px) !important;
  line-height:1.08 !important;
}
.hero-stats .stat small{
  margin-top:5px;
  line-height:1.25 !important;
}
@media(max-width:980px){
  .hero-stats{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    margin-top:0 !important;
  }
}
@media(max-width:560px){
  .hero-stats{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }
  .hero-stats .stat{
    padding:16px 18px;
  }
  .hero-stats .stat b{
    font-size:21px !important;
  }
}

/* v0.13 concept image correction:
   MpR_6.png must scale down fully and never crop */
.concept-card{
  overflow:visible !important;
  align-items:center;
}
.concept-card .concept-logo-img,
.concept-card img[src$="MpR_6.png"]{
  display:block;
  width:100%;
  max-width:min(820px, 100%);
  height:auto !important;
  max-height:none !important;
  object-fit:contain !important;
  object-position:center center !important;
  border-radius:0 !important;
  background:transparent;
  padding:0;
  margin-inline:auto;
}
@media(max-width:980px){
  .concept-card .concept-logo-img,
  .concept-card img[src$="MpR_6.png"]{
    max-width:100%;
  }
}
@media(max-width:560px){
  .concept-card{
    padding:20px !important;
  }
  .concept-card .concept-logo-img,
  .concept-card img[src$="MpR_6.png"]{
    width:100%;
    max-width:100%;
  }
}

/* v0.14 publish-ready responsive image and contact cleanup */

/* Any concept image must be contained, not cropped, in every card/link/section. */
img.publish-contain-img,
img.concept-logo-img,
img[src$="MpR_6.png"]{
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
  max-height:none !important;
  object-fit:contain !important;
  object-position:center center !important;
  display:block !important;
  border-radius:0 !important;
  background:transparent !important;
}
.concept-image-card,
.image-card.concept-image-card,
.card:has(img[src$="MpR_6.png"]){
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible !important;
  padding:18px;
  background:#fff;
}
.concept-image-card img,
.card:has(img[src$="MpR_6.png"]) img{
  object-fit:contain !important;
}
@supports not selector(:has(*)){
  .concept-image-card{
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:visible !important;
    padding:18px;
    background:#fff;
  }
}

/* Final contact page: disabled form should look intentional, not broken. */
.contact-form-disabled{
  opacity:.86;
}
.contact-form-disabled input,
.contact-form-disabled textarea,
.contact-form-disabled button{
  cursor:not-allowed;
}
.contact-form-disabled input,
.contact-form-disabled textarea{
  background:#f6f8fa;
}

/* General no-crop/no-side-scroll polish for phones and tablets. */
html, body{
  overflow-x:hidden !important;
}
section, header, footer, nav, .container, .card, .hero-grid, .grid, .grid-2, .grid-3, .grid-4{
  max-width:100%;
}
img{
  max-width:100%;
}
.card.pad p,
.card.pad li,
.title p,
.page-hero p,
.lead{
  overflow-wrap:break-word;
}
@media(max-width:760px){
  .concept-card{
    grid-template-columns:1fr !important;
  }
  .concept-card img,
  img[src$="MpR_6.png"]{
    width:100% !important;
    max-width:100% !important;
  }
  .concept-image-card{
    padding:14px;
  }
  .email-card{
    padding:8px;
  }
}

/* v0.15 final concept-banner correction:
   MpR_6 is a wide banner, so it must not live in a narrow side column. */
.concept-card-banner{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:24px !important;
  overflow:visible !important;
  padding:clamp(22px, 4vw, 42px) !important;
}
.concept-card-banner .concept-copy{
  max-width:860px;
}
.concept-banner-image{
  width:100%;
  max-width:100%;
  overflow:visible !important;
  background:#fff;
  border-radius:22px;
  padding:clamp(10px, 2vw, 20px);
  box-shadow:0 18px 45px rgba(6,39,68,.10);
  box-sizing:border-box;
}
.concept-banner-image img,
.concept-card-banner img[src$="MpR_6.png"]{
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  display:block !important;
  border-radius:0 !important;
}
@media(max-width:720px){
  .concept-card-banner{
    padding:18px !important;
    gap:16px !important;
  }
  .concept-banner-image{
    padding:8px;
    border-radius:16px;
  }
}
/* In case any future page uses MpR_6 inside a normal card, never crop it. */
.image-card img[src$="MpR_6.png"],
.card img[src$="MpR_6.png"]{
  height:auto !important;
  min-height:0 !important;
  object-fit:contain !important;
  background:#fff;
}

/* v0.16 publication polish */

/* Reduce excessive empty space at the top on mobile */
@media(max-width:720px){
  .hero{
    padding-top:64px !important;
  }
  .page-hero{
    padding-top:92px !important;
    padding-bottom:46px !important;
  }
}
@media(max-width:430px){
  .hero{
    padding-top:54px !important;
  }
}

/* Technical highlights */
.spec-highlight{
  display:inline-flex;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 14px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(34,167,200,.10);
  border:1px solid rgba(34,167,200,.20);
  color:var(--navy);
  font-weight:900;
  letter-spacing:.03em;
}

/* Logo showcase on partners page */
.logo-showcase{
  padding-top:34px;
}
.logo-card{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:0;
  overflow:hidden;
  align-items:center;
  background:#fff;
}
.visual-logo-img{
  width:100% !important;
  height:auto !important;
  object-fit:contain !important;
  display:block;
  background:#fff;
}
.logo-text{
  background:linear-gradient(135deg,rgba(216,232,240,.18),rgba(34,167,200,.08));
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
@media(max-width:900px){
  .logo-card{
    grid-template-columns:1fr;
  }
  .logo-text{
    height:auto;
  }
}

/* Prevent all brand/concept images from cropping anywhere */
img[src$="visuaalinen-logo.png"],
img[src$="MpR_6.png"]{
  width:100% !important;
  height:auto !important;
  object-fit:contain !important;
  max-width:100% !important;
  display:block !important;
}

/* v0.17 final responsive corrections */

/* Compact partner visual logo: never overlap text or edges */
.logo-card-compact{
  display:grid !important;
  grid-template-columns:minmax(0, .9fr) minmax(0, 1.1fr) !important;
  align-items:center !important;
  gap:0 !important;
  overflow:hidden !important;
}
.logo-card-compact .logo-media{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(18px, 3vw, 34px);
  background:#fff;
  min-width:0;
}
.compact-brand-img{
  width:auto !important;
  max-width:min(520px, 100%) !important;
  max-height:360px !important;
  height:auto !important;
  object-fit:contain !important;
  margin:0 auto !important;
}
.logo-card-compact .logo-text{
  min-width:0;
  overflow:visible;
}
@media(max-width:900px){
  .logo-card-compact{
    grid-template-columns:1fr !important;
  }
  .compact-brand-img{
    max-width:min(560px, 96%) !important;
    max-height:none !important;
  }
}

/* Route map image */
.route-map-image{
  overflow:hidden;
  background:#fff;
  padding:0;
  margin:22px 0 0;
  border-radius:26px;
}
.route-map-image img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
}
.route-map-image + .map-note{
  margin-top:10px;
}

/* Ensure partner page never shows oversized brand images over text */
.logo-showcase img{
  max-width:100% !important;
  height:auto !important;
}

/* v0.18 precision fixes */

/* Kumppanit logo: vertical safe layout; image never touches text or card edges */
.logo-card-safe{
  display:block !important;
  overflow:visible !important;
  background:#fff !important;
}
.logo-image-frame{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:32px 32px 10px !important;
  box-sizing:border-box;
  overflow:visible !important;
  background:#fff;
}
.logo-image-frame .compact-brand-img,
.logo-card-safe .compact-brand-img{
  width:auto !important;
  max-width:min(620px, 86%) !important;
  max-height:390px !important;
  height:auto !important;
  object-fit:contain !important;
  display:block !important;
  margin:0 auto !important;
}
.logo-text-safe{
  padding-top:24px !important;
  margin-top:14px !important;
  border-top:1px solid rgba(6,39,68,.08);
  background:linear-gradient(135deg,rgba(216,232,240,.18),rgba(34,167,200,.08));
}
@media(max-width:720px){
  .logo-image-frame{
    padding:22px 18px 8px !important;
  }
  .logo-image-frame .compact-brand-img,
  .logo-card-safe .compact-brand-img{
    max-width:92% !important;
    max-height:none !important;
  }
  .logo-text-safe{
    padding-top:20px !important;
    margin-top:10px !important;
  }
}

/* Route map smaller on PC, centered; no old visual behind */
.route-map-wrap{
  margin:22px auto 0;
  width:100%;
}
.route-map-image-small{
  width:min(760px, 100%) !important;
  max-width:60% !important;
  margin:0 auto !important;
  padding:0 !important;
  overflow:hidden !important;
  border-radius:24px !important;
  background:#fff !important;
}
.route-map-image-small img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  object-fit:contain !important;
}
.route-map-wrap .map-note{
  text-align:center;
  margin-top:10px !important;
  padding:0 !important;
}
@media(max-width:980px){
  .route-map-image-small{
    max-width:86% !important;
    width:86% !important;
  }
}
@media(max-width:620px){
  .route-map-image-small{
    max-width:100% !important;
    width:100% !important;
  }
}

/* Public contact form restored */
.contact-form-public .btn{
  width:fit-content;
}
@media(max-width:720px){
  .contact-form-public .btn{
    width:100%;
  }
}

/* v0.19 final corrections for visible test issues */
/* Etusivu: Kumppanit-card brand image must be contained, not cropped */
.blog-card .blog-card-image.logo-thumb{
  height:170px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:#fff;
  border-bottom:1px solid rgba(6,39,68,.08);
  box-sizing:border-box;
  overflow:hidden;
}
.blog-card .blog-card-image.logo-thumb img{
  width:auto !important;
  height:auto !important;
  max-width:94% !important;
  max-height:134px !important;
  object-fit:contain !important;
  display:block !important;
  margin:auto !important;
}
@media(max-width:720px){
  .blog-card .blog-card-image.logo-thumb{height:145px;padding:14px;}
  .blog-card .blog-card-image.logo-thumb img{max-height:112px !important;}
}
/* Reitti: use only new map, centered, about 60% PC width, steps below */
.route-clean{overflow:visible !important;}
.route-clean .route-map-main{margin:22px auto 18px !important;width:100% !important;}
.route-map-image-target{
  width:min(920px, 62%) !important;
  margin:0 auto !important;
  padding:0 !important;
  overflow:hidden !important;
  border-radius:24px !important;
  background:#fff !important;
}
.route-map-image-target img{display:block !important;width:100% !important;height:auto !important;object-fit:contain !important;}
.route-clean .map-note{text-align:center !important;margin:10px 0 20px !important;padding:0 !important;color:rgba(216,232,240,.82) !important;}
.route-steps-visible{opacity:1 !important;position:relative !important;z-index:2 !important;margin-top:20px !important;}
.route-steps-visible .route-step{opacity:1 !important;}
@media(max-width:980px){.route-map-image-target{width:86% !important;}}
@media(max-width:620px){.route-map-image-target{width:100% !important;}}
/* Kumppanit: logo as independent safe block, not touching text */
.logo-showcase-v019{padding-top:38px !important;}
.partner-logo-frame{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  overflow:visible !important;
  padding:34px 28px !important;
  background:#fff !important;
  margin-bottom:26px !important;
  box-sizing:border-box !important;
}
.partner-logo-frame img{
  width:auto !important;
  height:auto !important;
  max-width:min(560px, 84%) !important;
  max-height:360px !important;
  object-fit:contain !important;
  display:block !important;
  margin:auto !important;
}
.partner-logo-text{margin-top:0 !important;padding:clamp(24px,3vw,34px) !important;}
@media(max-width:720px){
  .partner-logo-frame{padding:24px 14px !important;margin-bottom:18px !important;}
  .partner-logo-frame img{max-width:88% !important;max-height:none !important;}
}

/* v0.20 Reitti page final readability/layout fix.
   Map size and its card are left unchanged; only the text boxes below it are rebuilt. */
.route-steps-solid{
  display:grid !important;
  grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  gap:14px !important;
  margin:22px 0 0 !important;
  width:100%;
}
.route-step-solid{
  background:#ffffff !important;
  color:#062744 !important;
  border:1px solid rgba(6,39,68,.13) !important;
  border-radius:18px !important;
  padding:17px 16px !important;
  box-shadow:0 14px 34px rgba(6,39,68,.13) !important;
  min-width:0;
}
.route-step-solid strong{
  display:block !important;
  color:#062744 !important;
  font-size:16px !important;
  line-height:1.22 !important;
  margin-bottom:7px !important;
  font-weight:900 !important;
  opacity:1 !important;
}
.route-step-solid span{
  display:block !important;
  color:#304e63 !important;
  font-size:14px !important;
  line-height:1.42 !important;
  opacity:1 !important;
}
.route-map-note{
  color:rgba(216,232,240,.88) !important;
  text-align:center !important;
  margin-top:12px !important;
  margin-bottom:0 !important;
}
.route-info-section{
  padding-top:0 !important;
}
.route-info-grid{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:22px !important;
  align-items:stretch !important;
}
.route-info-card{
  height:100%;
  min-width:0;
}
.route-info-card h3{
  color:#062744 !important;
}
.route-info-card p{
  color:#304e63 !important;
}
@media(max-width:900px){
  .route-steps-solid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
  .route-info-grid{
    grid-template-columns:1fr !important;
  }
}
@media(max-width:560px){
  .route-steps-solid{
    grid-template-columns:1fr !important;
  }
}

/* v0.21 mobile top-space correction
   Removes excessive empty blue space between fixed nav and page content on all pages. */
@media(max-width:760px){
  .nav{
    min-height:0 !important;
  }
  .nav-inner{
    padding-top:10px !important;
    padding-bottom:10px !important;
  }
  .hero{
    min-height:auto !important;
    padding-top:74px !important;
    padding-bottom:44px !important;
  }
  .page-hero{
    min-height:auto !important;
    padding-top:78px !important;
    padding-bottom:42px !important;
  }
  .hero-grid{
    padding-top:0 !important;
    margin-top:0 !important;
  }
  .hero-copy{
    padding-top:0 !important;
    margin-top:0 !important;
  }
  .eyebrow,
  .page-hero .kicker{
    margin-top:0 !important;
  }
  body{
    padding-top:0 !important;
  }
  header.hero,
  header.page-hero{
    margin-top:0 !important;
  }
}
@media(max-width:430px){
  .hero{
    padding-top:66px !important;
    padding-bottom:38px !important;
  }
  .page-hero{
    padding-top:70px !important;
    padding-bottom:36px !important;
  }
}

/* v0.22 mobile top-space micro-adjustment:
   keep a small gap under logo/menu, but move content a few millimetres upward. */
@media(max-width:760px){
  .hero{
    padding-top:62px !important;
    padding-bottom:42px !important;
  }
  .page-hero{
    padding-top:66px !important;
    padding-bottom:40px !important;
  }
}
@media(max-width:430px){
  .hero{
    padding-top:58px !important;
    padding-bottom:36px !important;
  }
  .page-hero{
    padding-top:62px !important;
    padding-bottom:34px !important;
  }
}

/* Alus page: Structural Integrity / safety card */
.structural-card{
  background:#ffffff !important;
  color:#062744;
  border:1px solid rgba(6,39,68,.10);
  box-shadow:0 22px 55px rgba(6,39,68,.12);
}
.structural-card h2{
  margin-top:6px;
  margin-bottom:8px;
  color:#062744;
  letter-spacing:.01em;
}
.structural-card h3{
  margin:12px 0 16px;
  color:#0b2d55;
}
.structural-card p{
  color:#304e63;
  max-width:980px;
}
.structural-card p + p{
  margin-top:12px;
}
.muted-inline{
  color:#6c7d8a;
  font-weight:700;
}
.technical-limitation{
  margin-top:22px;
  padding:16px 18px;
  border-radius:18px;
  background:rgba(6,39,68,.045);
  border:1px solid rgba(6,39,68,.10);
  color:#526878;
  font-size:13px;
  line-height:1.55;
}
.technical-limitation strong{
  color:#062744;
}
@media(max-width:720px){
  .structural-card{
    padding:22px !important;
  }
  .technical-limitation{
    font-size:12.5px;
    padding:14px 15px;
  }
}

/* v0.23 Kumppanit: equal brand image cards */
.brand-images-section{
  padding-top:38px;
}
.brand-image-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:22px;
  align-items:stretch;
}
.brand-image-card{
  background:#ffffff;
  padding:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:360px;
  overflow:hidden;
}
.brand-image-card img{
  display:block;
  width:100%;
  max-width:100%;
  height:100%;
  max-height:330px;
  object-fit:contain;
  object-position:center center;
  border-radius:0;
}
@media(max-width:900px){
  .brand-image-grid{
    grid-template-columns:1fr;
  }
  .brand-image-card{
    min-height:300px;
  }
  .brand-image-card img{
    max-height:300px;
  }
}
@media(max-width:520px){
  .brand-image-card{
    padding:14px;
    min-height:230px;
  }
  .brand-image-card img{
    max-height:230px;
  }
}

/* v0.25 Kumppanit: toinen kahden kuvan brändirivi */
.brand-image-grid-extra{
  margin-top:22px;
}
.brand-image-grid-extra .brand-image-card{
  min-height:360px;
}
.brand-image-grid-extra .brand-image-card img{
  max-height:330px;
  object-fit:contain;
}
@media(max-width:900px){
  .brand-image-grid-extra{
    margin-top:18px;
  }
}
@media(max-width:520px){
  .brand-image-grid-extra .brand-image-card{
    min-height:230px;
  }
  .brand-image-grid-extra .brand-image-card img{
    max-height:230px;
  }
}

/* v1.0 Sponsor & Voyage Platform */
.platform-hero{
  background:
    radial-gradient(circle at 20% 12%, rgba(216,232,240,.20), transparent 36%),
    radial-gradient(circle at 80% 20%, rgba(34,167,200,.14), transparent 34%),
    linear-gradient(135deg,#031421 0%,#062744 54%,#0b2d55 100%);
}
.platform-intro{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);
  gap:28px;
  align-items:center;
}
.platform-badge{
  background:#fff;
  border-radius:24px;
  padding:16px;
  box-shadow:0 18px 45px rgba(6,39,68,.10);
}
.platform-badge img{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
}
.platform-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.platform-card{
  border:1px solid rgba(216,232,240,.18);
  border-radius:24px;
  padding:24px;
  background:rgba(255,255,255,.06);
  min-height:230px;
}
.platform-card span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:999px;
  background:rgba(34,167,200,.18);
  color:#d8e8f0;
  font-weight:900;
  margin-bottom:16px;
}
.platform-card h3{
  color:#fff;
  margin:0 0 10px;
}
.platform-card p{
  color:rgba(216,232,240,.78);
  margin:0;
}
.platform-roadmap{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.platform-roadmap > div{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(216,232,240,.16);
  border-radius:24px;
  padding:24px;
}
.platform-roadmap strong{
  display:inline-flex;
  width:46px;
  height:46px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#fff;
  color:#062744;
  margin-bottom:14px;
}
.platform-roadmap h3{color:#fff}
.platform-roadmap p{color:rgba(216,232,240,.78)}
.platform-teaser{
  display:flex;
  gap:22px;
  justify-content:space-between;
  align-items:center;
  background:linear-gradient(135deg,#ffffff 0%,#eef6fa 100%);
}
.platform-teaser .btn{flex:0 0 auto}
.platform-inline-cta{
  padding-top:20px;
  padding-bottom:0;
}
.platform-inline-cta .notice a{
  color:#0b5f8f;
  font-weight:900;
}
@media(max-width:980px){
  .platform-intro,
  .platform-grid,
  .platform-roadmap{
    grid-template-columns:1fr;
  }
  .platform-teaser{
    flex-direction:column;
    align-items:flex-start;
  }
  .platform-teaser .btn{
    width:100%;
    text-align:center;
  }
}

/* v1.1: Kumppanit content integrated into Platform */
.platform-partners-section{
  padding-top:34px;
}
.platform-partners-section .card{
  background:#ffffff;
}
.platform-partners-section h2{
  color:#062744;
}
.platform-partners-section p{
  color:#304e63;
}

/* v1.4: yhtenäinen ylävalikko, Platform-sivun mobiilivalikon korjaus */
.nav{
  overflow:visible;
}
.nav-inner{
  max-width:1200px;
  width:100%;
  box-sizing:border-box;
}
.brand{
  min-width:0;
  flex-shrink:1;
}
.brand span,
.brand small{
  white-space:nowrap;
}
.nav-links{
  min-width:0;
}
.nav-toggle,
.menu-toggle,
button[aria-label="Valikko"],
button[aria-controls],
.nav button{
  flex-shrink:0;
  white-space:nowrap;
}
@media(max-width:760px){
  .nav-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }
  .brand{
    max-width:calc(100% - 96px);
  }
  .brand small{
    display:none;
  }
}

/* v1.5: Yhteydenottolomakkeen offline-ilmoitus */
.form-offline-notice{
  border:1px solid rgba(11,95,143,.22);
  background:#eef6fa;
  color:#17384f;
  border-radius:18px;
  padding:16px 18px;
  margin:0 0 18px;
  line-height:1.55;
}
.form-offline-notice strong{
  display:block;
  color:#062744;
  margin-bottom:4px;
}
.form-offline-notice a{
  color:#0b5f8f;
  font-weight:900;
}

/* Tarina 1. kuva: oma erillinen kuva ja varma skaalaus */
img[src$="Tarina_1Kuva.png"]{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
}

/* Tarina_1Kuva skaalauskorjaus: näytä koko alus, älä leikkaa perää */
.tarina-main-image,
img[src$="Tarina_1Kuva.png"]{
  width:100% !important;
  height:auto !important;
  max-height:none !important;
  aspect-ratio:auto !important;
  object-fit:contain !important;
  object-position:center center !important;
  display:block !important;
  background:#f5f8fb;
}

/* Jos kuva on kortti-/media-kehyksen sisällä, estetään kehyksen tekemä rajaus */
.card:has(img[src$="Tarina_1Kuva.png"]),
.figure:has(img[src$="Tarina_1Kuva.png"]),
.media:has(img[src$="Tarina_1Kuva.png"]){
  overflow:visible;
}
