:root {
  color-scheme: dark;
  --ink: #f4f8fc;
  --muted: #9cb0c4;
  --muted-2: #71879c;
  --night: #050b12;
  --night-2: #08131f;
  --panel: #0b1927;
  --panel-2: #0e2235;
  --line: rgba(148, 183, 216, .17);
  --line-strong: rgba(148, 205, 255, .36);
  --electric: #3d8dff;
  --cyan: #79d9ff;
  --red: #e53846;
  --white: #ffffff;
  --wrap: min(1280px, calc(100% - 72px));
  --header: 92px;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body { margin: 0; overflow-x: hidden; background: var(--night); color: var(--ink); font-size: 16px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none; background: radial-gradient(circle at 76% 10%, rgba(42, 119, 215, .18), transparent 35%), radial-gradient(circle at 8% 70%, rgba(31, 91, 160, .1), transparent 28%), var(--night); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--electric); color: white; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out .2s ease both; }
::view-transition-new(root) { animation: page-in .42s cubic-bezier(.2,.7,.2,1) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } }

.wrap { width: var(--wrap); margin-inline: auto; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 1000; padding: 12px 18px; background: white; color: #08131f; font-weight: 800; }
.skip-link:focus { top: 15px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--cyan); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; box-shadow: 8px 0 14px currentColor; }
.section { padding: 132px 0; position: relative; }
.section-head { display: grid; grid-template-columns: 1.18fr .82fr; gap: 80px; align-items: end; margin-bottom: 62px; }
.section-head h2, .page-hero h1, .statement h2, .cta h2 { margin: 0; font-size: clamp(2.6rem, 5.4vw, 5.3rem); font-weight: 550; letter-spacing: -.065em; line-height: .98; }
.section-head > p, .section-head > div:last-child > p { max-width: 590px; margin: 0 0 4px; color: var(--muted); font-size: 1.04rem; }
.section-head-link { margin-top: 22px; }
.section-head strong, .page-hero strong, .statement strong { color: var(--cyan); font-weight: inherit; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border: 1px solid transparent; color: white; font-size: .84rem; font-weight: 800; letter-spacing: .035em; transition: .25s ease; }
.button-primary { background: linear-gradient(135deg, #2378ef, #49a5ff); box-shadow: 0 15px 40px rgba(28, 119, 241, .25); }
.button-primary:hover { box-shadow: 0 18px 50px rgba(28, 119, 241, .42); transform: translateY(-2px); }
.button-ghost { border-color: var(--line-strong); background: rgba(8, 23, 38, .45); color: #d9eaff; backdrop-filter: blur(14px); }
.button-ghost:hover { border-color: var(--cyan); background: rgba(27, 91, 154, .2); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--cyan); font-size: .86rem; font-weight: 800; }
.text-link::after { content: ""; width: 26px; height: 1px; background: currentColor; transition: width .25s; }
.text-link:hover::after { width: 42px; }

.site-header { position: sticky; top: 0; z-index: 100; height: var(--header); border-bottom: 1px solid var(--line); background: rgba(5, 12, 20, .78); backdrop-filter: blur(20px) saturate(1.3); }
.nav-shell { width: var(--wrap); height: 100%; margin-inline: auto; display: grid; grid-template-columns: 292px 1fr auto; align-items: center; gap: 30px; }
.brand { min-height: 68px; position: relative; isolation: isolate; display: inline-flex; align-items: center; margin-left: -2px; padding: 10px 31px 10px 15px; overflow: hidden; border: 1px solid rgba(77,180,248,.34); background: linear-gradient(112deg, rgba(12,32,50,.98), rgba(5,15,25,.96) 68%, rgba(10,27,42,.9)); box-shadow: inset 0 0 0 1px rgba(151,218,255,.035), inset 0 -18px 34px rgba(0,0,0,.18), 0 13px 32px rgba(0,0,0,.22); clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); }
.brand::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(rgba(74,176,241,.065) 1px, transparent 1px), linear-gradient(90deg, rgba(74,176,241,.065) 1px, transparent 1px); background-size: 30px 30px; }
.brand::after { content: ""; position: absolute; top: -1px; left: -1px; width: 118px; height: 2px; z-index: -1; pointer-events: none; background: linear-gradient(90deg, #42c8ff 0 72%, rgba(66,200,255,0)); box-shadow: 0 0 12px rgba(66,200,255,.45); }
.brand img { position: relative; z-index: 1; display: block; width: 246px; height: auto; image-rendering: auto; filter: brightness(1.22) contrast(1.05) drop-shadow(0 2px 1px rgba(0,0,0,.56)) drop-shadow(0 8px 18px rgba(0,0,0,.25)); transition: transform .3s ease, filter .3s ease; }
.brand:hover img { transform: translateY(-1px); filter: brightness(1.28) contrast(1.06) drop-shadow(0 2px 1px rgba(0,0,0,.64)) drop-shadow(0 10px 22px rgba(0,0,0,.32)); }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(17px, 2.35vw, 35px); }
.main-nav > a { position: relative; padding: 34px 0 31px; color: #aab9c8; font-size: .79rem; font-weight: 750; letter-spacing: .04em; }
.main-nav > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 2px; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); transition: right .25s; }
.main-nav > a:hover, .main-nav > a[aria-current="page"] { color: white; }
.main-nav > a:hover::after, .main-nav > a[aria-current="page"]::after { right: 0; }
.main-nav > .nav-pro-link { min-height: 50px; flex: 0 0 auto; align-self: center; display: inline-flex; align-items: center; justify-content: center; margin: 0 -4px; padding: 8px 13px; overflow: hidden; border: 1px solid rgba(236, 56, 72, .9); border-radius: 6px; background: linear-gradient(145deg, rgba(13, 31, 49, .98), rgba(4, 12, 21, .98)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 0 0 1px rgba(229,56,70,.08), 0 10px 28px rgba(0,0,0,.22); transition: border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease; }
.main-nav > .nav-pro-link::before { content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 2px 2px 0; background: linear-gradient(180deg, #ff6672, var(--red)); box-shadow: 0 0 13px rgba(229,56,70,.78); }
.main-nav > .nav-pro-link::after { left: 11px; right: 11px; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, #ff5362 18%, #ff5362 82%, transparent); box-shadow: 0 0 14px rgba(229,56,70,.78); }
.main-nav > .nav-pro-link img { width: 126px; max-width: none; height: auto; flex: none; filter: brightness(1.16) contrast(1.05) drop-shadow(0 5px 12px rgba(0,0,0,.28)); transition: transform .25s ease, filter .25s ease; }
.main-nav > .nav-pro-link:hover, .main-nav > .nav-pro-link[aria-current="page"] { border-color: #ff5362; background: linear-gradient(145deg, rgba(30, 35, 51, .98), rgba(12, 17, 27, .98)); box-shadow: inset 0 0 26px rgba(229,56,70,.09), 0 0 0 1px rgba(229,56,70,.2), 0 0 24px rgba(229,56,70,.18), 0 12px 32px rgba(0,0,0,.28); transform: translateY(-1px); }
.main-nav > .nav-pro-link:hover img, .main-nav > .nav-pro-link[aria-current="page"] img { transform: scale(1.025); filter: brightness(1.24) contrast(1.06) drop-shadow(0 6px 15px rgba(0,0,0,.32)); }
.nav-contact { min-height: 50px; display: grid; align-content: center; gap: 1px; padding: 7px 14px; border: 1px solid rgba(118, 205, 255, .4); color: #d7f0ff; transition: .25s; }
.nav-contact:hover { border-color: var(--cyan); background: rgba(61, 141, 255, .14); box-shadow: inset 0 0 20px rgba(61, 141, 255, .1); }
.nav-contact a:first-child { font-size: .76rem; font-weight: 800; letter-spacing: .04em; }
.nav-contact a:last-child { color: #87a9c5; font-family: "IBM Plex Mono", monospace; font-size: .62rem; letter-spacing: .025em; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line-strong); background: transparent; color: white; }
.menu-toggle span { display: block; width: 20px; height: 1px; margin: 5px auto; background: currentColor; transition: .25s; }
.site-progress { position: fixed; left: 0; top: 0; z-index: 200; width: 100%; height: 2px; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--electric), var(--cyan)); box-shadow: 0 0 16px var(--cyan); }

.hero { min-height: calc(100svh - var(--header)); display: grid; align-items: center; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before, .tech-grid { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(123, 187, 235, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(123, 187, 235, .055) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to right, #000, transparent 82%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5,11,18,.98) 0%, rgba(5,11,18,.9) 34%, rgba(5,11,18,.3) 62%, rgba(5,11,18,.1) 100%), linear-gradient(0deg, var(--night) 0%, transparent 38%); }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; image-rendering: auto; filter: saturate(.92) contrast(1.06) brightness(.77); transform: scale(1.02); animation: hero-drift 18s ease-in-out infinite alternate; }
.hero-scan { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; opacity: .35; }
.hero-scan::before { content: ""; position: absolute; top: 0; bottom: 0; left: 48%; width: 1px; background: linear-gradient(transparent, rgba(121,217,255,.9), transparent); box-shadow: 0 0 30px rgba(121,217,255,.5); animation: scan-line 8s ease-in-out infinite; }
@keyframes scan-line { 50% { transform: translateX(38vw); opacity: .35; } }
@keyframes hero-drift { to { transform: scale(1.1) translate3d(-1.5%, 0, 0); } }
.hero-content { position: relative; z-index: 2; width: var(--wrap); margin-inline: auto; padding: 104px 0 80px; }
.hero-copy { max-width: 790px; }
.hero h1 { max-width: 850px; margin: 0; font-size: clamp(3.5rem, 7.35vw, 7.4rem); font-weight: 500; letter-spacing: -.075em; line-height: .88; text-wrap: balance; }
.hero h1 span { display: block; color: transparent; background: linear-gradient(90deg, #f5faff, #8ccfff 72%); -webkit-background-clip: text; background-clip: text; }
.hero-intro { max-width: 660px; margin: 32px 0 38px; color: #afc0d1; font-size: clamp(1rem, 1.3vw, 1.2rem); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-rail { position: absolute; z-index: 3; right: max(36px, calc((100vw - 1280px)/2)); bottom: 58px; width: min(410px, 32vw); padding: 20px 22px; border: 1px solid var(--line-strong); background: rgba(5, 15, 25, .74); backdrop-filter: blur(16px); }
.hero-rail-head, .system-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: #7f9cb7; font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .1em; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--cyan); }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; box-shadow: 0 0 2px var(--cyan); } }
.hero-rail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.hero-rail-grid div { padding: 12px 8px; background: #081521; }
.hero-rail-grid span { display: block; color: var(--muted-2); font-family: "IBM Plex Mono", monospace; font-size: .63rem; }
.hero-rail-grid strong { display: block; margin-top: 3px; color: #dcedf9; font-size: .76rem; }
.hero-mark { position: absolute; left: max(36px, calc((100vw - 1280px)/2)); bottom: 28px; z-index: 3; color: #5f7891; font-family: "IBM Plex Mono", monospace; font-size: .65rem; letter-spacing: .09em; }

.signal-band { border-bottom: 1px solid var(--line); background: #07121d; }
.signal-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.signal-item { min-height: 128px; padding: 27px 28px; border-right: 1px solid var(--line); transition: background .25s; }
.signal-item:first-child { border-left: 1px solid var(--line); }
.signal-item:hover { background: #0b1e2e; }
.signal-item small { display: block; color: var(--electric); font-family: "IBM Plex Mono", monospace; font-size: .66rem; letter-spacing: .1em; }
.signal-item strong { display: block; margin-top: 10px; font-size: 1rem; font-weight: 650; }
.services-home { background: linear-gradient(180deg, #07111b, #050b12); }
.service-grid { display: grid; grid-template-columns: repeat(12, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { grid-column: span 4; min-height: 330px; position: relative; overflow: hidden; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(8, 21, 34, .42); transition: background .3s, transform .3s; }
.service-card:first-child, .service-card:nth-child(5) { grid-column: span 6; }
.service-card:hover { z-index: 2; background: linear-gradient(145deg, #0c2740, #081522); box-shadow: 0 24px 70px rgba(0,0,0,.28); transform: translateY(-5px); }
.service-card::before { content: ""; position: absolute; width: 210px; height: 210px; right: -100px; bottom: -120px; border: 1px solid rgba(100, 190, 255, .2); border-radius: 50%; box-shadow: 0 0 0 30px rgba(89, 173, 255, .025), 0 0 0 60px rgba(89, 173, 255, .018); transition: .5s; }
.service-card:hover::before { transform: scale(1.35); border-color: rgba(100, 190, 255, .42); }
.service-card.has-photo::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, rgba(4,12,20,.98) 6%, rgba(4,12,20,.86) 48%, rgba(4,12,20,.38)), var(--service-image) center/cover; opacity: 0; transform: scale(1.04); transition: opacity .42s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.service-card.has-photo:hover::after { opacity: 1; transform: scale(1); }
.service-card > * { position: relative; z-index: 2; }
.service-code { display: flex; justify-content: space-between; color: #63809a; font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .08em; }
.service-card h3 { margin: 72px 0 14px; font-size: clamp(1.55rem, 2.3vw, 2.3rem); font-weight: 580; letter-spacing: -.04em; line-height: 1.08; }
.service-card p { max-width: 440px; margin: 0 0 27px; color: var(--muted); font-size: .91rem; }
.service-card .text-link { position: absolute; left: 34px; bottom: 32px; }
.service-card:nth-child(5), .service-card:nth-child(6), .service-card:nth-child(7) { background-color: rgba(12, 29, 44, .7); }

.showcase { overflow: hidden; background: #050a10; }
.showcase-track { display: grid; grid-template-columns: 1.35fr .65fr; min-height: 680px; border: 1px solid var(--line); }
.showcase-main { position: relative; overflow: hidden; }
.showcase-main img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.79) saturate(.88) contrast(1.03); transition: transform .7s, filter .4s; }
.showcase-main:hover img { transform: scale(1.025); filter: brightness(.83) saturate(.9); }
.showcase-label { position: absolute; inset: auto 0 0; padding: 44px; background: linear-gradient(transparent, rgba(3,8,13,.94)); }
.showcase-label span { color: var(--cyan); font-family: "IBM Plex Mono", monospace; font-size: .69rem; letter-spacing: .1em; }
.showcase-label h3 { max-width: 700px; margin: 8px 0 0; font-size: clamp(2rem, 4vw, 4rem); font-weight: 540; letter-spacing: -.055em; line-height: 1; }
.showcase-side { display: grid; grid-template-rows: 1fr 1fr; }
.mini-image { position: relative; overflow: hidden; border-left: 1px solid var(--line); }
.mini-image + .mini-image { border-top: 1px solid var(--line); }
.mini-image img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.74) saturate(.84) contrast(1.03); transition: .5s; }
.mini-image:hover img { transform: scale(1.04); filter: brightness(.8) saturate(.9); }
.mini-image span { position: absolute; left: 22px; bottom: 18px; color: white; font-size: .81rem; font-weight: 750; }

.pro-feature { overflow: hidden; background: #071627; }
.pro-feature::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 83% 45%, rgba(46, 136, 255, .22), transparent 34%); }
.pro-layout { position: relative; display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 110px; }
.pro-copy h2 { margin: 0; font-size: clamp(3rem, 5.5vw, 5.5rem); font-weight: 500; letter-spacing: -.065em; line-height: .96; }
.pro-copy > p:not(.eyebrow) { max-width: 620px; margin: 28px 0 34px; color: #adc3d8; }
.pro-logo-card { width: min(100%, 470px); display: inline-flex; align-items: center; margin-bottom: 30px; padding: 15px 20px; border: 1px solid rgba(144,202,255,.32); border-radius: 8px; background: rgba(255,255,255,.96); box-shadow: 0 22px 60px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.7); }
.pro-logo-card img { display: block; width: 100%; height: auto; image-rendering: auto; }
.page-hero .pro-logo-card { width: min(100%, 560px); margin-bottom: 35px; padding: 17px 22px; }
.system-card { position: relative; overflow: hidden; border: 1px solid rgba(121, 203, 255, .34); background: rgba(5, 18, 31, .66); box-shadow: 0 35px 100px rgba(0,0,0,.34); backdrop-filter: blur(10px); }
.system-card-head { margin: 0; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.system-flow { margin: 0; padding: 0; list-style: none; }
.system-flow li { display: grid; grid-template-columns: 54px 1fr 30px; align-items: center; min-height: 78px; padding: 0 22px; border-bottom: 1px solid var(--line); transition: background .25s; }
.system-flow li:hover { background: rgba(74, 162, 255, .09); }
.system-flow b { color: #54738f; font-family: "IBM Plex Mono", monospace; font-size: .7rem; }
.system-flow span { font-weight: 670; }
.system-flow i { width: 8px; height: 8px; border: 1px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 10px rgba(121,217,255,.5); }

.page-hero { min-height: 610px; display: grid; align-items: end; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,11,18,.98) 0%, rgba(5,11,18,.82) 47%, rgba(5,11,18,.16) 100%), linear-gradient(0deg, #050b12, transparent 48%); }
.page-hero-media { position: absolute; inset: 0 0 0 37%; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-x, 50%) var(--focus-y, 42%); image-rendering: auto; filter: brightness(.72) saturate(.8) contrast(1.02); }
.page-hero-media.focus-top { --focus-y: 25%; }
.page-hero-media.focus-upper { --focus-y: 33%; }
.page-hero-media.focus-person { --focus-x: 42%; --focus-y: 27%; }
.page-hero-media.focus-lower { --focus-y: 58%; }
.page-hero-media img[src*="izdelava-in-ozicenje"] { object-position: 42% 27%; }
.page-hero-media img[src*="tehnicni-detajl"],
.page-hero-media img[src*="krmilna-omara"],
.page-hero-media img[src*="mrezna-in-napajalna-oprema"],
.page-hero-media img[src*="zunanja-omara"] { object-position: 50% 32%; }
.page-hero-media img[src*="dvizna-ploscad"] { object-position: 50% 66%; }
.page-hero-media img[src*="izdelava-na-omari"] { object-position: 52% 42%; }
.page-hero-media img[src*="industrijski-energetski"] { object-position: 52% 46%; }
.page-hero-content { position: relative; z-index: 2; padding: 110px 0 76px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; color: #68839c; font-family: "IBM Plex Mono", monospace; font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumb a:hover { color: var(--cyan); }
.page-hero h1 { max-width: 980px; font-size: clamp(3.4rem, 7vw, 7rem); }
.page-hero-lead { max-width: 760px; margin: 28px 0 0; color: #afc0d1; font-size: clamp(1.05rem, 1.45vw, 1.25rem); }
.page-index { border-bottom: 1px solid var(--line); background: #07121d; }
.page-index .wrap { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.page-index a { flex: 0 0 auto; padding: 18px 0 16px; border-bottom: 2px solid transparent; color: #7d93a7; font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
.page-index a:hover, .page-index a[aria-current="page"] { border-color: var(--cyan); color: white; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.split.split-reverse .split-image { order: -1; }
.split-copy h2 { margin: 0; font-size: clamp(2.4rem, 4.5vw, 4.6rem); font-weight: 530; letter-spacing: -.055em; line-height: 1; }
.split-copy > p:not(.eyebrow) { margin: 28px 0 0; color: var(--muted); }
.split-image { min-height: 600px; position: relative; overflow: hidden; border: 1px solid var(--line); }
.split-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; filter: brightness(.8) saturate(.78); }
.split-image::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(153, 210, 255, .27); pointer-events: none; }
.capability-list { display: grid; gap: 0; margin: 38px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.capability-list li { display: grid; grid-template-columns: 44px 1fr; align-items: center; min-height: 64px; border-bottom: 1px solid var(--line); color: #d8e6f1; font-size: .91rem; }
.capability-list li::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--electric); transform: rotate(45deg); box-shadow: 0 0 12px rgba(61,141,255,.35); }
.history-section { overflow: hidden; background: linear-gradient(180deg, #071421 0%, #050b12 100%); }
.history-section::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(118, 184, 236, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(118, 184, 236, .04) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, #000, transparent 78%); }
.history-intro { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 100px; align-items: end; margin-bottom: 82px; }
.history-intro h2 { max-width: 760px; margin: 0; font-size: clamp(2.7rem, 5vw, 5.2rem); font-weight: 530; letter-spacing: -.06em; line-height: .98; }
.history-intro h2 strong { color: var(--cyan); font-weight: inherit; }
.history-lead { max-width: 610px; }
.history-lead p { margin: 0; color: #a9bdcf; font-size: 1rem; }
.history-lead p + p { margin-top: 20px; }
.history-timeline { position: relative; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); list-style: none; }
.history-timeline::before { content: ""; position: absolute; left: 188px; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--cyan), var(--line)); box-shadow: 0 0 20px rgba(121, 217, 255, .18); }
.history-timeline li { position: relative; display: grid; grid-template-columns: 188px 1fr; min-height: 195px; border-bottom: 1px solid var(--line); }
.history-year { padding: 33px 34px 28px 0; color: #82cfff; font-family: "IBM Plex Mono", monospace; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.history-point { position: relative; padding: 30px 42px 30px 54px; transition: background .3s; }
.history-point::before { content: ""; position: absolute; left: -6px; top: 37px; width: 11px; height: 11px; border: 1px solid var(--cyan); background: #071421; transform: rotate(45deg); box-shadow: 0 0 18px rgba(121,217,255,.55); }
.history-timeline li:hover .history-point { background: linear-gradient(90deg, rgba(61,141,255,.1), transparent 72%); }
.history-point span { color: #5f7f9b; font-family: "IBM Plex Mono", monospace; font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.history-point h3 { margin: 10px 0 10px; font-size: clamp(1.45rem, 2.4vw, 2.25rem); font-weight: 580; letter-spacing: -.04em; line-height: 1.06; }
.history-point p { max-width: 780px; margin: 0; color: var(--muted); font-size: .92rem; }
.history-timeline .is-current .history-year { color: white; }
.history-timeline .is-current .history-point::before { background: var(--cyan); box-shadow: 0 0 24px var(--cyan); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.process-step { min-height: 280px; padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(8, 22, 35, .5); }
.process-step small { color: var(--electric); font-family: "IBM Plex Mono", monospace; font-size: .67rem; letter-spacing: .08em; }
.process-step h3 { margin: 82px 0 12px; font-size: 1.35rem; font-weight: 620; }
.process-step p { margin: 0; color: var(--muted); font-size: .88rem; }
.statement { padding: 150px 0; text-align: center; background: radial-gradient(circle at 50% 50%, rgba(29, 103, 181, .18), transparent 36%); }
.statement h2 { max-width: 1050px; margin-inline: auto; }
.statement p { max-width: 700px; margin: 30px auto 0; color: var(--muted); }
.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.metric { padding: 36px; background: rgba(7, 20, 32, .55); }
.metric + .metric { border-left: 1px solid var(--line); }
.metric span { color: var(--cyan); font-family: "IBM Plex Mono", monospace; font-size: .67rem; letter-spacing: .09em; }
.metric strong { display: block; margin-top: 15px; font-size: 1.18rem; font-weight: 640; }
.metric p { margin: 8px 0 0; color: var(--muted); font-size: .84rem; }

.overview-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.overview-card { min-height: 350px; position: relative; overflow: hidden; padding: 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #081522; }
.overview-card.has-image { min-height: 450px; display: flex; flex-direction: column; justify-content: flex-end; }
.overview-card.has-image::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--image) center/cover; filter: brightness(.48) saturate(.65); transition: transform .6s, filter .4s; }
.overview-card.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #06101c 0%, rgba(6,16,28,.12) 75%); }
.overview-card:hover::before { transform: scale(1.04); filter: brightness(.6) saturate(.8); }
.overview-card > * { position: relative; z-index: 1; }
.overview-card small { color: var(--cyan); font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .1em; }
.overview-card h2, .overview-card h3 { margin: auto 0 15px; font-size: clamp(2rem, 3.5vw, 3.6rem); font-weight: 540; letter-spacing: -.05em; line-height: 1; }
.overview-card p { max-width: 550px; margin: 0 0 26px; color: #a9bdcf; }
.gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.gallery-filter button { min-height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); background: transparent; color: #9bb0c2; font-size: .75rem; font-weight: 800; cursor: pointer; }
.gallery-filter button:hover, .gallery-filter button.is-active { border-color: var(--cyan); background: rgba(61,141,255,.15); color: white; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 260px; gap: 12px; }
.gallery-item { grid-column: span 4; position: relative; overflow: hidden; padding: 0; border: 1px solid var(--line); background: #0a1824; color: white; cursor: zoom-in; }
.gallery-item.wide { grid-column: span 8; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.is-hidden { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.84) saturate(.86) contrast(1.02); transition: .5s; }
.gallery-item:hover img { transform: scale(1.04); filter: brightness(.9) saturate(.9); }
.gallery-item span { position: absolute; inset: auto 0 0; padding: 30px 20px 16px; background: linear-gradient(transparent, rgba(3,8,13,.92)); text-align: left; font-size: .78rem; font-weight: 750; }
.lightbox { width: min(1180px, calc(100% - 40px)); height: min(88vh, 900px); padding: 0; border: 1px solid var(--line-strong); background: #03080d; color: white; }
.lightbox::backdrop { background: rgba(1,5,9,.92); backdrop-filter: blur(8px); }
.lightbox[open] { display: grid; grid-template-rows: 1fr 58px; }
.lightbox img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox footer { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-top: 1px solid var(--line); }
.lightbox footer p { margin: 0; color: #afc1d0; font-size: .78rem; }
.lightbox-actions { display: flex; align-items: center; gap: 7px; }
.lightbox button { min-width: 42px; height: 42px; border: 1px solid var(--line-strong); background: transparent; color: white; cursor: pointer; }
.lightbox button:hover { border-color: var(--cyan); background: rgba(61,141,255,.15); }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.value { min-height: 300px; padding: 35px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(8,21,34,.5); }
.value i { display: block; width: 32px; height: 32px; border: 1px solid var(--electric); transform: rotate(45deg); }
.value h3 { margin: 82px 0 12px; font-size: 1.45rem; font-weight: 620; }
.value p { margin: 0; color: var(--muted); font-size: .9rem; }
.contact-layout { display: grid; grid-template-columns: .78fr 1.22fr; border: 1px solid var(--line-strong); background: #071522; }
.contact-info { padding: 58px; background: #09213a; }
.contact-info h2 { margin: 0; font-size: clamp(2.5rem, 4.5vw, 4.7rem); font-weight: 520; letter-spacing: -.06em; line-height: .98; }
.contact-info > p { margin: 24px 0 45px; color: #a8bdd0; }
.contact-links { display: grid; gap: 1px; background: var(--line); }
.contact-links a { display: grid; gap: 3px; padding: 18px; background: #09213a; transition: background .2s; }
.contact-links a:hover { background: #0c2b4a; }
.contact-links small { color: #6f91ae; font-family: "IBM Plex Mono", monospace; font-size: .63rem; letter-spacing: .08em; }
.contact-links strong { color: white; font-size: .93rem; }
.contact-links a[target="_blank"] strong::after { content: " ↗"; color: var(--cyan); font-weight: 500; }
.contact-form { display: grid; gap: 18px; padding: 58px; }
.contact-form label { display: grid; gap: 8px; color: #b6c9d9; font-size: .77rem; font-weight: 750; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 0; outline: none; background: #06121e; color: white; font-size: .92rem; }
.contact-form textarea { min-height: 145px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%); background-position: calc(100% - 19px) 23px, calc(100% - 13px) 23px; background-size: 6px 6px; background-repeat: no-repeat; }
.contact-form .button { justify-self: start; border: 0; cursor: pointer; }
.contact-form-note { margin: -7px 0 0; color: var(--muted-2); font-size: .72rem; }
.location-section { border-top: 1px solid var(--line); background: linear-gradient(180deg, #07131f, #050b12); }
.location-section .section-head > div:last-child { display: grid; justify-items: start; gap: 22px; }
.location-section .section-head p { margin: 0; }
.map-shell { position: relative; min-height: 520px; overflow: hidden; border: 1px solid var(--line-strong); background: #091522; box-shadow: 0 28px 70px rgba(0,0,0,.25); }
.map-shell::after { content: "ELMAR-A / ŽALEC"; position: absolute; right: 18px; bottom: 16px; z-index: 2; padding: 8px 10px; border: 1px solid rgba(255,255,255,.22); background: rgba(5,11,18,.86); color: white; font-family: "IBM Plex Mono", monospace; font-size: .63rem; letter-spacing: .08em; pointer-events: none; }
.map-shell iframe { display: block; width: 100%; height: 520px; border: 0; filter: saturate(.92) contrast(1.03); }

.reference-hero { min-height: calc(100svh - var(--header)); display: grid; align-items: center; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #05101b; }
.reference-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(4,11,19,.98) 0%, rgba(4,11,19,.88) 42%, rgba(4,11,19,.34) 74%, rgba(4,11,19,.18) 100%), linear-gradient(0deg, #050b12 0%, transparent 40%); }
.reference-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: linear-gradient(rgba(123,187,235,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(123,187,235,.04) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to right, #000, transparent 72%); }
.reference-hero-art { position: absolute; inset: 0; background: url('/assets/visual/reference-blueprint-v1.png') center/cover no-repeat; opacity: .84; }
.reference-hero-content { position: relative; z-index: 2; padding: 118px 0 92px; }
.reference-hero h1 { max-width: 1040px; margin: 0; font-size: clamp(3.8rem, 7.6vw, 7.8rem); font-weight: 500; letter-spacing: -.075em; line-height: .9; text-wrap: balance; }
.reference-hero h1 strong { display: block; color: transparent; background: linear-gradient(90deg, #f5faff, #79d9ff 72%); -webkit-background-clip: text; background-clip: text; font-weight: inherit; }
.reference-hero-lead { max-width: 720px; margin: 30px 0 38px; color: #b7c8d8; font-size: clamp(1.02rem, 1.35vw, 1.2rem); }
.reference-scope { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 76px; border: 1px solid var(--line); width: fit-content; background: var(--line); }
.reference-scope span { padding: 13px 17px; background: rgba(5,17,29,.88); color: #9eb4c7; font-family: "IBM Plex Mono", monospace; font-size: .67rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.reference-intro { background: linear-gradient(180deg, #07121d, #050b12); }
.reference-principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.reference-principles article { min-height: 310px; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(145deg, rgba(12,31,49,.78), rgba(6,17,28,.68)); }
.reference-principles small, .case-kicker { color: var(--cyan); font-family: "IBM Plex Mono", monospace; font-size: .67rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.reference-principles h3 { margin: 92px 0 14px; font-size: 1.55rem; font-weight: 600; letter-spacing: -.035em; }
.reference-principles p { margin: 0; color: var(--muted); font-size: .9rem; }
.reference-work { background: #040a10; }
.reference-cases { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.reference-case { grid-column: span 6; overflow: hidden; border: 1px solid var(--line); background: #081522; box-shadow: 0 30px 80px rgba(0,0,0,.18); }
.reference-case-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.34fr .66fr; min-height: 640px; }
.reference-case figure { min-height: 410px; position: relative; overflow: hidden; margin: 0; background: #07111a; }
.reference-case figure::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(3,9,15,.36), transparent 45%), linear-gradient(90deg, transparent 72%, rgba(5,14,23,.2)); }
.reference-case figure img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; filter: brightness(.88) saturate(.94) contrast(1.03); transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s; }
.reference-case:hover figure img { transform: scale(1.025); filter: brightness(.94) saturate(1); }
.reference-case-featured figure { min-height: 640px; }
.reference-case-landscape figure img { object-position: center 68%; }
.reference-case-copy { display: flex; flex-direction: column; padding: 38px; }
.reference-case-featured .reference-case-copy { justify-content: flex-end; padding: 48px; }
.reference-case h2 { margin: 14px 0 18px; font-size: clamp(2.2rem, 4vw, 4.4rem); font-weight: 530; letter-spacing: -.06em; line-height: .98; }
.reference-case:not(.reference-case-featured) h2 { font-size: clamp(2rem, 3.2vw, 3.2rem); }
.reference-case-copy > p:not(.case-kicker) { margin: 0; color: #a8bdcf; }
.case-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 34px 0 0; border: 1px solid var(--line); background: var(--line); }
.case-facts div { padding: 15px 16px; background: #07131f; }
.case-facts dt { margin-bottom: 4px; color: #68839c; font-family: "IBM Plex Mono", monospace; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.case-facts dd { margin: 0; color: #e6f2fb; font-size: .79rem; font-weight: 650; }
.reference-gallery-link { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 24px; padding: 26px 28px; border: 1px solid var(--line); background: rgba(9,27,43,.66); }
.reference-gallery-link p { margin: 0; color: #b3c6d6; }
.network-section { overflow: hidden; border-top: 1px solid var(--line); background: radial-gradient(circle at 88% 12%, rgba(45,130,221,.15), transparent 30%), linear-gradient(180deg, #07131f, #050b12); }
.network-section::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(123,187,235,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(123,187,235,.035) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, #000, transparent 92%); }
.network-section > .wrap { position: relative; }
.network-group + .network-group { margin-top: 88px; }
.network-group-head { display: grid; grid-template-columns: .72fr 1.28fr; gap: 60px; align-items: end; margin-bottom: 26px; }
.network-group-head .eyebrow { margin: 0; }
.network-group-head > p:last-child { max-width: 670px; margin: 0; color: var(--muted); font-size: .91rem; }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 1px; background: rgba(148,183,216,.22); }
.network-section-home { padding-block: 94px; }
.network-section-home .section-head { margin-bottom: 48px; }
.network-section-home .network-group + .network-group { margin-top: 56px; }
.network-section-home .network-group-head { margin-bottom: 18px; }
.network-section-home .logo-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.network-section-home .logo-grid > .logo-card { grid-column: span 2; min-height: 112px; gap: 10px; padding: 16px 14px 14px; }
.network-section-home .logo-grid > .logo-card:nth-last-child(4):nth-child(5n + 1) { grid-column: 2 / span 2; }
.network-section-home .logo-card img { height: 42px; }
.network-section-home .logo-grid-compact .logo-card { min-height: 108px; gap: 9px; padding: 15px 12px 13px; }
.network-section-home .logo-grid-compact .logo-card img { height: 38px; }
.network-section-home .logo-card span { font-size: .57rem; }
.logo-grid-compact { grid-template-columns: repeat(4, 1fr); }
.logo-grid-compact .logo-card { min-height: 138px; padding: 22px 18px 18px; gap: 14px; }
.logo-grid-compact .logo-card img { height: 52px; }
.logo-card { min-width: 0; min-height: 164px; position: relative; display: grid; place-items: center; align-content: center; gap: 20px; padding: 28px 24px 22px; overflow: hidden; background: #f5f7f9; color: #14202a; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, background .3s; }
.logo-card::after { content: "↗"; position: absolute; top: 13px; right: 15px; color: #8da0af; font-size: .76rem; opacity: 0; transform: translate(-4px, 4px); transition: .25s; }
.logo-card:hover { z-index: 2; background: #fff; box-shadow: 0 22px 54px rgba(0,0,0,.28); transform: translateY(-4px); }
.logo-card:hover::after { opacity: 1; transform: none; }
.logo-card img { width: min(100%, 205px); height: 62px; object-fit: contain; filter: saturate(.88); }
.logo-card span { color: #62717d; font-family: "IBM Plex Mono", monospace; font-size: .63rem; font-weight: 650; letter-spacing: .045em; text-align: center; text-transform: uppercase; }
.logo-card-type strong { line-height: 1; }
.logo-siemens strong { color: #009999; font-size: 1.85rem; letter-spacing: .045em; }
.logo-danfoss strong { padding: 10px 18px 11px; background: #e2000f; color: white; font-size: 1.45rem; font-style: italic; letter-spacing: -.04em; }
.logo-eaton strong { color: #004b87; font-size: 1.85rem; letter-spacing: .04em; }
.logo-mors strong { color: #243d56; font-size: 1.75rem; letter-spacing: .12em; }
.logo-bsh strong { color: #202830; font-size: 1.8rem; font-weight: 750; letter-spacing: .08em; }
.logo-sz strong { color: #005baa; font-size: 2.25rem; font-style: italic; letter-spacing: -.08em; }
.logo-card-dark { background: #0b1b29; color: white; }
.logo-card-dark:hover { background: #10273a; }
.logo-card-dark span { color: #9db0c0; }
.network-note { max-width: 850px; margin: 30px 0 0; color: #61788c; font-size: .72rem; }
.reference-process { overflow: hidden; background: linear-gradient(180deg, #071421, #050b12); }
.reference-process::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: url('/assets/visual/reference-blueprint-v1.png') center/cover no-repeat; opacity: .08; }
.reference-process > .wrap { position: relative; }

.cta { position: relative; overflow: hidden; padding: 110px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0a2036; }
.cta::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -210px; border: 1px solid rgba(108, 198, 255, .22); border-radius: 50%; box-shadow: 0 0 0 60px rgba(108,198,255,.025), 0 0 0 120px rgba(108,198,255,.018); }
.cta-inner { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 70px; align-items: end; }
.cta h2 { max-width: 920px; font-size: clamp(2.7rem, 5.6vw, 5.6rem); }
.site-footer { padding: 58px 0 24px; background: #03080d; }
.footer-main { display: grid; grid-template-columns: 1fr auto auto; gap: 80px; align-items: start; padding-bottom: 45px; }
.footer-brand img { width: 190px; height: auto; image-rendering: auto; }
.footer-brand p { max-width: 370px; margin: 20px 0 0; color: #687e91; font-size: .8rem; }
.footer-nav { display: grid; gap: 10px; }
.footer-nav strong { margin-bottom: 4px; color: #67829a; font-family: "IBM Plex Mono", monospace; font-size: .65rem; letter-spacing: .1em; }
.footer-nav a { color: #b1c1cf; font-size: .81rem; }
.footer-nav a:hover { color: var(--cyan); }
.footer-social { display: inline-flex; align-items: center; gap: 9px; color: #b1c1cf; font-size: .81rem; }
.footer-social::before { content: "in"; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #477fae; border-radius: 2px; color: #86c5ff; font-size: .67rem; font-weight: 850; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: #5d7285; font-size: .7rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1220px) and (min-width: 821px) {
  .nav-shell { grid-template-columns: 240px 1fr; gap: 22px; }
  .main-nav { justify-content: flex-end; }
  .nav-contact { display: none; }
}

@media (max-width: 1050px) {
  :root { --wrap: min(100% - 44px, 920px); }
  .nav-shell { grid-template-columns: 210px 1fr auto; gap: 15px; }
  .brand { min-height: 58px; padding: 8px 24px 8px 12px; }
  .brand img { width: 178px; }
  .main-nav { gap: 16px; }
  .main-nav > a { font-size: .72rem; }
  .main-nav > .nav-pro-link { min-height: 44px; padding: 7px 9px; }
  .main-nav > .nav-pro-link img { width: 106px; }
  .hero-rail { display: none; }
  .hero-media { left: 35%; }
  .service-card { grid-column: span 6; }
  .service-card:first-child, .service-card:nth-child(5) { grid-column: span 6; }
  .pro-layout, .split { gap: 60px; }
  .history-intro { gap: 60px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .split.split-reverse .split-image { order: initial; }
  .gallery-grid { grid-auto-rows: 220px; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-grid-compact { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  :root { --wrap: calc(100% - 34px); --header: 76px; }
  .section { padding: 92px 0; }
  .section-head, .pro-layout, .split, .contact-layout { grid-template-columns: 1fr; gap: 44px; }
  .history-intro { grid-template-columns: 1fr; gap: 34px; margin-bottom: 58px; }
  .history-timeline::before { left: 0; }
  .history-timeline li { grid-template-columns: 1fr; min-height: 0; padding: 30px 0 30px 28px; }
  .history-year { padding: 0 0 8px; }
  .history-point { padding: 0; }
  .history-point::before { left: -34px; top: 7px; }
  .nav-shell { display: flex; justify-content: space-between; }
  .brand { min-height: 56px; margin-left: 0; padding: 8px 24px 8px 11px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
  .brand::before { inset: 0; }
  .brand::after { top: -1px; left: -1px; width: 88px; }
  .brand img { width: 196px; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .main-nav { position: fixed; inset: var(--header) 0 auto; display: grid; gap: 0; padding: 12px 17px 22px; border-bottom: 1px solid var(--line); background: rgba(4, 11, 18, .97); transform: translateY(-120%); opacity: 0; pointer-events: none; transition: .3s; }
  .main-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav > a { padding: 15px 6px; border-bottom: 1px solid var(--line); font-size: .86rem; }
  .main-nav > a::after, .nav-contact { display: none; }
  .main-nav > .nav-pro-link { width: fit-content; min-width: 184px; min-height: 52px; justify-content: flex-start; margin: 10px 0 8px; padding: 9px 15px; border: 1px solid rgba(236,56,72,.92); }
  .main-nav > .nav-pro-link img { width: 132px; }
  .hero { min-height: 780px; align-items: end; }
  .hero-media { inset: 0; opacity: .62; }
  .hero::after { background: linear-gradient(0deg, #050b12 4%, rgba(5,11,18,.73) 58%, rgba(5,11,18,.4)); }
  .hero-content { padding: 170px 0 115px; }
  .hero h1 { font-size: clamp(3.4rem, 16vw, 5.4rem); }
  .hero-mark { left: 17px; bottom: 18px; }
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .signal-item:nth-child(2) { border-right: 0; }
  .service-card, .service-card:first-child, .service-card:nth-child(5) { grid-column: span 12; min-height: 310px; }
  .service-card.has-photo::after { opacity: .28; transform: none; }
  .showcase-track { grid-template-columns: 1fr; min-height: 850px; }
  .showcase-side { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .mini-image { border-left: 0; border-top: 1px solid var(--line); }
  .mini-image + .mini-image { border-left: 1px solid var(--line); }
  .page-hero { min-height: 570px; }
  .page-hero-media { inset: 0; opacity: .62; }
  .page-hero::after { background: linear-gradient(0deg, #050b12 3%, rgba(5,11,18,.78) 64%, rgba(5,11,18,.36)); }
  .page-hero-content { padding: 125px 0 60px; }
  .page-hero h1 { font-size: clamp(3.2rem, 14vw, 5.4rem); }
  .split-image { min-height: 500px; order: -1; }
  .overview-grid, .values-grid { grid-template-columns: 1fr; }
  .overview-card.has-image { min-height: 380px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .gallery-item, .gallery-item.wide { grid-column: span 1; }
  .gallery-item.tall { grid-row: span 1; }
  .metric-strip { grid-template-columns: 1fr; }
  .metric + .metric { border-left: 0; border-top: 1px solid var(--line); }
  .contact-info, .contact-form { padding: 38px 28px; }
  .cta-inner { grid-template-columns: 1fr; align-items: start; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 45px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1050px) {
  .network-section-home .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .network-section-home .logo-grid > .logo-card, .network-section-home .logo-grid > .logo-card:nth-last-child(4):nth-child(5n + 1) { grid-column: auto; }
  .network-section-home .logo-grid > .logo-card:last-child:nth-child(3n + 1) { grid-column: 2; }
  .reference-case-featured { grid-template-columns: 1fr; }
  .reference-case-featured figure { min-height: 520px; }
}

@media (max-width: 820px) {
  .reference-hero { min-height: 760px; align-items: end; }
  .reference-hero::before { background: linear-gradient(0deg, #050b12 3%, rgba(5,11,18,.76) 66%, rgba(5,11,18,.3)); }
  .reference-hero-art { background-position: 66% center; opacity: .62; }
  .reference-hero-content { padding: 130px 0 72px; }
  .reference-hero h1 { font-size: clamp(3.35rem, 14vw, 5.3rem); }
  .reference-scope { margin-top: 56px; }
  .reference-principles { grid-template-columns: 1fr; }
  .reference-principles article { min-height: 240px; }
  .reference-principles h3 { margin-top: 58px; }
  .reference-case, .reference-case-featured { grid-column: 1 / -1; }
  .reference-case figure, .reference-case-featured figure { min-height: 440px; }
  .reference-case-copy, .reference-case-featured .reference-case-copy { padding: 32px 28px; }
  .reference-gallery-link { align-items: flex-start; flex-direction: column; }
  .network-group-head { grid-template-columns: 1fr; gap: 18px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid-compact { grid-template-columns: repeat(2, 1fr); }
  .map-shell, .map-shell iframe { min-height: 430px; height: 430px; }
}

@media (max-width: 560px) {
  .network-section-home { padding-block: 76px; }
  .network-section-home .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .network-section-home .logo-card, .network-section-home .logo-grid-compact .logo-card { min-height: 108px; padding: 14px 10px 12px; }
  .network-section-home .logo-grid > .logo-card:last-child:nth-child(odd) { width: 50%; grid-column: 1 / -1; justify-self: center; }
  .reference-hero { min-height: 730px; }
  .reference-hero h1 { font-size: 3.45rem; }
  .reference-scope { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .reference-scope span { padding: 11px 12px; font-size: .6rem; }
  .reference-case figure, .reference-case-featured figure { min-height: 330px; }
  .reference-case h2, .reference-case:not(.reference-case-featured) h2 { font-size: 2.35rem; }
  .case-facts { grid-template-columns: 1fr; }
  .reference-gallery-link .button { width: 100%; }
  .network-group + .network-group { margin-top: 64px; }
  .logo-card { min-height: 144px; padding: 24px 16px 20px; }
  .logo-card img { height: 52px; }
}

@media (max-width: 560px) {
  .section-head { margin-bottom: 42px; }
  .section-head h2 { font-size: 2.65rem; }
  .hero h1 { font-size: 3.45rem; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .signal-grid { grid-template-columns: 1fr; }
  .signal-item, .signal-item:first-child { border-right: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .showcase-track { min-height: 740px; }
  .showcase-side { grid-template-columns: 1fr; }
  .mini-image + .mini-image { display: none; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: 240px; }
  .gallery-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .gallery-item, .gallery-item.wide { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
