/* Sequence Engineering – Papp István
   Színek: --navy és --text a Word-dokumentum stílusaiból (pontos érték);
   --orange és --ink a dokumentum háttérképéről mért közelítő érték, nem hivatalos színkód. */
:root {
  --navy: #0c2340;
  --text: #323232;
  --muted: #5f5f5f;
  --ink: #222325;
  --orange: #fd4d05;
  --bg: #ffffff;
  --surface: #f4f4f4;
  --line: #dedede;
  --focus: #0c2340;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  overflow-wrap: break-word;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0; hyphens: auto; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.preview-bar { background: var(--surface); color: var(--muted); font-size: .8125rem; text-align: center; padding: .4rem var(--gutter); border-bottom: 1px solid var(--line); }

/* ---- fejléc */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; flex-wrap: wrap; }
.brand img { width: 176px; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.nav a { display: inline-block; padding: .5rem 0; color: var(--ink); text-decoration: none; font-size: 1rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.nav-toggle { font: inherit; font-size: 1rem; background: none; border: 1px solid var(--ink); color: var(--ink); padding: .45rem .9rem; cursor: pointer; }

@media (max-width: 639px) {
  .brand img { width: 150px; }
  .js .nav-toggle { display: inline-block; }
  .js .nav { display: none; width: 100%; }
  .js .nav.is-open { display: block; }
  .js .nav ul { flex-direction: column; gap: 0; padding: .25rem 0 1rem; }
  .js .nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .js .nav a:hover, .js .nav a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--orange); padding-left: .75rem; }
}
@media (min-width: 640px) { .nav-toggle { display: none !important; } }

/* ---- gombok */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }
.btn { display: inline-block; padding: .85rem 1.5rem; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid var(--navy); line-height: 1.2; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #fff; color: var(--navy); }
.btn-secondary { background: #fff; color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }

/* ---- nyitóblokk */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2.125rem, 5.2vw, 3.75rem); letter-spacing: -0.01em; max-width: 12ch; }
.hero h1::after, .section-title::before { content: ""; display: block; width: 56px; height: 4px; background: var(--orange); clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 100%, 0 100%); }
.hero h1::after { margin-top: 1.25rem; }
.hero-name { margin: 1.25rem 0 1rem; font-size: 1.125rem; color: var(--ink); }
.hero-lead { color: var(--text); max-width: 34rem; margin-top: 1.25rem; }
.hero-media { margin: 0; }
.hero-media img, .hero-media .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-media figcaption { font-size: .875rem; color: var(--muted); margin-top: .6rem; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); }
  .hero-media img, .hero-media .ph { aspect-ratio: 5 / 4; }
}

