/* OFRA: lemon yellow, warm white and black; original logo colors preserved. */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-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: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-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+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --yellow: #f4eb32;
  --ink: #171914;
  --dark: #11120f;
  --paper: #f7f5ed;
  --muted: #55584d;
  --line: #d4d4c8;
  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; scroll-padding-top: 2rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1.125rem/1.6 "Source Sans 3", sans-serif; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure, p, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.06; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 5.25vw, 5.1rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2.2rem, 3.45vw, 3.5rem); letter-spacing: -.025em; }
h3 { font-size: 1.6rem; letter-spacing: -.015em; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
a:active, button:active { opacity: .75; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 7vw, 7rem); }
.ico { width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 10; padding: 12px 20px; color: var(--ink); background: var(--yellow); }
.site-header { background: var(--dark); color: white; }
.header-inner { min-height: 104px; display: flex; align-items: center; gap: 2.5rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; white-space: nowrap; }
.brand-mark { width: 48px; height: 48px; background: white; padding: 3px; }
.brand-name { font-size: 1.45rem; font-weight: 750; letter-spacing: -.025em; }
.brand-kft { font-weight: 400; }
.site-nav ul { display: flex; gap: 1.7rem; }
.site-nav a { display: block; padding-block: 14px; font-size: 1rem; text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 56px; padding: 14px 24px; font-size: 1.05rem; font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-ghost { color: inherit; border: 1px solid #ffffff80; }
.header-cta { min-height: 48px; padding: 12px 18px; font-size: 1rem; }
.hero { position: relative; isolation: isolate; min-height: 660px; color: white; background: var(--dark); border-bottom: 7px solid var(--yellow); }
.hero-grid { min-height: 660px; display: flex; align-items: center; padding-block: 80px 110px; }
.hero-copy { width: 670px; max-width: 63%; z-index: 1; }
.hero-copy h1 span { color: var(--yellow); }
.lead { max-width: 48ch; margin-top: 28px; font-size: 1.25rem; line-height: 1.5; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-photo { position: absolute; inset: 0 0 0 27%; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 68%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #11120f 2%, #11120ff0 20%, #11120fc2 40%, #11120f26 70%); }
.hero-caption { position: absolute; bottom: 28px; right: var(--gutter); display: flex; align-items: center; gap: 20px; padding: 10px 14px; color: white; background: #11120fe6; font-size: .95rem; text-decoration: none; }
.section-head { margin-bottom: 40px; }
.services .section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.section-head > p { margin-top: 20px; }
.services .section-head p { color: var(--muted); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.service { padding: 28px 0 32px; border-top: 1px solid #9e9f90; }
.service p { color: var(--muted); max-width: 48ch; margin-top: 14px; }
.about { background: #eeede4; }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; column-gap: 72px; }
.about-photo { grid-row: 1 / 4; position: relative; min-height: 640px; }
.about-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.about-photo figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 24px; background: var(--yellow); color: var(--ink); font-weight: 700; }
.about .section-head { margin-bottom: 26px; }
.prose p + p { margin-top: 18px; }
.prose p { max-width: 66ch; }
.pillars { margin-top: 32px; border-top: 1px solid #aaa99c; }
.pillars li { padding: 16px 0; border-bottom: 1px solid #d3d2c6; display: grid; grid-template-columns: 180px 1fr; gap: 16px; }
.pillars strong { font-size: 1.1rem; }
.pillars span { font-size: 1rem; color: var(--muted); }
.places { padding-block: 32px; }
.places-text { max-width: 90ch; margin-inline: auto; font-size: 1.05rem; }
.places-label { font-weight: 750; display: block; margin-bottom: 6px; }
.projects, .process { background: var(--dark); color: var(--paper); }
.projects { padding-bottom: 60px; }
.projects-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 40px; }
.projects-head p { color: #c7c9bc; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-image { position: relative; }
.project-image > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-featured .project-image > img { aspect-ratio: 1 / 1.12; }
#projekt-mala .project-image > img { object-position: center 35%; }
.project-open { position: absolute; inset: 0; display: flex; align-items: end; justify-content: end; padding: 0; border: 0; background: transparent; color: var(--ink); }
.project-open > span { padding: 12px 0 12px 16px; font-size: .95rem; line-height: 24px; background: var(--yellow); }
.project-open > .ico { width: 48px; height: 48px; padding: 12px; flex-basis: 48px; background: var(--yellow); }
.project-open:focus-visible { outline-color: var(--yellow); }
.project-kind { position: absolute; pointer-events: none; top: 12px; left: 12px; padding: 4px 10px; background: var(--paper); color: var(--ink); font-size: .85rem; font-weight: 650; }
.project figcaption { margin-top: 18px; }
.project-city { font-size: 1.6rem; font-weight: 750; }
.project-address { margin-top: 8px; color: #c7c9bc; line-height: 1.4; }
.more-projects-title { font-size: 1.65rem; font-weight: 650; margin: 64px 0 28px; padding-top: 36px; border-top: 1px solid #45483a; }
.project-small { grid-template-columns: repeat(5, 1fr); gap: 36px 24px; }
.project-small .project-city { font-size: 1.3rem; }
.project-small .project-address { font-size: 1rem; }
.project-small .project-open > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* The native modal keeps the gallery on this page and contains keyboard focus. */
html:has(.gallery-dialog[open]) { overflow: hidden; }
.gallery-dialog { width: min(1160px, calc(100% - 64px)); max-width: none; max-height: calc(100dvh - 48px); padding: 24px; border: 1px solid #45483a; background: var(--dark); color: var(--paper); }
.gallery-dialog::backdrop { background: #050604e8; }
.gallery-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; }
.gallery-count { color: #c7c9bc; font-variant-numeric: tabular-nums; }
.gallery-close { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border: 1px solid #727661; background: transparent; color: var(--paper); }
.gallery-stage { height: min(62dvh, 680px); position: relative; background: #080907; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; overflow: hidden; }
.gallery-image { width: 100%; height: 100%; min-width: 0; min-height: 0; max-height: 100%; object-fit: contain; }
.gallery-stage.is-loading::after { content: "Kép betöltése…"; color: #c7c9bc; }
.gallery-error { max-width: 42ch; padding: 24px; text-align: center; }
.gallery-caption { display: flex; align-items: center; gap: 24px; margin-top: 20px; }
.gallery-caption > div:first-child { margin-right: auto; }
.gallery-caption h2 { font-size: 1.65rem; }
.gallery-caption p { margin-top: 6px; }
.gallery-kind { color: #c7c9bc; font-size: .95rem; }
.gallery-controls { display: flex; gap: 12px; }
.gallery-controls button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; background: var(--yellow); color: var(--ink); border: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.process { padding-top: 45px; }
.process .wrap { border-top: 1px solid #45483a; padding-top: 60px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; counter-reset: steps; }
.step-num { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 24px; color: var(--yellow); border: 1px solid #727661; font-size: 1.25rem; font-weight: 600; }
.steps h3 { font-size: 1.55rem; }
.steps p { margin-top: 14px; color: #c7c9bc; }
.grant { background: white; }
.grant-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.grant-text { color: var(--muted); max-width: 35ch; }
.grant-figure img { width: 100%; }
.grant-figure figcaption { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.contact { background: var(--yellow); }
.contact .section-head { max-width: 800px; }
.contact .section-head p { font-size: 1.3rem; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.15fr 1fr; gap: 36px; }
.contact-card { display: flex; flex-direction: column; align-items: start; border-top: 1px solid #77771d; padding-top: 24px; text-decoration: none; }
.contact-ico { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 20px; }
.contact-label { font-size: 1rem; }
.contact-value { font-size: clamp(1.15rem, 1.7vw, 1.6rem); font-weight: 700; line-height: 1.25; margin-top: 6px; overflow-wrap: anywhere; }
.contact-hint { font-size: .9rem; text-decoration: underline; margin-top: 12px; }
.contact-note { font-size: 1rem; margin-top: 44px; }
.site-footer { background: var(--dark); color: var(--paper); padding-block: 48px 28px; }
.footer-inner { display: grid; grid-template-columns: 240px 1fr; gap: 36px 80px; }
.footer-logo-box { display: block; background: white; padding: 18px; align-self: start; }
.footer-logo { width: 100%; }
.imprint { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 30px; margin: 0; font-size: 1rem; }
.imprint dt { font-size: .9rem; color: #b8bcad; }
.imprint dd { margin: 0; overflow-wrap: anywhere; }
.copyright { grid-column: 1 / -1; border-top: 1px solid #45483a; padding-top: 24px; font-size: .9rem; color: #b8bcad; }
.copyright a { display: inline-block; padding-block: 8px; color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--yellow); }
  .btn-primary:hover, .gallery-controls button:hover { background: white; }
  .btn-ghost:hover { background: white; color: var(--ink); }
  .contact-card:hover .contact-value, .hero-caption:hover { text-decoration: underline; }
  .project-open:hover > span, .project-open:hover > .ico { background: white; }
  .gallery-close:hover { background: white; color: var(--ink); }
}
@media (max-width: 1100px) {
  .header-inner { gap: 22px; }
  .site-nav ul { gap: 18px; }
  .brand-name { font-size: 1.2rem; }
  .header-cta { padding-inline: 12px; }
  .header-cta .ico { display: none; }
  .about-grid { column-gap: 40px; }
  .project-small { grid-template-columns: repeat(3, 1fr); }
  .pillars li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 899px) {
  .header-inner { min-height: 92px; flex-wrap: wrap; padding-top: 18px; gap: 10px 20px; }
  .site-nav { order: 3; width: 100%; border-top: 1px solid #35382d; }
  .site-nav ul { justify-content: space-between; }
  .site-nav a { padding-block: 13px; }
  .hero-copy { max-width: 80%; }
  .hero-grid, .hero { min-height: 600px; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-photo { grid-row: 1 / 3; min-height: 480px; }
  .about .section-head { margin: 0; }
  .about .prose { grid-column: 1 / -1; }
  .about .pillars { grid-column: 2; grid-row: 2; margin: 0; }
  .project-grid { gap: 28px 16px; }
  .project-open > span { display: none; }
  .steps { gap: 28px; }
  .grant-grid { gap: 32px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-card:last-child { grid-column: 1 / -1; }
  .footer-inner { gap: 30px; grid-template-columns: 180px 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  .header-inner { gap: 12px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1.12rem; }
  .header-cta { min-height: 44px; padding: 8px 10px; font-size: .88rem; }
  .site-nav a { font-size: .95rem; }
  .site-nav ul { gap: 12px; }
  .hero { min-height: 0; }
  .hero-grid { min-height: 0; padding-block: 46px 35px; }
  .hero-copy { max-width: 100%; width: 100%; }
  h1 { font-size: clamp(2.6rem, 10.3vw, 3.8rem); }
  .lead { font-size: 1.125rem; margin-top: 22px; }
  .hero-photo { position: relative; display: block; inset: auto; height: 300px; z-index: 0; }
  .hero-photo img { object-position: center; }
  .hero::after { display: none; }
  .hero-caption { z-index: 1; bottom: 16px; right: 16px; font-size: .9rem; }
  .cta-row { margin-top: 28px; gap: 12px; }
  .btn { padding: 12px 17px; font-size: 1rem; min-height: 50px; }
  .header-cta { min-height: 44px; padding: 8px 10px; font-size: .88rem; }
  .services .section-head, .projects-head { display: block; }
  .services .section-head p { margin-top: 16px; }
  .section-head { margin-bottom: 30px; }
  .service-grid { grid-template-columns: 1fr; }
  .service { padding-block: 24px; }
  .service h3 { max-width: 23ch; }
  .about-grid { display: flex; flex-direction: column; gap: 28px; }
  .about-photo { order: 2; min-height: 0; height: 420px; }
  .about .pillars { order: 3; }
  .pillars li { grid-template-columns: 1fr; }
  .projects-head p { margin-top: 20px; }
  .project-grid, .steps, .grant-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .project figcaption { margin-top: 16px; }
  .project-featured .project-image > img { aspect-ratio: 4 / 3; }
  .project-featured #projekt-mala .project-image > img { aspect-ratio: 4 / 4.5; }
  .project-small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .project-small .project-city { font-size: 1.2rem; }
  .project-small .project-address { font-size: .95rem; }
  .project-small .project-kind { left: 6px; top: 6px; padding: 2px 6px; font-size: .75rem; }
  .project-small .project-open > .ico { width: 44px; height: 44px; flex-basis: 44px; padding: 10px; }
  .gallery-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 16px; }
  .gallery-stage { height: 52dvh; }
  .gallery-caption { flex-wrap: wrap; gap: 16px; }
  .gallery-caption > div:first-child { width: 100%; }
  .gallery-kind { margin-right: auto; }
  .gallery-caption h2 { font-size: 1.4rem; }
  .gallery-caption p { font-size: 1rem; }
  .gallery-controls button { width: 44px; height: 44px; }

  .projects { padding-bottom: 28px; }
  .process { padding-top: 28px; }
  .process .wrap { padding-top: 40px; }
  .steps { gap: 30px; }
  .steps li { display: grid; grid-template-columns: 42px 1fr; gap: 10px 18px; }
  .step-num { grid-row: 1 / 3; margin: 0; }
  .steps p { grid-column: 2; margin: 0; }
  .steps h3 { align-self: center; }
  .grant .section-head { margin: 0; }
  .grant-text { max-width: 45ch; }
  .contact-card { position: relative; padding-left: 46px; padding-top: 20px; }
  .contact-ico { position: absolute; left: 0; top: 24px; }
  .contact-value { font-size: 1.45rem; }
  .contact-card:last-child { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-logo-box { width: 200px; }
  .imprint { grid-template-columns: 1fr; }
}
