/* blankabartos.com – fehér alap, hideg (szürkés) bézs kiegészítők, fekete betűk.
   2026-11-27: Blanka kérésére hidegebb, keményebb árnyalat, több fehér (minta: Hoche, párizsi iroda weboldala). */

/* ---------- Betűk (saját tárhely) ---------- */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/jost-latin.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: "Jost"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/jost-latin-ext.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: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-latin-500.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: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-latin-ext-500.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: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/cormorant-latin-600.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: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/cormorant-latin-ext-600.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: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-latin-500-italic.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: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-latin-ext-500-italic.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; }

/* ---------- Alapok ---------- */
:root {
  --white: #ffffff;
  --cream: #f5f4f1;
  --beige: #e7e3dc;
  --beige-2: #d3cdc3;
  --sand: #8a8276;
  --ink: #0e0f11;
  --ink-2: #2a2c30;
  --muted: #5b5852;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --topbar-h: 58px;
  --nav-h: 54px;
  --header-h: calc(var(--topbar-h) + var(--nav-h));
  --ease: cubic-bezier(.22, .61, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--beige-2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- Fejléc ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--beige);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(20, 22, 26, .08); }
.topbar {
  height: var(--topbar-h); max-width: 1360px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: .02em;
  text-decoration: none; color: var(--ink); transition: opacity .35s var(--ease); white-space: nowrap;
}
.brand .nm-suffix { font-weight: 500; font-size: .8em; color: var(--ink-2); }
.site-header.at-top .brand { opacity: 0; pointer-events: none; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; }
.lang a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; line-height: 1; text-decoration: none; color: var(--ink);
  padding: 6px 8px; position: relative;
}
.lang .code { padding-left: .14em; }
.lang .flag { display: block; width: 15px; height: 15px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(14, 15, 17, .14); opacity: .75; transition: opacity .2s; }
.lang .flag svg { display: block; width: 100%; height: 100%; }
.lang a:hover .flag, .lang a[aria-current] .flag { opacity: 1; }
.lang a::after { content: ""; position: absolute; left: 8px; right: 8px; top: 21px; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .25s var(--ease); }
.lang a:hover::after, .lang a[aria-current]::after { transform: scaleX(1); }
.lang a[aria-current] { font-weight: 600; }

