/* GAUT public site. Three identity drafts share one layout and differ through the variables below. */
/* Self-hosted variable fonts (SIL Open Font License). Only the active theme's files are downloaded. */
@font-face { font-family: "GAUT Inter"; font-weight: 100 900; font-display: swap; src: url(/site/fonts/inter-latin-ext-wght-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: "GAUT Inter"; font-weight: 100 900; font-display: swap; src: url(/site/fonts/inter-latin-wght-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: "GAUT Newsreader"; font-weight: 200 800; font-display: swap; src: url(/site/fonts/newsreader-latin-ext-wght-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: "GAUT Newsreader"; font-weight: 200 800; font-display: swap; src: url(/site/fonts/newsreader-latin-wght-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: "GAUT Jost"; font-weight: 100 900; font-display: swap; src: url(/site/fonts/jost-latin-ext-wght-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: "GAUT Jost"; font-weight: 100 900; font-display: swap; src: url(/site/fonts/jost-latin-wght-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: "GAUT Jakarta"; font-weight: 200 800; font-display: swap; src: url(/site/fonts/plus-jakarta-sans-latin-ext-wght-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: "GAUT Jakarta"; font-weight: 200 800; font-display: swap; src: url(/site/fonts/plus-jakarta-sans-latin-wght-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; }

:root {
  --font-body: "GAUT Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: var(--font-body);
  --wrap: 1160px;
}
[data-theme="rendszer"] {
  --bg: #F4F7F7; --surface: #FFFFFF; --alt: #E9EFEF; --ink: #102A43; --muted: #4A5F73; --line: #CFDADA;
  --accent: #007F82; --accent-strong: #007F82; --accent-text: #006B6E; --on-accent: #FFFFFF; --link: #006B6E;
  --bt: #F7FAFA; --bl: #DCE5E8; --br: #C7D3D8; --bline: #AEBFC6; --bwin: #9DB0B8; --ground: #E6EDEE; --grid: #D2DCDF;
  --radius: 2px; --head-weight: 650; --head-track: -0.01em; --hero-bg: linear-gradient(180deg, #EEF3F3, #F4F7F7);
  --wordmark-track: 0.02em; --wordmark-weight: 800;
}
[data-theme="struktura"] {
  --bg: #F2EFE9; --surface: #FBF9F5; --alt: #E8E3DA; --ink: #252B2F; --muted: #5A5F61; --line: #D6CFC3;
  --accent: #B36C45; --accent-strong: #9A5733; --accent-text: #8C4D2D; --on-accent: #FFFFFF; --link: #8C4D2D;
  --font-head: "GAUT Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: "GAUT Jost", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --bt: #D9D4CA; --bl: #4A5257; --br: #2F363A; --bline: #6A7378; --bwin: #7E888D; --ground: #E4DED3; --grid: #D6CFC3;
  --radius: 0px; --head-weight: 500; --head-track: -0.015em; --hero-bg: var(--bg);
  --wordmark-track: 0.16em; --wordmark-weight: 500;
}
[data-theme="szinkron"] {
  --bg: #152C52; --surface: #1B3662; --alt: #10244A; --ink: #F6F8FB; --muted: #B6C3D8; --line: #2B4570;
  --accent: #C5E64A; --accent-strong: #C5E64A; --accent-text: #C5E64A; --on-accent: #152C52; --link: #C5E64A;
  --font-body: "GAUT Jakarta", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --bt: #2A4676; --bl: #1D3A6B; --br: #16305C; --bline: #3B5A8E; --bwin: #4C6EA4; --ground: #132B52; --grid: #1F3A68;
  --radius: 6px; --head-weight: 650; --head-track: -0.02em; --hero-bg: var(--bg);
  --wordmark-track: 0.01em; --wordmark-weight: 800;
}

/* Day / night. "Auto" follows the visitor's device; the switch in the header can force light or dark (data-mode on <html>).
   The identity drafts are light (Rendszer, Struktúra) or dark (Szinkron) by design; each gets the opposite palette below. */
@media (prefers-color-scheme: dark) { :root[data-theme="rendszer"]:not([data-mode="light"]) {
  --bg: #0F1B26; --surface: #162533; --alt: #1B2D3D; --ink: #E6EEF3; --muted: #9FB1C0; --line: #2A3D4D;
  --accent: #3CC4C7; --accent-strong: #2FB4B7; --accent-text: #4FD0D3; --on-accent: #06222A; --link: #4FD0D3;
  --bt: #223548; --bl: #1A2B3B; --br: #142331; --bline: #3B556B; --bwin: #4F6C84; --ground: #122130; --grid: #21364A;
  --hero-bg: linear-gradient(180deg, #132230, #0F1B26); --hero-filter: invert(1) hue-rotate(180deg) brightness(.9); --hero-blend: lighten;
  color-scheme: dark;
} }
:root[data-theme="rendszer"][data-mode="dark"] {
  --bg: #0F1B26; --surface: #162533; --alt: #1B2D3D; --ink: #E6EEF3; --muted: #9FB1C0; --line: #2A3D4D;
  --accent: #3CC4C7; --accent-strong: #2FB4B7; --accent-text: #4FD0D3; --on-accent: #06222A; --link: #4FD0D3;
  --bt: #223548; --bl: #1A2B3B; --br: #142331; --bline: #3B556B; --bwin: #4F6C84; --ground: #122130; --grid: #21364A;
  --hero-bg: linear-gradient(180deg, #132230, #0F1B26); --hero-filter: invert(1) hue-rotate(180deg) brightness(.9); --hero-blend: lighten;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root[data-theme="struktura"]:not([data-mode="light"]) {
  --bg: #1C1D1E; --surface: #242526; --alt: #2B2C2D; --ink: #ECE7DE; --muted: #A9A59C; --line: #3A3A38;
  --accent: #D9906A; --accent-strong: #C97E55; --accent-text: #E2A07C; --on-accent: #1C1D1E; --link: #E2A07C;
  --bt: #55575A; --bl: #34393C; --br: #25292B; --bline: #6A7378; --bwin: #7E888D; --ground: #26272A; --grid: #3A3A38;
  --hero-filter: invert(1) hue-rotate(180deg) brightness(.9); --hero-blend: lighten; --hero-builtin-filter: brightness(.78); --hero-builtin-blend: normal;
  color-scheme: dark;
} }
:root[data-theme="struktura"][data-mode="dark"] {
  --bg: #1C1D1E; --surface: #242526; --alt: #2B2C2D; --ink: #ECE7DE; --muted: #A9A59C; --line: #3A3A38;
  --accent: #D9906A; --accent-strong: #C97E55; --accent-text: #E2A07C; --on-accent: #1C1D1E; --link: #E2A07C;
  --bt: #55575A; --bl: #34393C; --br: #25292B; --bline: #6A7378; --bwin: #7E888D; --ground: #26272A; --grid: #3A3A38;
  --hero-filter: invert(1) hue-rotate(180deg) brightness(.9); --hero-blend: lighten; --hero-builtin-filter: brightness(.78); --hero-builtin-blend: normal;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root[data-theme="szinkron"]:not([data-mode="dark"]) {
  --bg: #F3F6FA; --surface: #FFFFFF; --alt: #E6ECF4; --ink: #152C52; --muted: #4B5F7F; --line: #CBD5E3;
  --accent: #5F7D00; --accent-strong: #5F7D00; --accent-text: #5F7D00; --on-accent: #FFFFFF; --link: #4F6A00;
  --bt: #FFFFFF; --bl: #DCE5F2; --br: #C5D3E8; --bline: #9DB2D2; --bwin: #7F9AC4; --ground: #E4EBF5; --grid: #D0DAEA;
  --hero-filter: invert(1) hue-rotate(180deg) brightness(1.05); --hero-blend: multiply;
  color-scheme: light;
} }
:root[data-theme="szinkron"][data-mode="light"] {
  --bg: #F3F6FA; --surface: #FFFFFF; --alt: #E6ECF4; --ink: #152C52; --muted: #4B5F7F; --line: #CBD5E3;
  --accent: #5F7D00; --accent-strong: #5F7D00; --accent-text: #5F7D00; --on-accent: #FFFFFF; --link: #4F6A00;
  --bt: #FFFFFF; --bl: #DCE5F2; --br: #C5D3E8; --bline: #9DB2D2; --bwin: #7F9AC4; --ground: #E4EBF5; --grid: #D0DAEA;
  --hero-filter: invert(1) hue-rotate(180deg) brightness(1.05); --hero-blend: multiply;
  color-scheme: light;
}
:root[data-theme="szinkron"]:not([data-mode]) { color-scheme: dark; }
.mode-btn { display: inline-flex; align-items: center; justify-content: center; order: 3; width: 36px; height: 36px; flex: none; padding: 0; border: 0; border-radius: var(--radius); background: none; color: var(--ink); cursor: pointer; }
.mode-btn:hover { color: var(--accent-text); }
.mode-btn svg { width: 22px; height: 22px; display: none; }
:root:not([data-mode]) .mode-auto, :root[data-mode="light"] .mode-light, :root[data-mode="dark"] .mode-dark { display: block; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-track); line-height: 1.12; margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent-strong); color: var(--on-accent); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.preview-bar { background: var(--ink); color: var(--bg); text-align: center; font-size: 13px; padding: 6px 14px; }
.preview-bar.draft { background: #B45309; color: #fff; font-weight: 600; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 28px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.logo { display: none; }
[data-theme="rendszer"] .logo-rendszer, [data-theme="struktura"] .logo-struktura, [data-theme="szinkron"] .logo-szinkron { display: block; }
.logo svg { display: block; height: 52px; width: auto; }
.logo-ink { fill: var(--ink); }
.logo-accent { fill: var(--accent); }
/* The small "MÉRNÖKIRODA" line is live text (sharp at any size); the mark and the wordmark are traced vectors. */
.logo-desc { fill: var(--ink); font-family: var(--font-body); font-weight: 500; text-rendering: geometricPrecision; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { white-space: nowrap; color: var(--ink); text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
/* The page you are on, or on the home page the section in view (public/site/site.js), is underlined in every identity. */
.nav a:hover, .nav a[aria-current] { border-color: var(--accent); }
@media (min-width: 1081px) and (max-width: 1260px) { .top { gap: 12px; } .nav { gap: clamp(12px, 1.6vw, 24px); } }
.nav .lang { border: 1px solid var(--line); padding: 4px 10px; font-size: 13px; letter-spacing: 0.08em; border-radius: var(--radius); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); width: 44px; height: 44px; border-radius: var(--radius); cursor: pointer; padding: 0; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; }

/* Hero */
.hero { background: var(--hero-bg); padding: 64px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.hero-title { font-size: clamp(38px, 5.4vw, 66px); display: none; }
[data-theme="rendszer"] .t-rendszer, [data-theme="struktura"] .t-struktura, [data-theme="szinkron"] .t-szinkron { display: block; }
[data-theme="szinkron"] .hero-title { color: var(--ink); }
.sub { font-size: 20px; margin: 22px 0 8px; color: var(--ink); font-weight: 500; }
.lead { color: var(--muted); max-width: 46ch; margin: 0 0 28px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent-strong); color: var(--on-accent); text-decoration: none; padding: 14px 24px; font-weight: 600; font-size: 16px; border: 1px solid var(--accent-strong); border-radius: var(--radius); transition: transform .15s ease, filter .15s ease; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.arrow { width: 16px; height: 16px; }
.hero-title .line { display: block; }
[data-theme="rendszer"] .hero-title .dot { color: var(--accent); }
[data-theme="szinkron"] .hero-title .last { color: var(--accent); }
.hero-art { min-width: 0; position: relative; }
.hero-img { display: none; width: 100%; height: auto; }
[data-theme="rendszer"] .hero-rendszer, [data-theme="struktura"] .hero-struktura, [data-theme="szinkron"] .hero-szinkron { display: block; }
/* The renders fade into the page background instead of sitting in a box. */
.hero-img { filter: var(--hero-filter, none); }
/* The bundled Struktúra image is a photo, which an inverted night version would spoil: in the dark it is only dimmed.
   An uploaded image (a light drawing) is recoloured like the Rendszer render. */
.hero-img.hero-builtin { filter: var(--hero-builtin-filter, var(--hero-filter, none)); }
.hero-rendszer { mix-blend-mode: var(--hero-blend, multiply); -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 58%, transparent 100%); }
.hero-struktura.hero-builtin { mix-blend-mode: var(--hero-builtin-blend, var(--hero-blend, normal)); }
.hero-struktura { mix-blend-mode: var(--hero-blend, normal); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%); mask-image: linear-gradient(to right, transparent 0, #000 16%); }
.hero-szinkron { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%), linear-gradient(to bottom, transparent 0, #000 12%, #000 72%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 10%), linear-gradient(to bottom, transparent 0, #000 12%, #000 72%, transparent 100%); -webkit-mask-composite: source-in; mask-composite: intersect; }
[data-theme="szinkron"] .hero-title { font-size: clamp(34px, 4.6vw, 58px); }
/* Subsystem column of the "Szinkron" concept: small icon boxes over the dark right edge of the render, each with a short lime connector towards the building. */
.sys-icons { display: none; list-style: none; margin: 0; padding: 0; position: absolute; top: 0; bottom: 0; right: 0; width: 44px; }
[data-theme="szinkron"] .sys-icons { display: block; }
.sys-icons li { position: absolute; left: 0; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 8px; color: var(--ink); background: var(--surface); }
.sys-icons li::before { content: ""; position: absolute; right: 100%; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: var(--accent); }
.sys-icons li:nth-child(1) { top: 22.8%; } .sys-icons li:nth-child(2) { top: 35%; } .sys-icons li:nth-child(3) { top: 47%; } .sys-icons li:nth-child(4) { top: 58.8%; } .sys-icons li:nth-child(5) { top: 70.8%; }
.icon { width: 26px; height: 26px; }

/* "Szinkron" follows its concept board: one ink-blue surface for header and hero, the render bleeding to the right edge,
   logo and headline on one left edge, centred menu with a short lime marker, pill buttons, outlined icon column. */
[data-theme="szinkron"] .top { border-bottom-color: transparent; padding-inline: max(28px, calc((100% - var(--wrap)) / 2 + 28px)); }
[data-theme="szinkron"] .nav a:not(.lang) { position: relative; border-bottom: 0; }
[data-theme="szinkron"] .nav a:not(.lang)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 24px; height: 2px; background: var(--accent); opacity: 0; transition: opacity .15s ease; }
[data-theme="szinkron"] .nav a:not(.lang):hover::after, [data-theme="szinkron"] .nav a[aria-current]::after { opacity: 1; }
[data-theme="szinkron"] .btn { border-radius: 999px; padding: 11px 24px; font-size: 15px; }
[data-theme="szinkron"] .sub { font-weight: 400; }
[data-theme="szinkron"] .hero-szinkron { mix-blend-mode: var(--hero-blend, lighten); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%), linear-gradient(to bottom, #000 80%, transparent 97%); mask-image: linear-gradient(to right, transparent 0, #000 14%), linear-gradient(to bottom, #000 80%, transparent 97%); }
[data-theme="szinkron"] .sys-icons { width: 50px; }
[data-theme="szinkron"] .sys-icons li { width: 50px; height: 50px; margin-top: -25px; border-color: color-mix(in srgb, var(--ink) 75%, transparent); background: color-mix(in srgb, var(--bg) 55%, transparent); }
[data-theme="szinkron"] .sys-icons li::before { display: none; } /* the render's own lime lines run to the icons */
@media (min-width: 1021px) {
  [data-theme="szinkron"] .top .nav { flex: 1; }
  [data-theme="szinkron"] .top .nav a:first-child, [data-theme="szinkron"] .top .nav .lang { margin-left: auto; }
}
@media (min-width: 861px) {
  [data-theme="szinkron"] .hero { position: relative; display: flex; align-items: center; padding: 48px 0 64px; min-height: min(780px, calc(100svh - 114px)); }
  [data-theme="szinkron"] .hero-grid { display: block; width: 100%; }
  [data-theme="szinkron"] .hero-copy { position: relative; z-index: 1; max-width: min(470px, 40%); }
  [data-theme="szinkron"] .hero-art { position: absolute; top: 0; bottom: 0; right: 0; width: 66%; padding-right: 64px; }
  [data-theme="szinkron"] .hero-szinkron { width: 100%; height: 100%; object-fit: contain; object-position: 100% 50%; }
  [data-theme="szinkron"] .sys-icons { right: 24px; top: 50%; bottom: auto; height: min(100%, calc((66vw - 64px) * 2 / 3)); transform: translateY(-50%); }
}

/* Building illustrations */
.b-top { fill: var(--bt); } .b-fl { fill: var(--bl); } .b-fr { fill: var(--br); }
.b-top, .b-fl, .b-fr { stroke: var(--bline); stroke-width: 1; vector-effect: non-scaling-stroke; }
.b-line { stroke: var(--bline); stroke-width: 1; vector-effect: non-scaling-stroke; }
.b-win { stroke: var(--bwin); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .75; }
.b-ground { fill: var(--ground); } .b-grid { stroke: var(--grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.b-sys { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.b-node { fill: var(--accent); }

/* Sections */
.block { padding: 88px 0; }
.block.alt { background: var(--alt); }
.kicker { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-text); font-weight: 700; margin: 0 0 14px; }
[data-theme="szinkron"] .kicker { color: var(--accent); }
h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 36px; max-width: 22ch; }
h3 { font-size: 21px; }
.body { color: var(--muted); max-width: 60ch; margin: 0 0 28px; }
.note { color: var(--muted); font-size: 14px; margin: -14px 0 24px; max-width: 70ch; }
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.area { position: relative; }
.area-icon { display: block; color: var(--accent-text); margin-bottom: 36px; }
[data-theme="szinkron"] .area-icon { color: var(--accent); }
.area-icon .icon { width: 34px; height: 34px; }
.area .num { position: absolute; right: 28px; top: 30px; font-size: 13px; letter-spacing: .2em; color: var(--muted); font-weight: 600; }
[data-theme="szinkron"] .area .num { color: var(--accent); }
.area h3 { margin-bottom: 12px; } .area p { color: var(--muted); margin: 0; font-size: 16px; }
.sectors-label { margin: 44px 0 12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chips, .vendors { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line); background: var(--surface); padding: 8px 16px; border-radius: 999px; font-size: 15px; }
[data-theme="struktura"] .chips li { border-radius: 0; }
.vendors li { font-size: 15px; font-weight: 600; padding: 4px 0; margin-right: 18px; color: var(--ink); opacity: .85; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.principles { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; gap: 18px; }
.principles li { counter-increment: p; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 22px 70px; position: relative; }
.principles li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 24px; top: 24px; color: var(--accent-text); font-weight: 700; letter-spacing: .08em; font-size: 14px; }
[data-theme="szinkron"] .principles li::before { color: var(--accent); }
.principles h3 { font-size: 19px; margin-bottom: 6px; } .principles p { margin: 0; color: var(--muted); font-size: 16px; }

/* References */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font: inherit; font-size: 14px; background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 7px 16px; border-radius: 999px; cursor: pointer; }
[data-theme="struktura"] .chip { border-radius: 0; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* Category select for phones: one row instead of many chip rows. Shown only where the script runs; without it the chips stay. */
.filter-select { display: none; width: 100%; min-height: 46px; padding: 10px 44px 10px 14px; font: inherit; font-size: 16px; color: var(--ink); background-color: var(--surface);
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat;
  border: 1px solid var(--line); border-radius: 999px; appearance: none; -webkit-appearance: none; cursor: pointer; }
[data-theme="struktura"] .filter-select { border-radius: 0; }
.filter-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) { .js .filters .filter-select { display: block; } .js .filters .chip { display: none; } }
.badge { position: absolute; top: 10px; left: 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--bg); padding: 3px 8px; border-radius: var(--radius); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 14px 0 0; }
.tags li { font-size: 12px; border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; color: var(--muted); }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 22px; }
.member h3 { font-size: 22px; margin: 18px 0 2px; }
.member .role { margin: 0 0 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
[data-theme="szinkron"] .member .role { color: var(--accent); }
.member .bio { margin: 0; font-size: 15px; color: var(--muted); }
.member .chamber { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.member .chamber a { color: var(--link); font-weight: 600; text-underline-offset: 3px; }
.portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(160deg, var(--bt), var(--ground)); color: var(--ink); }
.portrait-empty .initial { font-family: var(--font-head); font-size: 96px; line-height: 1; font-weight: var(--head-weight); opacity: .85; }
.portrait-empty .soon { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.portrait::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); }

/* Contact & footer */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; align-items: stretch; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-width: 0; }
.contact-card h2 { margin: 0 0 28px; font-family: var(--font-head); font-size: clamp(24px, 2.4vw, 32px); }
.contact-card dl { margin: 0; display: grid; gap: 18px; }
.contact-card dd { overflow-wrap: anywhere; }
.contact-card .map-link { display: block; width: fit-content; margin-top: 8px; font-size: 14px; color: var(--accent-text); text-underline-offset: 3px; }
@media(max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 16px; } .contact-card { padding: 22px; } }
.contact-card dt { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-card dd { margin: 2px 0 0; font-size: 18px; }
.contact-card .pending { color: var(--muted); font-style: italic; }
.contact-card .note { margin: 0; }
.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 28px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.legal-links a { color: inherit; text-underline-offset: 3px; }
.legal-links a:hover { color: var(--ink); }

/* Theme switcher (preview only) */
.theme-switch { position: fixed; left: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 6px; background: var(--ink); color: var(--bg); padding: 8px 10px 8px 14px; border-radius: 999px; font-size: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.25); flex-wrap: wrap; max-width: calc(100vw - 32px); }
.theme-switch span { opacity: .7; margin-right: 4px; letter-spacing: .1em; text-transform: uppercase; }
.theme-switch button { font: inherit; background: transparent; color: inherit; border: 1px solid transparent; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.theme-switch button:hover { border-color: color-mix(in srgb, var(--bg) 55%, transparent); }
.theme-switch button[aria-pressed="true"] { background: var(--bg); color: var(--ink); }

@media (max-width: 1040px) { .team { grid-template-columns: repeat(2, 1fr); } .areas { grid-template-columns: 1fr; } .split { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; } .hero { padding: 40px 0 32px; }
  [data-theme="szinkron"] .hero-art { margin-right: 0; } [data-theme="szinkron"] .sys-icons { display: none; }
  .logo svg { height: 38px; }
  .block { padding: 60px 0; }
}
/* The menu folds into the menu button a little earlier than the hero stacks, so six items never crowd the logo. */
@media (max-width: 1080px) {
  .menu-btn { display: block; order: 2; }
  .mode-btn { order: 1; margin-left: auto; margin-right: -4px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 28px 22px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; } .nav a { padding: 10px 0; font-size: 17px; }
}
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } .theme-switch { left: 8px; bottom: 8px; padding: 5px 6px; flex-wrap: nowrap; } .theme-switch span { display: none; } .theme-switch button { padding: 6px 9px; white-space: nowrap; } .wrap { padding: 0 20px; } .top { padding: 12px 20px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }

/* Reference mosaic: tiles of different sizes (featured = double size), dense packing, photo-led with a caption bar */
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.mt { position: relative; min-width: 0; overflow: hidden; border-radius: var(--radius); background: var(--ground); }
.mt[hidden] { display: none; }
.mt-open { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; width: 100%; height: 100%; }
.mt-open:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.mt-face { position: relative; flex: none; aspect-ratio: 4 / 3; overflow: hidden; display: block; }
.mt-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mt:hover .mt-face img, .mt-open:focus-visible .mt-face img { transform: scale(1.03); }
.mt-art { position: absolute; inset: 0; display: block; padding: 14px; }
.mt-art svg { width: 100%; height: 100%; }
.mt-type { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 22px; background: var(--alt); }
.mt-type span { font: var(--head-weight) clamp(20px, 2.2vw, 30px)/1.12 var(--font-head); letter-spacing: var(--head-track); color: var(--ink); }
.mt-cap { display: block; flex: 1; padding: 12px 18px 16px; background: var(--ink); color: var(--bg); }
.mt-cap strong { display: block; font-size: 16px; line-height: 1.3; }
.mt-cap small { display: block; margin-top: 2px; font-size: 13px; letter-spacing: .04em; opacity: .8; }
.mt-sum { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: 14px; line-height: 1.45; opacity: .9; }
.badge { z-index: 2; }

/* Detail dialog */
.mosaic-dialog, .legal-dialog { width: min(980px, 100% - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); overflow: hidden; }
.mosaic-dialog::backdrop, .legal-dialog::backdrop { background: rgba(8, 14, 24, .72); }
.mosaic-dialog[open], .legal-dialog[open] { display: flex; flex-direction: column; }
.md-nav { display: flex; justify-content: flex-end; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.md-nav button { font: inherit; font-size: 20px; line-height: 1; width: 40px; height: 40px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.md-nav button:hover:not(:disabled) { border-color: var(--ink); }
.md-nav button:disabled { opacity: .35; cursor: default; }
.md-content { overflow: auto; }
.md-fig { margin: 0; background: var(--ground); }
.md-fig img { width: 100%; max-height: 62dvh; object-fit: contain; } /* the whole picture, never cropped */
.md-credit { padding: 6px 14px 8px; font-size: 12px; line-height: 1.4; color: var(--muted); text-align: right; }
.md-credit[hidden] { display: none; }
.md-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mt-credit { position: absolute; right: 0; bottom: 0; z-index: 1; max-width: 100%; padding: 2px 8px; font-size: 10px; line-height: 1.5; color: rgba(255, 255, 255, .88); background: rgba(8, 14, 24, .45); border-top-left-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.md-fig .mt-art { position: static; padding: 24px; max-height: 50dvh; }
/* Gallery in the detail dialog (only for references with two or more images) */
.md-gallery { background: var(--ground); }
.mg-stage { position: relative; aspect-ratio: 3 / 2; max-height: 62dvh; } /* a fixed frame, so the dialog does not jump between pictures of different shapes */
.mg-slide { display: block; width: 100%; height: 100%; object-fit: contain; }
.mg-slide[hidden] { display: none; }
.mg-prev, .mg-next { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(8, 14, 24, .55); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; }
.mg-prev { left: 12px; } .mg-next { right: 12px; }
.mg-prev:hover, .mg-next:hover { background: rgba(8, 14, 24, .8); }
.mg-count { position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(8, 14, 24, .6); color: #fff; font-size: 13px; }
.mg-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 6px 12px; }
.mg-dot { width: 24px; height: 24px; border: 0; background: transparent; cursor: pointer; position: relative; padding: 0; }
.mg-dot::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--line); border: 1px solid var(--muted); }
.mg-dot[aria-current="true"]::after { background: var(--ink); border-color: var(--ink); }

.md-body { padding: 22px 28px 30px; max-width: 70ch; }
.md-meta { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.md-body h3 { font-size: clamp(22px, 2.6vw, 32px); margin-bottom: 12px; }
.md-body p:not(.md-meta) { color: var(--muted); }

@media (max-width: 1040px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 640px) { .mosaic { grid-template-columns: 1fr; gap: 16px; } .md-body { padding: 18px 18px 24px; } }
.mt.nophoto .mt-cap strong { display: none; } /* the typographic tile already shows the title */

/* General introduction of the team: full content width, under the section heading */
.team-intro { max-width: none; margin: 0 0 40px; }
.team-intro p { margin: 0 0 1em; font-size: 19px; line-height: 1.7; color: var(--ink); }
.team-intro p:last-child { margin-bottom: 0; }
/* "Tervezési fázisok" subpage: page heading, phase row, summary table, expandable phases */
.more { margin: 0 0 28px; }
.more a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-underline-offset: 4px; }
.page-hero { background: var(--hero-bg); padding: 72px 0 64px; }
.page-title { font-size: clamp(34px, 4.6vw, 58px); max-width: 18ch; }
.page-intro { max-width: 68ch; margin: 26px 0 44px; }
.not-found p { max-width: 60ch; font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.page-intro p { margin: 0 0 1em; font-size: 19px; color: var(--muted); }
.page-intro p:first-child { color: var(--ink); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.flow li { border-top: 2px solid var(--line); }
.flow a { display: block; height: 100%; padding: 16px 14px 14px 0; color: var(--ink); text-decoration: none; }
.flow a:hover .flow-name { text-decoration: underline; text-underline-offset: 4px; }
.flow-num { display: block; font-size: 13px; letter-spacing: .2em; font-weight: 700; color: var(--accent-text); margin-bottom: 8px; }
.flow-name { display: block; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 17px; line-height: 1.25; hyphens: auto; overflow-wrap: break-word; }
.flow-note { margin: 22px 0 0; max-width: 78ch; font-size: 15px; color: var(--muted); }
.ptable { width: 100%; border-collapse: collapse; font-size: 16px; }
.ptable th, .ptable td { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); }
.ptable thead th { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom-color: var(--ink); }
.ptable tbody th { font-weight: 600; width: 32%; }
.ptable td { color: var(--muted); }
.ptable .num { font-size: 13px; letter-spacing: .12em; color: var(--accent-text); font-weight: 700; margin-right: 10px; }
.phases { display: grid; gap: 14px; }
.phase { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 100px; }
.phase summary { display: flex; align-items: center; gap: 22px; padding: 22px 24px; cursor: pointer; list-style: none; }
.phase summary::-webkit-details-marker { display: none; }
.phase summary:focus-visible { outline-offset: -3px; }
.phase .num { flex: none; width: 2.2em; font-size: 14px; letter-spacing: .12em; font-weight: 700; color: var(--accent-text); }
.ph-head { flex: 1; min-width: 0; }
.ph-head h3 { font-size: 21px; margin: 0 0 4px; }
.phase.key .ph-head h3 { font-size: 24px; }
.ph-short { display: block; font-size: 15px; color: var(--muted); }
.ph-chev { flex: none; width: 12px; height: 12px; margin-right: 6px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform .15s ease; }
.phase[open] .ph-chev { transform: rotate(225deg) translate(-3px, -3px); }
.ph-body { padding: 4px 24px 26px calc(24px + 2.2em + 22px); max-width: 86ch; }
.ph-body p { margin: 0 0 1em; }
.ph-body h4 { margin: 22px 0 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ph-list { margin: 0 0 1.2em; padding: 0; list-style: none; }
.ph-list li { position: relative; padding: 5px 0 5px 22px; }
.ph-list li::before { content: ""; position: absolute; left: 0; top: .95em; width: 10px; height: 2px; background: var(--accent); }
.ph-result { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.prose { max-width: 62ch; color: var(--muted); }
.prose p { margin: 0 0 1em; }
.prose a { font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 1040px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; } }
@media (max-width: 700px) {
  .page-hero { padding: 44px 0 40px; } .page-intro p { font-size: 17px; }
  .flow { grid-template-columns: 1fr; row-gap: 0; }
  .flow li { border-top: 0; border-left: 2px solid var(--line); }
  .flow a { display: flex; align-items: baseline; gap: 14px; padding: 10px 0 10px 16px; } .flow-num { margin: 0; }
  .ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ptable, .ptable tbody, .ptable tr, .ptable th, .ptable td { display: block; width: auto; }
  .ptable tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .ptable th, .ptable td, .ptable tbody th { padding: 0; border: 0; width: auto; }
  .ptable td { margin-top: 8px; } .ptable td::before { content: attr(data-label); display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .phase summary { gap: 14px; padding: 18px 16px; } .ph-head h3, .phase.key .ph-head h3 { font-size: 19px; }
  .ph-body { padding: 0 16px 22px; }
}

/* Long-form company introduction and four approach principles. */
.about-section .rich-text { max-width: 920px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.about-section .rich-text p { margin: 0 0 1.15em; }
.about-section .rich-text h3 { color: var(--ink); margin: 1.5em 0 .5em; }
.about-section .rich-text ul { padding-left: 1.3em; margin: .5em 0 1.2em; }
.about-section .rich-text li { padding-left: .25em; margin: .35em 0; }
.about-section .rich-text a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media(max-width: 760px) { .principles { grid-template-columns: 1fr; } .about-section .rich-text { font-size: 16px; } }

.member-contact { margin-top: 14px; }
.contact-reveal { border: 1px solid var(--line, #d8d2c8); background: transparent; color: inherit; padding: 9px 13px; font: inherit; cursor: pointer; }
.contact-reveal:hover { background: var(--surface-alt, rgba(0,0,0,.04)); }
.contact-reveal:disabled { opacity: .65; cursor: wait; }
.member-contact-details { margin-top: 10px; }
.member-contact-details p { margin: 6px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.member-contact-details p span { color: var(--muted, #687078); min-width: 64px; }
.member-contact-details[hidden] { display: none; }

.rich-text u { text-decoration-thickness: 1px; text-underline-offset: .18em; }
.rich-text .rt-size-12 { font-size:12px; } .rich-text .rt-size-14 { font-size:14px; }
.rich-text .rt-size-16 { font-size:16px; } .rich-text .rt-size-18 { font-size:18px; }
.rich-text .rt-size-20 { font-size:20px; } .rich-text .rt-size-24 { font-size:24px; }
.rich-text .rt-size-28 { font-size:28px; } .rich-text .rt-size-32 { font-size:32px; }
.rich-text .rt-size-36 { font-size:36px; } .rich-text .rt-size-42 { font-size:42px; }
.rich-text .rt-font-sans { font-family:Arial, sans-serif; }
.rich-text .rt-font-serif { font-family:Georgia, 'Times New Roman', serif; }
.rich-text .rt-font-mono { font-family:Consolas, monospace; }

/* References: link to the subpage under the home page selection; on the subpage the filter chips are links */
.refs-more { margin: 36px 0 0; }
button.btn { font-family: inherit; cursor: pointer; }
a.chip { display: inline-block; text-decoration: none; }
/* The subpage heading is the small label itself (an h1 styled like the section labels) */
h1.kicker { font-family: inherit; line-height: 1.4; }
.refs-hero { padding: 44px 0 0; }
.refs-hero .kicker { margin: 0; }
.refs-all { padding-top: 28px; }
/* Home page: "all references" opens in place; the dialog stays, so the tiles of the short list only hide */
.refs-live.is-open > .refs-short > :not(dialog) { display: none; }
/* Legal texts (imprint, privacy notice): in the dialog and on their own pages */
.legal-body { max-width: none; }
.legal-title { font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 18px; }
.legal-text { max-width: 78ch; color: var(--muted); font-size: 16px; line-height: 1.75; }
.legal-text p { margin: 0 0 1.1em; }
.legal-text h2, .legal-text h3, .legal-text h4 { color: var(--ink); margin: 1.6em 0 .5em; line-height: 1.3; }
.legal-text ul { padding-left: 1.3em; margin: .5em 0 1.2em; }
.legal-text li { margin: .35em 0; }
.legal-text a { color: var(--accent-text); text-underline-offset: 3px; }
.legal-body .legal-text { max-width: 70ch; }