/* ---- szekciók */
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-tight { padding-top: 0; }
.section + .section-tight { border-top: 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-title { font-size: clamp(1.625rem, 3vw, 2.25rem); }
.section-title::before { margin-bottom: 1rem; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.more { font-weight: 700; white-space: nowrap; }
.more::after { content: " →"; }
.sub-title { font-size: 1.1875rem; margin: 0 0 1rem; }
.lead { font-size: 1.1875rem; max-width: 46rem; color: var(--ink); margin-top: 1.25rem; }

/* ---- projektkártyák (szögletes, árnyék nélkül) */
.cards { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { margin: 0; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-media { overflow: hidden; background: var(--surface); }
.card-media img, .card-media .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) { .card-media img { transition: transform .5s ease; } .card-link:hover .card-media img { transform: scale(1.025); } }
.card-title { font-size: 1.3125rem; margin-top: 1rem; }
.card-link:hover .card-title { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.card-loc { margin: .25rem 0 .5rem; color: var(--muted); }
.card-role { margin: 0; color: var(--ink); font-weight: 700; font-size: 1rem; }
.role-label { font-weight: 400; color: var(--muted); }

.ref-list { display: grid; gap: 3rem 2.5rem; }
@media (min-width: 800px) { .ref-list { grid-template-columns: repeat(2, 1fr); } }
.ref-list .card-title { font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
.ref-list .card-media img, .ref-list .card-media .ph { aspect-ratio: 3 / 2; }

.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); max-width: 18ch; }
.page-head h1::before { content: ""; display: block; width: 56px; height: 4px; background: var(--orange); margin-bottom: 1.25rem; clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 100%, 0 100%); }

/* ---- bemutatkozás */
.about-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 7fr 5fr; gap: 5rem; } }
.about-text .section-title { margin-bottom: 1.5rem; }
.about-text p { max-width: 40rem; }
.signature { font-weight: 700; color: var(--ink); }
.about-side { border-top: 1px solid var(--line); padding-top: 2rem; }
@media (min-width: 900px) { .about-side { border-top: 0; border-left: 1px solid var(--line); padding: .5rem 0 0 2.5rem; } }
.activities { margin: 0 0 2rem; }
.activities div { padding: 0 0 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.activities dt { font-weight: 700; color: var(--ink); }
.activities dd { margin: .25rem 0 0; font-size: 1rem; }
.about-side > p { font-size: 1rem; }
.collab { margin-top: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: 1rem; }
.team-link { font-weight: 700; white-space: nowrap; }
.team-link::after { content: " ↓"; }
.collab-intro { max-width: 46rem; }
.disciplines { list-style: none; margin: 1.5rem 0 1rem; padding: 0; font-size: 1rem; display: grid; column-gap: 2.5rem; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .disciplines { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .disciplines { grid-template-columns: repeat(3, 1fr); } }
.disciplines li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.disciplines .d-name { display: block; font-weight: 700; color: var(--ink); }
.disciplines .d-members { display: block; color: var(--text); }
.disciplines-note { font-size: .9375rem; color: var(--muted); }

/* ---- kapcsolat */
.contact { background: var(--surface); }
.section + .contact { border-top: 0; }
.contact-grid { display: grid; gap: 1.5rem; margin-top: 1.75rem; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1fr 2fr; } }
.contact-name { font-size: 1.1875rem; color: var(--ink); }
.contact-list { margin: 0; display: grid; gap: 1rem; }
.contact-list div { display: grid; gap: .1rem; }
@media (min-width: 560px) { .contact-list div { grid-template-columns: 7rem 1fr; } }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; font-size: 1.1875rem; color: var(--ink); }
.contact-list a { font-weight: 700; }

/* ---- impresszum */
.imprint { margin: 2rem 0 0; max-width: 46rem; border-top: 1px solid var(--line); }
.imprint div { display: grid; gap: .1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .imprint div { grid-template-columns: 16rem 1fr; gap: 1rem; } }
.imprint dt { color: var(--muted); }
.imprint dd { margin: 0; color: var(--ink); }
.imprint .ph-inline { display: inline-block; padding: .1rem .5rem; font-size: .875rem; }

/* ---- partnerek a szakági listában */
.disciplines a.d-members { display: inline-block; }