.mainnav { border-top: 1px solid var(--beige); }
.mainnav > ul { list-style: none; margin: 0 auto; padding: 0 24px; height: var(--nav-h); display: flex; justify-content: center; gap: clamp(14px, 1.5vw, 32px); }
.mainnav li { position: relative; display: flex; }
.mainnav a { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 500; letter-spacing: .02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.mainnav > ul > li > a { position: relative; }
.mainnav > ul > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.mainnav > ul > li > a:hover::after, .mainnav > ul > li > a.active::after { transform: scaleX(1); }
.chev { width: 11px; height: 8px; transition: transform .25s var(--ease); }
.has-sub:hover .chev, .has-sub:focus-within .chev { transform: rotate(180deg); }
.submenu {
  list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: 50%; min-width: 230px;
  background: var(--white); border: 1px solid var(--beige); box-shadow: 0 14px 34px rgba(20, 22, 26, .12);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.submenu li { display: block; }
.submenu a { padding: 10px 24px; font-size: 16px; display: block; transition: background .2s; }
.submenu a:hover, .submenu a:focus-visible { background: var(--beige); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--ink); padding: 0; }
.burger { display: grid; gap: 7px; width: 26px; margin: auto; }
.burger span { display: block; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-open .burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: var(--white); overflow-y: auto;
  padding: 28px 28px 48px; opacity: 0; transition: opacity .3s var(--ease);
}
.mobile-nav.open { opacity: 1; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > nav > ul > li { border-bottom: 1px solid var(--beige); }
.mobile-nav a { display: block; padding: 14px 0; font-family: var(--serif); font-size: 28px; text-decoration: none; color: var(--ink); }
.mobile-nav .submenu { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 0 0 12px 18px; min-width: 0; }
.mobile-nav .submenu a { font-family: var(--sans); font-size: 18px; padding: 8px 0; }

@media (max-width: 1180px) {
  :root { --topbar-h: 62px; --nav-h: 0px; }
  .mainnav { display: none; }
  .menu-toggle { display: block; }
  .site-header.at-top .brand { opacity: 1; pointer-events: auto; }
  .topbar { padding: 0 12px 0 20px; }
}
/* Ha a menüpontok egy adott nyelven/szélességen nem férnek ki egy sorba, a main.js hamburgerre vált */
html.nav-overflow { --topbar-h: 62px; --nav-h: 0px; }
html.nav-overflow .mainnav { display: none; }
html.nav-overflow .menu-toggle { display: block; }
html.nav-overflow .site-header.at-top .brand { opacity: 1; pointer-events: auto; }
@media (max-width: 640px) { .brand .nm-suffix { display: none; } }
@media (max-width: 420px) {
  .brand { font-size: 18px; }
  .lang a { padding: 6px 5px; letter-spacing: .08em; font-size: 12px; }
  .lang .flag { width: 13px; height: 13px; }
  .lang a::after { left: 5px; right: 5px; top: 20px; }
}
body.menu-open { overflow: hidden; }

/* ---------- Nyitókép ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: calc(var(--header-h) + 28px) 24px 84px;
}
.hero-bg { position: absolute; inset: -8%; z-index: -2; animation: drift 38s ease-in-out infinite alternate; will-change: transform; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg--placeholder {
  background:
    radial-gradient(60% 50% at 28% 35%, #e2ded6 0%, transparent 70%),
    radial-gradient(50% 45% at 74% 66%, #d9d4cb 0%, transparent 70%),
    radial-gradient(40% 35% at 60% 18%, #f1efeb 0%, transparent 70%),
    var(--cream);
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.25) 50%, rgba(245,244,241,.75) 100%); }
/* Fotóval: a név a képen, keret nélkül; sötétítés, fehér betűk */
.hero--photo::after { background: linear-gradient(180deg, rgba(14,15,17,.25) 0%, rgba(14,15,17,.15) 45%, rgba(14,15,17,.55) 100%); }
.hero--photo .hero-name, .hero--photo .scroll-cue { color: var(--white); }
.hero--photo .hero-name .nm-suffix { color: rgba(255,255,255,.85); }
.hero--photo .hero-rule { background: var(--white); }
.hero--photo .scroll-cue i { background-image: linear-gradient(var(--white) 50%, transparent 50%); }
@keyframes drift {
  from { transform: scale(1.02) translate3d(-1.6%, -1%, 0); }
  to   { transform: scale(1.14) translate3d(1.6%, 1.2%, 0); }
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(46px, 7.4vw, 112px); letter-spacing: .01em; line-height: 1.02; margin: 0;
}
.hero-name span { display: block; }
.hero-name .nm-suffix { font-size: .34em; font-weight: 500; letter-spacing: .12em; color: var(--ink-2); margin-top: .7em; }
.hero-rule { width: 72px; height: 1px; background: var(--ink); margin: 30px 0; }
.hero-play { position: relative; width: 68px; height: 68px; border: 0; padding: 0; background: none; cursor: pointer; }
.hero-media { margin: 0; width: min(80vw, 720px); aspect-ratio: 16 / 9; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink);
  box-shadow: 0 8px 24px rgba(0,0,0,.15); transition: transform .3s var(--ease);
}
.play svg { width: 26px; height: 26px; margin-left: 4px; fill: currentColor; }
.hero-play:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.scroll-cue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2);
}
.scroll-cue i { display: block; width: 1px; height: 38px; background: linear-gradient(var(--ink) 50%, transparent 50%); background-size: 1px 200%; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
@media (max-height: 640px) and (min-width: 700px) { .scroll-cue { display: none; } }

/* ---------- Helykitöltő képek ---------- */
.ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--beige) 0%, var(--cream) 55%, var(--beige-2) 100%); color: var(--sand); }
.ph--card { aspect-ratio: 4 / 3; }
.ph--card span { font-family: var(--serif); font-style: italic; font-size: 30px; }

