/* MTeknik — corporate site styles. One accent colour, neutral greys, no decorative motion. */
/* Self-hosted fonts (Fontsource, latin / latin-ext / cyrillic) */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-tight-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-tight-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-tight-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --ink: #0f1b2d;
  --text: #3b4757;
  --muted: #667285;
  --line: #e2e6ec;
  --brand: #0b3d91;
  --brand-hover: #0a3277;
  --brand-soft: #e8eef8;
  --dark: #0f1b2d;
  --ok: #17663a;
  --signal: #16a34a; /* the only non-brand colour: tiny AUTO dot in the hero */
  --err: #b42318;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px -12px rgba(15, 27, 45, .12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Yu Gothic", sans-serif;
  --font-display: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Yu Gothic", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --grid-line: rgba(11, 61, 145, .06);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; margin: 0; font-family: var(--font-display); font-weight: 700; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.12; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3, .h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
.icon { flex: none; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow-left > * { max-width: 820px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent; font: 600 15px/1 var(--font); cursor: pointer; text-decoration: none !important; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-outline { background: #fff; color: var(--ink); border-color: #cdd3dc; }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand-soft); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { height: 36px; width: auto; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 8px 11px; border-radius: 6px; color: var(--ink); font-weight: 500; font-size: 15px; white-space: nowrap; }
.main-nav a:hover { background: var(--bg-alt); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.nav-cta-mobile { display: none !important; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex; }

/* Language menu */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { border-color: #c2c9d3; }
.lang-menu[open] summary .icon:last-child { transform: rotate(180deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.lang-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; color: var(--ink); }
.lang-list a:hover { background: var(--bg-alt); text-decoration: none; }
.lang-list a[aria-current] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.lang-native { flex: 1; }
.lang-code { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.lang-flag { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 23, 42, .1); flex-shrink: 0; }

/* Breadcrumbs */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 20px 24px 0; font-size: 14px; color: var(--muted); }
.breadcrumbs.container ol { padding-left: 0; padding-right: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #b3bac5; }
.breadcrumbs a { color: var(--muted); }

/* Sections */
.section { padding: 88px 0; }
.section-tight { padding: 48px 0 88px; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.eyebrow { margin: 0 0 12px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--text); margin-top: 16px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* Hero */
.hero { padding: 64px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-copy .lead { max-width: 560px; }

.page-hero { position: relative; isolation: isolate; padding: 48px 0 8px; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.page-hero h1 { max-width: 880px; }
.page-hero .lead { max-width: 720px; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.card h3, .feature h3 { margin: 18px 0 8px; }
.card p, .feature p { margin: 0; color: var(--muted); font-size: 15px; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.feature { padding: 8px 0; }

.sector { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: #dfe4ea; }
.sector img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sector::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 27, 45, .72), rgba(15, 27, 45, 0) 55%); }
.sector:hover img { transform: scale(1.05); }

.project-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.project-card[hidden] { display: none; }
.project-media { aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 20px 22px 24px; }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.project-year { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.project-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.project-body p { margin: 0; font-size: 14px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--bg-alt); color: var(--text); font-size: 12px; font-weight: 600; }
.badge-active { background: var(--brand-soft); color: var(--brand); }

.case-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; color: inherit; }
.case-card:hover { text-decoration: none; border-color: #c6cdd7; }
.case-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-alt); }
.case-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.case-card-body h2, .case-card-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.case-card-sm .case-card-body h3 { font-size: 1.05rem; margin: 0; }
.case-card-body p { color: var(--muted); font-size: 15px; }
.case-card-body .link-arrow { margin-top: auto; }
.case-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.case-hero { margin: 32px 0 0; border-radius: var(--radius-lg); overflow: hidden; }
.case-hero img { width: 100%; max-height: 620px; object-fit: cover; }

.partner-logos { flex: 1 1 560px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.partner-logos a { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 48px; padding: 4px 6px; border-radius: 6px; }
.partner-logos img { max-height: 32px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.partner-logos a:hover img, .partner-logos a:focus-visible img { filter: none; opacity: 1; }

.cta-band { position: relative; overflow: hidden; background: var(--dark); color: #c9d2de; padding: 64px 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 620px; }

/* Projects toolbar */
.toolbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.segmented { display: inline-flex; background: var(--bg-alt); border-radius: 10px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.segmented button { border: 0; background: transparent; padding: 0 16px; min-height: 40px; border-radius: 7px; font: 600 14px var(--font); color: var(--text); cursor: pointer; }
.segmented button span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.segmented button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 27, 45, .12); }
.search { display: flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 48px; border: 1px solid #cdd3dc; border-radius: 10px; background: #fff; color: var(--muted); min-width: min(320px, 100%); }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search input { border: 0; outline: 0; font: 15px var(--font); flex: 1; min-width: 0; background: none; color: var(--ink); }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* Prose */
.prose { max-width: 760px; }
.prose p, .prose li { font-size: 1.05rem; }
.prose h2 { font-size: 1.4rem; margin: 2em 0 .6em; }
.prose h3 { margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.legal { font-size: 15px; }
.notice { background: var(--bg-alt); border-left: 3px solid var(--brand); padding: 12px 16px; border-radius: 6px; font-size: 14px; }
.check-list { list-style: none; padding: 0 !important; margin: 0 0 1.4em; }
.check-list li { display: flex; gap: 12px; margin-bottom: 12px; }
.check-list .icon { color: var(--brand); margin-top: 4px; }
.rounded-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }

.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline-year { font-size: 1.5rem; font-weight: 650; color: var(--brand); font-variant-numeric: tabular-nums; }
.timeline h3 { margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 16, 26, .86); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 8px; }
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.info-list { list-style: none; margin: 0 0 24px; padding: 0; }
.info-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-list li:first-child { border-top: 1px solid var(--line); }
.info-list .icon { color: var(--brand); margin-top: 3px; }
.info-list span { display: block; font-size: 13px; color: var(--muted); }
.info-list a, .info-list address, .info-list p { font-style: normal; color: var(--ink); font-weight: 600; margin: 0; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); }
.topics { border: 0; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.topics legend { font-weight: 600; color: var(--ink); margin-bottom: 12px; padding: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid #cdd3dc; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.req { color: var(--err); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cdd3dc; border-radius: 8px; font: 16px var(--font); color: var(--ink); background: #fff; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field [aria-invalid="true"] { border-color: var(--err); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text); margin: 4px 0 20px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.consent.invalid { color: var(--err); }
.field input[type="file"] { min-height: 0; padding: 10px; background: var(--bg-alt); font-size: 14px; }
.field-hint { margin: 0; font-size: 13px; color: var(--muted); }
.map-frame { height: 380px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #f4f6f9; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; color: var(--muted); }
.map-placeholder p { margin: 0; max-width: 460px; }
.map-placeholder .icon, .map-placeholder svg { color: var(--brand); }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.form-secure { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--muted); }
.form-secure .icon { color: var(--ok); }
.form-status { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; background: #fdecea; color: var(--err); }
.form-success { text-align: center; padding: 48px 16px; }
.form-success h2 { margin: 20px 0 8px; font-size: 1.5rem; }
.success-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #e7f4ec; color: var(--ok); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--dark); color: #a9b4c3; font-size: 14px; padding-top: 64px; }
.site-footer a { color: #d5dce6; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 16px; }
.footer-title { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; letter-spacing: 0; }
.footer-links, .footer-langs, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-links li, .footer-langs li { margin-bottom: 8px; }
.footer-links .link-button { color: #d5dce6; }
.footer-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.footer-langs a[aria-current] { color: #fff; font-weight: 600; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 8px; }
.footer-contact .icon { margin-top: 3px; color: #7f8ba0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; padding-bottom: 32px; }
.footer-bottom p { margin: 0 0 6px; }
.footer-fine { font-size: 12px; color: #7f8ba0; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: center; }
.cookie-banner[hidden] { display: none; }
.cookie-inner { width: 100%; max-width: 1040px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 12px 40px -12px rgba(15, 27, 45, .35); padding: 20px 24px; display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center; }
.cookie-text h2 { font-size: 1rem; margin-bottom: 4px; }
.cookie-text p { margin: 0; font-size: 14px; }
.cookie-options { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cookie-options[hidden] { display: none; }
.cookie-option { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.cookie-option input { width: 20px; height: 20px; flex: none; accent-color: var(--brand); }
.cookie-option em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 6px; }
.cookie-option small { color: var(--muted); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-actions [hidden] { display: none; }

/* Responsive */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* 6 nav items + language + CTA: drop the CTA first, then collapse to the menu button */
@media (max-width: 1240px) { .header-cta { display: none !important; } }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; gap: 0; padding: 8px 16px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: none; }
  .nav-cta-mobile { display: inline-flex !important; margin-top: 16px; border-bottom: 0 !important; color: #fff !important; }
}
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cookie-inner { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 32px 0 64px; }
  .hero { padding-top: 40px; }
  .grid-2, .grid-3, .grid-4, .form-row, .cookie-options { grid-template-columns: 1fr; }
  .partner-logos { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .lang-list { width: min(240px, calc(100vw - 32px)); }
  .toolbar .segmented, .search { width: 100%; }
  .segmented button { flex: 1; }
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .cookie-banner, .cta-band { display: none; }
}
.section-more { margin: 28px 0 0; }

/* ───────────── Home page ───────────── */
/* Hero cockpit */
.hero-cockpit { position: relative; padding: 56px 0 72px; isolation: isolate; }
.hero-cockpit::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(ellipse at 30% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 30% 0%, #000 20%, transparent 75%); }
@media (min-width: 961px) { .hero-cockpit .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.hero-cockpit h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.06; letter-spacing: -0.035em; }
.hero-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 24px; font: 500 12px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px; background: var(--ink); color: #fff; }
.signal-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.hero-pill .signal-dot { background: var(--brand); } /* --signal is reserved for the live AUTO dot */

.cockpit { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 28px 64px -36px rgba(15, 27, 45, .4); }
.cockpit-bar { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 6px 6px 16px; border-bottom: 1px solid var(--line); font: 500 12px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.cockpit-name { flex: 1; min-width: 0; text-transform: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* project names are Latin data: uppercase under lang=tr would give "İ" */
.cockpit-auto { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.cockpit.is-running .cockpit-auto .signal-dot { animation: signal-pulse 2.4s ease-out infinite; }
.cockpit.is-stopped .cockpit-auto .signal-dot { background: #a3adba; }
@keyframes signal-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--signal) 0%, transparent); } }
.cockpit-toggle { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
.cockpit-toggle:hover { border-color: var(--ink); }
.cockpit-toggle[hidden] { display: none; }
.cockpit-toggle .icon-play, .cockpit.is-stopped .cockpit-toggle .icon-pause { display: none; }
.cockpit.is-stopped .cockpit-toggle .icon-play { display: block; }

.cockpit-stage { position: relative; aspect-ratio: 16 / 10; background: var(--dark); overflow: hidden; }
.cockpit-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.cockpit-slide.is-on { opacity: 1; }
.cockpit-slide a { display: block; height: 100%; color: inherit; text-decoration: none; }
.cockpit-slide a:focus-visible { outline-offset: -4px; }
.cockpit-slide a::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(180deg, rgba(15, 27, 45, 0) 55%, rgba(15, 27, 45, .5)); background-size: 40px 40px, 40px 40px, auto; }
.cockpit-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform .9s ease; }
.cockpit.is-motion .cockpit-slide.is-on img { transform: scale(1.06); transition: transform 7s linear; }
.cockpit-cta { position: absolute; right: 14px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink); font: 600 14px/1 var(--font); }
.cockpit-slide a:hover .cockpit-cta { color: var(--brand); }

.cockpit-ro { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; border-bottom: 1px solid var(--line); }
.cockpit-ro > div { min-width: 0; padding: 12px 16px; }
.cockpit-ro > div:not([hidden]) ~ div { border-left: 1px solid var(--line); }
.cockpit-ro dt, .twin-ro dt { font: 500 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cockpit-ro dd { margin: 4px 0 0; font: 600 1.05rem/1.3 var(--font-display); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

.cockpit-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cockpit-tabs[hidden] { display: none; }
.cockpit-tab { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 52px; padding: 10px 14px; border: 0; background: #fff; box-shadow: -1px -1px 0 var(--line); color: var(--muted); font: 500 13px/1.3 var(--font); text-align: left; cursor: pointer; }
.cockpit-tab:hover { background: var(--bg-alt); color: var(--ink); }
.cockpit-tab:focus-visible { outline-offset: -3px; }
.cockpit-tab[aria-selected="true"] { color: var(--ink); }
.cockpit-tab-num { flex: none; font: 500 11px/1 var(--font-mono); color: var(--brand); }
.cockpit-tab-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cockpit-tab-bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; overflow: hidden; }
.cockpit-tab[aria-selected="true"] .cockpit-tab-bar { background: var(--brand); }
.cockpit.is-running .cockpit-tab[aria-selected="true"] .cockpit-tab-bar { background: var(--line); }
.cockpit.is-running .cockpit-tab[aria-selected="true"] .cockpit-tab-bar::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform-origin: left; animation: tab-progress 6s linear forwards; }
@keyframes tab-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Project ticker */
.ticker { overflow: hidden; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker-track { display: flex; width: max-content; animation: ticker 90s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.is-offscreen .ticker-track { animation-play-state: paused; }
.ticker:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.ticker-list { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker-list li { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-right: 1px solid var(--line); white-space: nowrap; font: 500 13px/1.2 var(--font-mono); letter-spacing: .03em; color: var(--ink); }
.ticker-list li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--brand); transform: rotate(45deg); }
.ticker-list span { color: var(--muted); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* One building, one screen */
.twin { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
.twin-tabs { display: flex; flex-direction: column; gap: 8px; }
.twin-tab { display: flex; gap: 16px; align-items: flex-start; width: 100%; min-height: 44px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.twin-tab:hover { border-color: #c2c9d3; }
.twin-tab[aria-selected="true"] { border-color: var(--brand); box-shadow: inset 3px 0 0 var(--brand); }
.twin-tab-num { flex: none; font: 500 12px/1.65 var(--font-mono); color: var(--muted); }
.twin-tab[aria-selected="true"] .twin-tab-num { color: var(--brand); }
.twin-tab-text { min-width: 0; }
.twin-tab-text strong { display: block; font: 600 1.05rem/1.3 var(--font-display); color: var(--ink); }
.twin-tab-text span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.twin-screen { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt) radial-gradient(rgba(15, 27, 45, .1) 1px, transparent 1px) 0 0 / 20px 20px; }
.twin-bar { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; font: 500 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.twin-note { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--brand); }
.twin-svg { display: block; width: 100%; height: auto; padding: 12px 12px 0; }
.twin-ro { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 4px 16px 16px; }
.twin-ro[hidden] { display: none; }
.twin-ro > div { min-width: 0; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.twin-ro dd { margin: 4px 0 0; font: 600 1.3rem/1.2 var(--font-display); color: var(--ink); overflow-wrap: anywhere; }
/* SVG drawing: thin ink tints; the active layer is brand blue with moving flow dashes */
.tw-base { stroke: #b4bfcc; stroke-width: 1.2; }
.tw-thin { stroke: #d5dbe3; }
.tw-ground { stroke: var(--ink); stroke-width: 1.5; }
.tw-win { fill: #fff; stroke: #d5dbe3; }
.tw-hatch { stroke: #c3ccd7; }
.tw-label { font: 500 10px var(--font-mono); letter-spacing: .04em; fill: #8a96a6; stroke: none; }
.tw-layer { stroke: #c3ccd7; stroke-width: 1.4; transition: stroke .3s; }
.tw-layer .tw-node { fill: #fff; }
.twin[data-active="hvac"] [data-layer="hvac"], .twin[data-active="energy"] [data-layer="energy"],
.twin[data-active="light"] [data-layer="light"], .twin[data-active="safety"] [data-layer="safety"] { stroke: var(--brand); stroke-width: 1.8; }
.twin[data-active="hvac"] [data-layer="hvac"] .tw-node, .twin[data-active="energy"] [data-layer="energy"] .tw-node,
.twin[data-active="light"] [data-layer="light"] .tw-node, .twin[data-active="safety"] [data-layer="safety"] .tw-node { fill: var(--brand-soft); }
.twin[data-active="hvac"] [data-layer="hvac"] .tw-label, .twin[data-active="energy"] [data-layer="energy"] .tw-label,
.twin[data-active="light"] [data-layer="light"] .tw-label, .twin[data-active="safety"] [data-layer="safety"] .tw-label { fill: var(--brand); }
.twin[data-active="hvac"] [data-layer="hvac"] .tw-flow, .twin[data-active="energy"] [data-layer="energy"] .tw-flow,
.twin[data-active="light"] [data-layer="light"] .tw-flow, .twin[data-active="safety"] [data-layer="safety"] .tw-flow { stroke-dasharray: 5 7; animation: tw-flow 1.2s linear infinite; }
.twin[data-active="hvac"] [data-layer="hvac"] .tw-flow-slow, .twin[data-active="energy"] [data-layer="energy"] .tw-flow-slow, .twin[data-active="light"] [data-layer="light"] .tw-flow-slow, .twin[data-active="safety"] [data-layer="safety"] .tw-flow-slow { stroke-dasharray: 2 10; animation-duration: 2.4s; }
.twin.is-offscreen .tw-flow { animation-play-state: paused; }
@keyframes tw-flow { to { stroke-dashoffset: -24; } }

/* Numbers */
.numbers-lead { max-width: 400px; margin: 0; }
.num-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid #cfd6df; }
.num-grid > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 12px; min-width: 0; padding: 28px 24px 0 0; }
.num-grid dd { margin: 0; font: 700 clamp(2rem, 3.6vw, 3.5rem)/1 var(--font-display); letter-spacing: -0.04em; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.num-grid dt { font: 500 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Capabilities bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; min-width: 0; min-height: 280px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.tile h3 { margin: 0 0 20px; font-size: 1.35rem; line-height: 1.22; letter-spacing: -0.02em; }
.tile-tag { margin: 0 0 12px; font: 500 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.tile-wide { grid-column: span 2; padding-bottom: 0; overflow: hidden; }
.tile-dark { background: var(--dark); border-color: var(--dark); color: #c9d2de; }
.tile-dark h3 { color: #fff; max-width: 540px; }
.tile-dark .tile-tag { color: #9db7e6; }
.tile-shot { height: 240px; margin: auto -28px 0 28px; border: 1px solid rgba(255, 255, 255, .14); border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; overflow: hidden; }
.tile-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.tile-brand { background: var(--brand); border-color: var(--brand); color: #dbe5f7; }
.tile-brand h3 { color: #fff; }
.tile-brand .tile-tag { color: #c9d8f3; }
.tile-figure { margin: auto 0 0; font: 700 clamp(2.6rem, 4vw, 3.5rem)/1 var(--font-display); letter-spacing: -0.04em; color: #fff; font-variant-numeric: tabular-nums; }
.tile-figure span { display: block; margin-top: 10px; font: 500 12px/1.45 var(--font-mono); letter-spacing: .02em; color: #dbe5f7; }
.tile-soft { background: var(--brand-soft); border-color: transparent; }
.tile-soft p { margin: auto 0 0; font-size: 15px; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 0; list-style: none; }
.chips li { padding: 8px 12px; border-radius: 999px; background: var(--bg-alt); font: 500 12px/1 var(--font-mono); color: var(--ink); }
.node-svg { display: block; width: 100%; height: auto; margin-top: auto; }
.node-links { stroke: #c3ccd7; stroke-width: 1.3; }
.node-dot { fill: #fff; stroke: var(--ink); stroke-width: 1.3; }
.node-label { font: 500 10px var(--font-mono); fill: var(--muted); }
.node-hub { fill: var(--brand); }
.node-hub-label { font: 500 11px var(--font-mono); letter-spacing: .06em; fill: #fff; }

/* Sectors */
.sector-name { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; color: #fff; font-weight: 600; font-size: 1.1rem; }
.sector-count { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 6px 10px; border-radius: 999px; background: rgba(15, 27, 45, .64); color: #fff; font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }

/* Project index */
.pindex { border-top: 1px solid #cfd6df; }
.pi-head, .pi-row { display: grid; grid-template-columns: 104px minmax(0, 3fr) minmax(0, 1.4fr) minmax(0, 1.3fr) 88px; gap: 16px; align-items: center; padding: 0 12px; }
.pi-head { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font: 500 11px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pi-head span:last-child, .pi-io { text-align: right; }
.pi-list { margin: 0; padding: 0; list-style: none; }
.pi-row { position: relative; min-height: 72px; padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--text); transition: background-color .2s; }
.pi-row:hover { background: var(--bg-alt); text-decoration: none; }
.pi-row:focus-visible { outline-offset: -3px; }
.pi-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pi-year { font: 500 13px/1.3 var(--font-mono); color: var(--muted); }
.pi-name { font: 600 1.15rem/1.3 var(--font-display); color: var(--ink); }
.pi-row:hover .pi-name { color: var(--brand); }
.pi-sector { font-size: 14px; }
.pi-platform { font: 500 13px/1.3 var(--font-mono); }
.pi-io { font: 600 1rem/1.3 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.pi-thumb { position: absolute; right: 24%; top: 50%; z-index: 2; width: 200px; height: 132px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 40px -16px rgba(15, 27, 45, .45); pointer-events: none; opacity: 0; transform: translateY(-50%) scale(.96); transition: opacity .2s, transform .25s; }
.pi-row:hover .pi-thumb { opacity: 1; transform: translateY(-50%) scale(1); }
@media (hover: none) { .pi-thumb { display: none; } }

/* Partners strip */
.partners-strip { padding: 48px 0; border-top: 1px solid var(--line); }
.partners-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.partners-text { flex: 0 1 280px; }
.partners-text .eyebrow { margin-bottom: 6px; color: var(--ink); }
.partners-text p { margin: 0; font-size: 14px; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .twin { grid-template-columns: 1fr; gap: 32px; }
  .num-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pi-head, .pi-row { grid-template-columns: 88px minmax(0, 2.4fr) minmax(0, 1.2fr) 80px; }
  .pi-platform, .pi-head span:nth-child(4) { display: none; }
}
@media (max-width: 640px) {
  .hero-cockpit { padding: 32px 0 48px; }
  .cockpit-bar { padding-left: 12px; }
  .cockpit-ro > div { padding: 10px 12px; }
  .cockpit-ro dd { font-size: .95rem; }
  .cockpit-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .cockpit-tab { justify-content: center; padding: 10px 4px; }
  .cockpit-tab-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ticker-list li { padding: 14px 20px; }
  .twin-ro { grid-template-columns: 1fr; }
  .twin-ro > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .twin-ro dd { margin: 0; text-align: right; font-size: 1.1rem; }
  .num-grid dd { font-size: 1.9rem; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .tile { min-height: 0; padding: 24px; }
  .tile-wide { padding-bottom: 0; }
  .tile-shot { height: 180px; margin: 8px -24px 0 24px; }
  .pi-head { display: none; }
  .pi-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "year io" "name name" "sector sector"; gap: 4px 12px; padding: 16px 4px; }
  .pi-year { grid-area: year; } .pi-io { grid-area: io; } .pi-name { grid-area: name; } .pi-sector { grid-area: sector; color: var(--muted); }
  .pi-row > .pi-name { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .pi-thumb { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cockpit-auto .signal-dot, .cockpit-tab-bar::after, .ticker-track, .tw-flow { animation: none !important; }
  .cockpit-slide img { transform: none !important; }
  .ticker { overflow-x: auto; }
  .ticker-list[aria-hidden="true"] { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Case study cards: the card image cycles through the project's SCADA/HMI screens */
.case-shots { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.case-card .case-shots img { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity .9s ease; }
.case-card .case-shots img.is-on { opacity: 1; }
.shots-count { position: absolute; right: 12px; bottom: 12px; padding: 3px 8px; border-radius: 999px; background: rgba(15, 23, 42, .72); color: #fff; font: 500 11px/1.4 var(--font-mono); letter-spacing: .04em; }