/* ---- lábléc */
.site-footer { background: var(--ink); color: #e6e6e6; font-size: .9375rem; padding: 2.5rem 0; }
.site-footer a { color: #fff; }
.site-footer strong { color: #fff; }
.footer-inner { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: auto auto; justify-content: space-between; align-items: start; } }
.footer-inner p { margin: 0; line-height: 1.8; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer-nav a { display: inline-block; padding: .35rem 0; }
.footer-nav a[aria-current="page"] { text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.site-footer :focus-visible { outline-color: #fff; }

/* ---- projektoldal */
.project-hero { margin: 0 auto; max-width: 1920px; background: var(--surface); } /* a forrásfotók ~1800 px szélesek: nagyobb kijelzőn nem nagyítjuk tovább */
.project-hero img, .project-hero .ph { width: 100%; height: clamp(260px, 56vw, 640px); object-fit: cover; }
.project-head { padding-top: clamp(1.75rem, 4vw, 3rem); padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.project-split { display: grid; gap: 0 3rem; align-items: start; }
.project-hero-portrait { margin: 0; order: -1; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
.project-hero-portrait img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; background: var(--surface); }
@media (min-width: 900px) {
  .project-split { grid-template-columns: 1fr 1fr; padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
  .project-hero-portrait { order: 0; margin: 0; }
  .project-split .project-head { padding-top: 1rem; }
}
.crumb { font-size: .9375rem; margin-bottom: 1rem; }
.crumb a::before { content: "← "; }
.project-head h1 { font-size: clamp(2rem, 4.8vw, 3.25rem); max-width: 22ch; }
.project-loc { font-size: 1.1875rem; color: var(--muted); margin: .5rem 0 2rem; }
.role-box { border-left: 4px solid var(--orange); padding: .25rem 0 .25rem 1.25rem; max-width: 46rem; }
.role-title { font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.role-value { font-size: clamp(1.25rem, 2.4vw, 1.625rem); color: var(--navy); font-weight: 700; line-height: 1.3; margin: .35rem 0 .5rem; }
.role-note { font-size: .9375rem; color: var(--muted); margin: 0; }
.project-desc { margin-top: 2rem; max-width: 42rem; }

.gallery { list-style: none; margin: 0 0 clamp(2.5rem, 5vw, 4rem); padding: 0; display: grid; gap: 1rem; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery img, .gallery .ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery .is-portrait img { aspect-ratio: 4 / 5; }
.gallery a { display: block; }

.pager { display: grid; gap: 1rem; padding-top: 2rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1fr 1fr;
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.pager a { text-decoration: none; display: block; }
.pager-label { display: block; font-size: .875rem; color: var(--muted); }
.pager-name { display: block; font-weight: 700; color: var(--navy); }
.pager a:hover .pager-name { text-decoration: underline; text-decoration-color: var(--orange); }
.pager-prev .pager-label::before { content: "← "; }
.pager-next { text-align: right; }
.pager-next .pager-label::after { content: " →"; }
.pager-all { grid-column: 1 / -1; grid-row: 2; justify-self: center; font-weight: 700; padding: .5rem 0; }
.pager-all:hover { text-decoration: underline; }
@media (min-width: 800px) {
  .pager { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .pager-all { grid-column: 2; grid-row: 1; }
}

/* ---- referenciasáv */
.strip { background: var(--surface); overflow: hidden; }
.strip-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.strip-controls { display: flex; gap: .5rem; }
.strip-controls[hidden] { display: none; }
.strip-btn { font: inherit; font-size: 1rem; min-width: 44px; min-height: 44px; padding: 0 .9rem; background: #fff; color: var(--navy); border: 2px solid var(--navy); cursor: pointer; }
.strip-btn:hover { background: var(--navy); color: #fff; }
.strip-track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); scrollbar-width: thin; padding: 0 0 1rem; -webkit-overflow-scrolling: touch; }
.strip-track:focus-visible { outline-offset: -3px; }
/* folyamatos mozgásnál a pattanó igazítás és a görgetősáv zavarna */
.is-marquee .strip-track { scroll-snap-type: none; scrollbar-width: none; }
.is-marquee .strip-track::-webkit-scrollbar { display: none; }
.strip-list { --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); list-style: none; margin: 0; padding: 0 var(--edge); display: flex; gap: 1.5rem; width: max-content; }

.strip-item { width: min(80vw, 360px); scroll-snap-align: start; }
.strip-item .card-title { font-size: 1.1875rem; }

/* ---- helykitöltő (csak belső előnézet) */
.ph { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .35rem; text-align: center; padding: 1rem;
  background: repeating-linear-gradient(135deg, #ececec 0 12px, #f6f6f6 12px 24px); color: var(--muted); border: 2px dashed #b9b9b9; }
.ph-label { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8125rem; color: var(--ink); }
.ph-note { font-size: .875rem; max-width: 26rem; }
.ph-inline { border: 2px dashed #b9b9b9; padding: .75rem 1rem; color: var(--muted); font-size: .9375rem; background: #fafafa; }

/* Takart kapcsolati adat + „megjelenítés” gomb */
.obf-mask { letter-spacing: .02em; }
.obf-reveal { font: inherit; font-size: .8125rem; font-weight: 700; color: var(--ink); background: none; border: 1px solid currentColor; border-radius: 2px; padding: .15rem .5rem; margin-left: .35rem; cursor: pointer; vertical-align: .1em; white-space: nowrap; }
.obf-reveal:hover { border-color: var(--orange); }
.site-footer .obf-reveal { color: inherit; }
.site-footer .obf { display: inline-block; margin: .2rem 0; }