/* ---------- Szekciók ---------- */
.section { padding: clamp(80px, 10vw, 140px) 24px; scroll-margin-top: calc(var(--header-h) - 1px); }
.section--alt { background: var(--cream); }
.container { max-width: 980px; margin: 0 auto; }
.container.narrow { max-width: 760px; }
.container.wide { max-width: 1200px; }
.center { text-align: center; }
.section-head { text-align: center; margin-bottom: clamp(44px, 6vw, 72px); }
.kicker { font-size: 13px; font-weight: 500; letter-spacing: .3em; color: var(--sand); margin: 0 0 14px; }
.section-head h2, .section-head h1 { font-size: clamp(38px, 5.2vw, 60px); letter-spacing: .02em; }
.section-head::after { content: ""; display: block; width: 48px; height: 1px; background: var(--ink); margin: 26px auto 0; }
.prose { font-size: 20px; line-height: 1.8; color: var(--ink-2); }
.prose > p:first-child::first-letter { font-family: var(--serif); font-size: 3.3em; float: left; line-height: .8; margin: 8px 12px 0 0; color: var(--ink); }
.lead { text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 28px); color: var(--ink-2); max-width: 720px; margin: -16px auto 56px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 34px 0; border-top: 1px solid var(--beige-2); }
.timeline li:last-child { border-bottom: 1px solid var(--beige-2); }
.tl-period { font-family: var(--serif); font-size: 23px; color: var(--muted); margin: 0; line-height: 1.3; }
.timeline h3 { font-size: 28px; margin-bottom: 4px; }
.tl-place { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.timeline p:last-child { margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.card { background: var(--white); scroll-margin-top: calc(var(--header-h) + 24px); }
.card .card-img, .card .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card h3 { font-size: 30px; padding: 26px 28px 8px; }
.card p { padding: 0 28px 30px; margin: 0; color: var(--ink-2); }

.entries { list-style: none; margin: 0; padding: 0; }
.entries li { display: grid; grid-template-columns: 120px 1fr; gap: 32px; padding: 26px 0; border-top: 1px solid var(--beige-2); }
.entries li:last-child { border-bottom: 1px solid var(--beige-2); }
.en-year { font-family: var(--serif); font-size: 24px; color: var(--muted); line-height: 1.3; }
.entries h3 { font-size: 26px; margin-bottom: 4px; }
.entries h3 a { text-decoration: none; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.entries h3 a:hover { background-size: 100% 1px; }
.entries p { margin: 0; color: var(--muted); }
.group-title { font-size: clamp(24px, 2.6vw, 30px); font-style: italic; color: var(--ink-2); margin: 0 0 22px; }
.entries + .group-title { margin-top: 64px; }

/* ---------- Kapcsolat ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-intro p { font-size: 20px; color: var(--ink-2); }
.mail { font-family: var(--serif); font-size: 26px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--sand); }
.mail:hover { border-color: var(--ink); }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--white);
  border: 1px solid var(--beige-2); border-radius: 0; padding: 13px 15px; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; color: var(--muted); }
.cf-turnstile { margin-bottom: 18px; min-height: 65px; }
.btn {
  display: inline-block; font: inherit; font-size: 14px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  background: var(--ink); color: var(--white); border: 1px solid var(--ink); padding: 16px 34px; cursor: pointer; text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--white); color: var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 18px 0 0; min-height: 1.7em; font-size: 16px; }
.form-status.ok { color: #2f5d3a; }
.form-status.err { color: #8a2a1e; }

/* ---------- Lábléc, aloldalak ---------- */
.site-footer { background: var(--beige); text-align: center; padding: 64px 24px 48px; border-top: 1px solid var(--beige-2); }
.foot-name { font-family: var(--serif); font-size: 28px; letter-spacing: .02em; margin-bottom: 14px; }
.foot-name .nm-suffix { font-size: .7em; color: var(--ink-2); }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; font-size: 15px; }
.foot-links a { text-decoration: none; border-bottom: 1px solid transparent; }
.foot-links a:hover { border-color: var(--ink); }
.foot-copy { font-size: 14px; color: var(--muted); margin: 0; }
.page-top { padding-top: calc(var(--header-h) + clamp(56px, 8vw, 100px)); min-height: 70vh; }
.legal h2 { font-size: 28px; margin: 36px 0 10px; }
.legal p { font-size: 18px; }
.lang-inline { margin-top: 28px; font-size: 15px; }

/* ---------- Beúszás ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Kisebb képernyők ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .timeline li, .entries li { grid-template-columns: 1fr; gap: 6px; padding: 26px 0; }
  .prose { font-size: 18px; }
  .hero { padding-bottom: 96px; }
  .hero-name { font-size: clamp(40px, 12vw, 64px); }
}

/* ---------- Csökkentett mozgás ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg, .scroll-cue i { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
