@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cinzel-400-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: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cinzel-400-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: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/poppins-300-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: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/poppins-300-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: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/poppins-400-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: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/poppins-400-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: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/poppins-500-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: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/poppins-500-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: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/poppins-600-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: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/poppins-600-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;
}


:root {
  --ink:        #1c1815;
  --ink-soft:   #4a423b;
  --paper:      #f6f1ea;
  --paper-2:    #efe7db;
  --sand:       #e4d8c8;
  --line:       #ddd0bf;
  --clay:       #b9603f;
  --clay-deep:  #9c4d31;
  --brass:      #a98a5e;
  --brass-deep: #7a5f41;
  --cream:      #fbf8f3;
  --white:      #ffffff;

  --maxw: 2560px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --radius: 0;
  --radius-lg: 0;
  --radius-sm: 0;
  --radius-pill: 0;

  --serif: "Cinzel", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 4px 18px rgba(28, 24, 21, 0.08);
  --shadow-md: 0 18px 50px rgba(28, 24, 21, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
/* A <picture> csak formátum-választó burkoló (AVIF + JPEG fallback), nem
   layout-elem. A display:contents kiveszi az elrendezésből, így az <img>
   marad a szülő közvetlen layout-gyereke — minden meglévő szabály
   (.shot img, .lightbox__img, flex-elemek) változatlanul érvényes marad. */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--clay); color: var(--cream); }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--clay-deep);
  margin-bottom: 1.1rem;
}
.eyebrow--light { color: var(--brass); }

.section { padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter); }
.section__head { max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section__head .eyebrow { display: block; }
.section__title {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.section__sub { margin-top: 1.2rem; color: var(--ink-soft); font-size: 1.05rem; }

.services__grid {
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr);
  overflow: hidden;
}
.services__grid > * { min-width: 0; }
.services__intro-col:nth-child(1),
.services__intro-col:nth-child(2),
.step:nth-child(3),
.step:nth-child(5) { border-right: 1px solid var(--line); }
.step:nth-child(3),
.step:nth-child(4) { border-bottom: 1px solid var(--line); }
.services__intro-col { grid-row: 1 / span 2; padding: 2.4rem 1.8rem; background: var(--cream); }
.services__intro-icon { display: block; width: 66px; height: 66px; margin: 0 0 1rem; color: var(--clay-deep); }
.services__intro-icon svg { width: 100%; height: 100%; }
.services__intro-col h3 {
  font-family: var(--serif); font-weight: 420; font-size: 1.1rem;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.8rem;
  color: var(--ink);
}
.services__intro-col p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.services__intro-col ul { display: grid; gap: 0.5rem; padding-top: 1rem; }
.services__intro-col li { font-size: 0.9rem; color: var(--ink); position: relative; padding-left: 1.2rem; }
.services__intro-col li::before { content: "✦"; position: absolute; left: 0; color: var(--clay); font-size: 0.7rem; top: 3px; }

em { font-style: italic; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius-pill);
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.btn--solid { background: transparent; color: var(--ink); border: 1px solid var(--clay); }
.btn--solid:hover { background: var(--brass-deep); color: var(--cream); border-color: var(--brass-deep); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hero__actions .btn--solid,
.services__cta .btn--solid,
.projects__cta .btn--solid,
.contact__cta .btn--solid,
.contact__form .btn--solid,
.proj-facts .btn--solid,
.proj-nav .btn--solid {
  background: var(--brass); color: var(--ink); border-color: var(--brass);
}
.proj-facts .btn--solid { color: var(--white); }
.hero__actions .btn--solid:hover,
.services__cta .btn--solid:hover,
.projects__cta .btn--solid:hover,
.contact__cta .btn--solid:hover,
.contact__form .btn--solid:hover,
.proj-facts .btn--solid:hover,
.proj-nav .btn--solid:hover {
  background: var(--brass-deep); color: var(--cream); border-color: var(--brass-deep);
}
.btn--ghost { color: var(--cream); border: 1px solid var(--brass); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--brass-deep); transform: translateY(-3px); }
.btn--full { width: 100%; }

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s, padding 0.4s;
  padding: 1.4rem 0;
}
.nav--scrolled, .nav--always-bg {
  background: rgba(246, 241, 234, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 0.85rem 0;
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--cream); transition: color 0.4s; }
.nav--scrolled .brand, .nav--solid .brand { color: var(--ink); }
.brand__mark {
  height: 42px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.brand__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--brass);
}
.nav--scrolled .brand__name,
.nav--solid .brand__name { color: var(--brass-deep); }
.brand__name__main { display: block; width: fit-content; }
.brand__name em {
  display: block; width: fit-content;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-style: normal; color: var(--ink-soft); margin-top: 4px; font-family: var(--sans);
}
.nav:not(.nav--scrolled):not(.nav--solid) .brand__name em { color: rgba(251,248,243,0.75); }
.nav--on-photo:not(.nav--scrolled):not(.nav--always-bg) .brand__name em { color: rgba(251,248,243,0.75); }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  transition: color 0.3s;
}
.nav--scrolled .nav__links a, .nav--always-bg .nav__links a { color: var(--ink); }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.35s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
#nav .nav__cta.btn--solid {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--brass); color: var(--white); border-color: var(--brass);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
#nav .nav__cta.btn--solid:hover {
  background: var(--brass-deep); color: var(--cream); border-color: var(--brass-deep);
}

.nav__burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 7px; margin-right: -7px;
}
.nav__burger span { display: block; height: 2px; background: var(--cream); transition: 0.35s var(--ease); }
.nav--scrolled .nav__burger span, .nav--always-bg .nav__burger span { background: var(--ink); }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0 0 0 auto;
  width: min(80vw, 340px);
  background: var(--ink);
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  display: flex; flex-direction: column; justify-content: center;
  gap: 0.5rem;
  padding: 2rem 2.5rem;
}
.drawer.open { transform: translateX(0); }
.drawer a {
  font-family: var(--serif);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--cream);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.3s, padding-left 0.3s;
}
.drawer a:hover { color: var(--clay); padding-left: 0.5rem; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem var(--gutter) 5rem;
  color: var(--cream);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 16s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1.11); } }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(20,16,13,0.80) 0%, rgba(20,16,13,0.45) 41%, rgba(20,16,13,0) 63%),
    linear-gradient(to top, rgba(20,16,13,0.50) 0%, rgba(20,16,13,0.15) 37%, rgba(20,16,13,0.26) 100%);
}
.hero__topscrim {
  position: absolute; top: 0; left: 0; right: 0; height: 200px;
  background: linear-gradient(to bottom, rgba(20,16,13,0.55) 0%, rgba(20,16,13,0) 100%);
}
.hero__content { max-width: 760px; }
@media (min-width: 561px) {
  .hero .eyebrow { max-width: calc(58vw - var(--gutter)); }
}
.hero__title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
  max-width: clamp(343px, 59.4vw, 748px);
}
.hero__title em { color: var(--paper); font-style: italic; }
.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: clamp(312px, 39.6vw, 576px);
  color: rgba(251, 248, 243, 0.86);
  margin-bottom: 2.4rem;
  font-weight: 300;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__quote {
  position: absolute; right: var(--gutter); bottom: 2.2rem; max-width: 550px; text-align: right;
}
.hero__quote p {
  font-family: var(--serif); font-style: italic; font-weight: 350;
  font-size: clamp(0.92rem, 1.3vw, 1.05rem); line-height: 1.5;
  color: rgba(251, 248, 243, 0.88);
}
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,0.5); border-radius: 100px;
  display: grid; place-items: start center; padding-top: 7px;
}
.hero__scroll span { width: 3px; height: 8px; border-radius: 3px; background: var(--cream); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(12px); } }

.marquee {
  background: var(--ink);
  color: var(--cream);
  padding: 0.975rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 2rem;
  animation: marquee 38s linear infinite;
}
.marquee span { font-family: var(--serif); font-size: 1.15rem; font-style: italic; font-weight: 350; }
.marquee i { color: var(--brass); font-style: normal; }
@keyframes marquee { to { transform: translateX(var(--marquee-shift, -50%)); } }

.services__cta { text-align: center; margin-top: 2.6rem; }
.step { background: var(--cream); padding: 2.4rem 1.8rem; transition: background 0.4s; }
.step:hover { background: var(--paper-2); }
.step__num { font-family: var(--serif); font-size: 2.4rem; font-weight: 350; color: var(--clay); display: block; line-height: 1; }
.step h3 { font-family: var(--serif); font-weight: 420; font-size: 1.3rem; margin: 1.2rem 0 0.6rem; color: var(--ink); }
.step p { font-size: 0.92rem; color: var(--ink-soft); text-align: justify; }

.projects { background: var(--ink); color: var(--cream); }
#projektek .section__sub { color: rgba(251,248,243,0.78); }
.gallery {
  width: calc(100vw - 14px);
  margin-left: calc(50% - 50vw + 7px); margin-right: calc(50% - 50vw + 7px);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 7px;
}
.tile { flex: 0 0 auto; position: relative; overflow: hidden; border-radius: var(--radius-lg); cursor: pointer; background: var(--sand); line-height: 0; min-height: 160px; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.tile:hover img { transform: scale(1.07); }
.tile__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1rem, 4vw, 1.6rem);
  background: linear-gradient(to top, rgba(20,16,13,0.85) 0%, rgba(20,16,13,0.1) 55%, transparent 100%);
  color: var(--cream);
  opacity: 0.92;
  transition: opacity 0.4s;
}
.tile:hover .tile__overlay { opacity: 1; }
.tile__cat {
  font-size: clamp(0.7rem, 1.6vw, 0.75rem); letter-spacing: 0.18em; text-transform: uppercase;
  line-height: 1.4;
  color: var(--white); background: var(--brass);
  padding: 0.25rem 0.7rem; border-radius: 0;
  width: fit-content; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-bottom: 0.7rem; flex-shrink: 0;
}
.tile__title {
  font-family: var(--serif); font-weight: 420; font-size: clamp(1.05rem, 4vw, 1.5rem); line-height: 1.15;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex-shrink: 0;
}
.tile__meta {
  font-size: clamp(0.76rem, 2.2vw, 0.85rem); line-height: 1.4; color: rgba(251,248,243,0.8); margin-top: 0.3rem;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  flex-shrink: 0;
}

.contact { background: var(--ink); color: var(--cream); }
.contact__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact__title { font-family: var(--serif); font-weight: 360; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.05; letter-spacing: -0.01em; }
.contact__divider { width: 256px; height: 1.5px; background: var(--clay); border-radius: 0; margin-bottom: 1.8rem; }
.contact__lead { color: rgba(251,248,243,0.78); font-size: 1.08rem; margin-bottom: 2.4rem; max-width: 44ch; }
.contact__details { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
.contact__details > div { display: flex; flex-direction: column; gap: 5px; }
.contact__name { display: block; font-family: var(--serif); font-weight: 360; font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.1; letter-spacing: -0.01em; }
.contact__details a { color: var(--cream); font-size: 1.08rem; transition: color 0.3s; width: fit-content; }
.contact__details a:hover { color: var(--clay); }
.contact__cta { margin-top: 0.864rem; }

.contact__form { background: var(--cream); color: var(--ink); padding: clamp(1.8rem, 4vw, 2.6rem); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.1rem; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.03em; margin-bottom: 0.4rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 0.95rem;
  padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(185,96,63,0.14);
}
@media (max-width: 860px) {
  .field input, .field select, .field textarea { font-size: 16px; }
}
.field textarea { resize: vertical; }
.form__status { font-size: 0.9rem; margin-top: 1rem; text-align: center; color: var(--clay-deep); min-height: 1.2em; }
.form__note { margin-top: 0.9rem; text-align: center; font-size: 0.82rem; color: var(--ink-soft); }

.section-divider { height: 1.5px; width: 100%; background: var(--brass); }

.footer { background: #15110e; color: var(--cream); padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 1.6rem; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.brand--footer { display: inline-flex; align-items: center; gap: 0.85rem; color: var(--cream); }
.footer__brand .brand__name em { color: rgba(251,248,243,0.75); }
.footer__brand p { color: rgba(251,248,243,0.6); margin-top: 0.8rem; font-size: 0.95rem; max-width: 32ch; }
.footer__nav { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__nav a { color: rgba(251,248,243,0.78); font-size: 0.95rem; transition: color 0.3s, padding-left 0.3s; width: fit-content; }
.footer__nav a:hover { color: var(--clay); padding-left: 4px; }
.footer__icons { display: flex; flex-direction: column; gap: 0.85rem; }
.footer__icons a { display: flex; align-items: center; gap: 0.7rem; font-size: 0.92rem; color: rgba(251,248,243,0.78); transition: color 0.3s, padding-left 0.3s; width: fit-content; }
.footer__icons a:hover { color: var(--clay); padding-left: 4px; }
.footer__icons img { width: 24px; height: 24px; flex-shrink: 0; border-radius: 0; transition: transform 0.3s var(--ease); }
.footer__icons a:hover img { transform: scale(1.12); }
.footer__bottom { max-width: var(--maxw); margin: 1.6rem auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.82rem; color: rgba(251,248,243,0.55); }

#rolam {
  --rolam-top-pad: calc(clamp(4.5rem, 10vw, 8.5rem) / 2);
  padding-top: var(--rolam-top-pad);
  padding-bottom: var(--rolam-top-pad);
}
.about__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.about__media {
  margin-left: calc(-1 * var(--gutter));
  align-self: start;
  margin-top: calc(-1 * var(--rolam-top-pad));
}
.about__media img { display: block; width: 100%; height: auto; transform: scaleX(-1); }
@media (min-width: 861px) {
  .about__media {
    position: relative;
    align-self: stretch;
    margin-top: 0;
  }
  .about__media img {
    position: absolute;
    top: calc(-1 * var(--rolam-top-pad));
    left: 0;
    width: 100%;
    height: calc(100% + var(--rolam-top-pad));
    object-fit: cover;
  }
}
.about__text { max-width: calc(100% - 3 * var(--gutter)); margin: 0 auto; text-align: center; }
.about__title {
  font-family: var(--serif); font-weight: 360;
  font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.05;
  letter-spacing: -0.01em;
}
.about__divider { width: 256px; height: 1.5px; background: var(--clay); margin-bottom: 1.8rem; }
.about__divider--center { margin-left: auto; margin-right: auto; }
.about__lead { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.65; max-width: 52ch; margin-left: auto; margin-right: auto; margin-bottom: 1rem; }
.about__lead:last-of-type { margin-bottom: 2.4rem; }

.about__cards { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); border: 1px solid var(--line); }
.about__card { background: var(--cream); padding: 1.5rem 1.4rem; transition: background 0.4s; }
.about__card:nth-child(1),
.about__card:nth-child(3) { border-right: 1px solid var(--line); }
.about__card:nth-child(1),
.about__card:nth-child(2) { border-bottom: 1px solid var(--line); }
.about__card:hover { background: var(--paper-2); }
.about__card-big { font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--clay); display: block; margin-bottom: 0.3rem; }
.about__card h3 { font-family: var(--serif); font-weight: 420; font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.45rem; }
.about__card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }

.about__awards { margin-top: 4rem; margin-bottom: 4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.about__awards-title {
  font-family: var(--serif); font-weight: 420; font-size: 1.05rem;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink);
  margin-bottom: 0.9rem;
}
.about__awards-list { list-style: none; display: grid; gap: 0.6rem; }
.about__awards-item { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.5rem; text-align: center; }
.about__awards-year { font-family: var(--serif); font-size: 1.05rem; color: var(--clay); }
.about__awards-name { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.45; }

.milestones__row {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(1rem, 2.5vw, 2rem);
  position: relative; text-align: center; list-style: none;
}
.milestones__row::before {
  content: ""; position: absolute; top: 51px; left: 10%; right: 11px;
  height: 1px; background: var(--line);
}
.milestones__row::after {
  content: ""; position: absolute; top: 51px; right: 0;
  width: 11px; height: 20px; transform: translateY(-50%);
  background: var(--line);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 4 9 16'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 4 9 16'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.milestone { position: relative; }
.milestone__icon {
  width: 102px; height: 102px; margin: 0 auto 1.1rem;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--paper); color: var(--brass);
  position: relative; z-index: 1;
}
.milestone__icon svg { width: 66px; height: 66px; }
.milestone__year { font-family: var(--serif); font-size: 1.45rem; color: var(--clay); display: block; margin-bottom: 0.35rem; }
.milestone h3 { font-family: var(--sans); font-weight: 500; font-size: 0.92rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay); margin-bottom: 0.55rem; }
.milestone p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .services__intro-col { grid-row: auto; }
  .services__grid > :nth-child(odd) { border-right: 1px solid var(--line); }
  .services__grid > :nth-child(even) { border-right: none; }
  .services__grid > :nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .services__grid > :nth-child(n+5) { border-bottom: none; }
}
@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .services__grid > :nth-child(odd) { border-right: none; }
  .services__grid > :not(:last-child) { border-bottom: 1px solid var(--line); }
  .services__grid > :last-child { border-bottom: none; }
}

@media (max-width: 1024px) {
  .milestones__row { grid-template-columns: repeat(3, 1fr); row-gap: 2.2rem; }
  .milestones__row::before, .milestones__row::after { display: none; }
}

@media (max-width: 1180px) and (min-width: 861px) {
  .nav__links { gap: 1.1rem; }
  .nav__links a { font-size: 0.86rem; }
}

@media (max-width: 1180px) {
  .hero__quote { position: static; max-width: 480px; text-align: left; margin-top: 2rem; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__scrim {
    background:
      linear-gradient(to right, rgba(20,16,13,0.80) 0%, rgba(20,16,13,0.66) 60%, rgba(20,16,13,0.52) 100%),
      linear-gradient(to top, rgba(20,16,13,0.50) 0%, rgba(20,16,13,0.15) 37%, rgba(20,16,13,0.26) 100%);
  }
  .page-hero--photo .page-hero__scrim {
    background:
      linear-gradient(to right, rgba(20,16,13,0.425) 0%, rgba(20,16,13,0.36) 60%, rgba(20,16,13,0.3) 100%),
      linear-gradient(to top, rgba(20,16,13,0.85) 0%, rgba(20,16,13,0.25) 55%, rgba(20,16,13,0.5) 100%);
  }
  .step p { text-align: left; }
  .hero__title { max-width: 92%; }
  .hero__lead { max-width: 46ch; }
  .hero .eyebrow { max-width: none; }

  .about__grid { grid-template-columns: 1fr; }
  .about__media {
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
  }
  .milestones__row { grid-template-columns: repeat(3, 1fr); row-gap: 2.4rem; }
  .milestones__row::before, .milestones__row::after { display: none; }
}

@media (max-width: 560px) {
  .field--row { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .about__cards { grid-template-columns: 1fr; }
  .about__card:nth-child(1),
  .about__card:nth-child(3) { border-right: none; }
  .about__card:not(:last-child) { border-bottom: 1px solid var(--line); }
  .about__card:last-child { border-bottom: none; }
  .milestones__row { grid-template-columns: repeat(2, 1fr); }
}

.projects__cta { text-align: center; margin-top: 2.6rem; }

.subpage { padding-top: 0; }
.section--top { padding-top: clamp(1.5rem, 4vw, 3rem); }
.section--tight { padding-top: clamp(2rem, 4vw, 3.5rem); padding-bottom: clamp(2rem, 5vw, 4rem); }

.page-hero { position: relative; background: var(--paper-2); padding: clamp(7rem, 14vw, 11rem) var(--gutter) clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid var(--line); }
.page-hero__inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.page-hero__title { font-family: var(--serif); font-weight: 360; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1; letter-spacing: -0.02em; }
.page-hero__lead { margin-top: 1.2rem; max-width: 52ch; color: var(--ink-soft); font-size: 1.08rem; }
.page-hero--photo { overflow: hidden; color: var(--cream); background: none; border-bottom: none; }
.page-hero--photo .page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero--photo .page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.page-hero--photo .page-hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(20,16,13,0.425) 0%, rgba(20,16,13,0.425) 40%, rgba(20,16,13,0.225) 50%, rgba(20,16,13,0) 60%),
    linear-gradient(to top, rgba(20,16,13,0.85) 0%, rgba(20,16,13,0.25) 55%, rgba(20,16,13,0.5) 100%);
}
.page-hero--photo .page-hero__lead { color: rgba(251,248,243,0.86); }

.filters { max-width: var(--maxw); margin: 0 auto 1rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { font-size: 0.88rem; font-weight: 400; padding: 0.55rem 1.2rem; border-radius: 0; border: 1px solid var(--line); background: var(--cream); color: var(--ink-soft); transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s; }
.chip:hover { border-color: var(--brass); color: var(--ink); transform: translateY(-1px); }
.chip--on { background: var(--brass-deep); color: var(--cream); border-color: var(--brass-deep); }
.gallery-count { max-width: var(--maxw); margin: 0 auto 1.8rem; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay-deep); }

.projects-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--cream); border: 1px solid var(--brass); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s; }
.pcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.pcard__media { aspect-ratio: 4 / 3; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.07); }
.pcard__body { padding: 1.3rem 1.4rem 1.6rem; }
.pcard__cat { display: inline-block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); background: var(--brass); padding: 0.3rem 0.7rem; border-radius: 0; margin-bottom: 0.8rem; }
.pcard__title { font-family: var(--serif); font-weight: 430; font-size: 1.4rem; line-height: 1.1; }
.pcard__meta { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.35rem; }

.proj-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: var(--cream); overflow: hidden; padding-left: var(--gutter); padding-right: var(--gutter); }
.proj-hero__media { position: absolute; inset: 0; z-index: -1; }
.proj-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.proj-hero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,16,13,0.9) 0%, rgba(20,16,13,0.2) 55%, rgba(20,16,13,0.55) 100%); }
.proj-hero__content { max-width: var(--maxw); width: 100%; margin: 0 auto; padding-top: clamp(9rem, 16vw, 12rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); display: flex; flex-direction: column; align-items: flex-start; }
.proj-back {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 200px;
  font-size: 0.86rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cream);
  background: rgba(20, 16, 13, 0.45);
  border: 1px solid var(--brass);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 0.95rem 1.3rem;
  border-radius: 0;
  margin-bottom: 1.4rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
  will-change: transform;
}
.proj-back svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }
.proj-back span { display: block; line-height: 1; }
.proj-back:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); transform: translateY(-2px); }
.proj-hero__content h1 { font-family: var(--serif); font-weight: 360; font-size: clamp(1.68rem, 4.2vw, 3.08rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0; }

.proj-body { padding-top: clamp(2.25rem, 5vw, 4.25rem); padding-bottom: clamp(2.25rem, 5vw, 4.25rem); }
.proj-nav { padding: 2rem var(--gutter); }
@media (min-width: 1200px) {
  .proj-hero, .proj-nav, .proj-body, .proj-gallery { padding-left: calc(var(--gutter) * 2); padding-right: calc(var(--gutter) * 2); }
}
.proj-body__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.proj-body__text p { color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 1.1rem; }
.proj-body__text strong { color: var(--ink); font-weight: 600; }
.proj-body__text h3, .proj-body__text h4 { font-family: var(--serif); color: var(--ink); font-weight: 380; line-height: 1.2; margin: 1.6rem 0 0.9rem; letter-spacing: -0.01em; }
.proj-body__text h3 { font-size: clamp(1.14rem, 2vw, 1.42rem); }
.proj-body__text h4 { font-size: 1.06rem; font-style: italic; }
.proj-body__text a { color: var(--clay-deep); text-decoration: underline; text-underline-offset: 0.15em; }
.proj-body__text a:hover { color: var(--clay); }
.proj-body__text ul, .proj-body__text ol { color: var(--ink-soft); font-size: 1.06rem; margin: 0 0 1.1rem; padding-left: 1.3rem; }
.proj-body__text ul { list-style: disc; }
.proj-body__text ol { list-style: decimal; }
.proj-body__text li { margin-bottom: 0.4rem; }
.proj-body__text blockquote { margin: 1.4rem 0; padding: 0.2rem 0 0.2rem 1.2rem; border-left: 2px solid var(--brass); color: var(--ink-soft); font-style: italic; }
.proj-facts { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.6rem; position: sticky; top: 90px; }
.fact { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.fact:first-child { padding-top: 0; }
.fact span { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.fact strong { font-weight: 600; text-align: right; }

.gallery-heading {
  font-family: var(--sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--clay-deep);
  font-size: clamp(1.28rem, 2.56vw, 1.92rem);
  line-height: 1;
}

.shots { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.shot { flex: 0 0 auto; position: relative; overflow: hidden; border-radius: var(--radius-sm); cursor: zoom-in; padding: 0; border: none; background: var(--sand); line-height: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease); }
.shot:hover img { transform: scale(1.04); }
/* Előtte/utána galéria-csempe: az "after" kép a teljes csempét kitölti,
   a "before" kép fölé rétegezve, átlósan (bal-alsó → jobb-felső) levágva —
   így már kattintás/nagyítás előtt is látszik, hogy van előtte/utána
   összehasonlítás ennél a képnél. */
.shot--split .shot__before {
  position: absolute; inset: 0;
  clip-path: polygon(0 0, 72% 0, 28% 100%, 0 100%);
  -webkit-clip-path: polygon(0 0, 72% 0, 28% 100%, 0 100%);
  filter: drop-shadow(2px 2px 3px rgba(20,16,13,0.4));
}

.proj-nav__inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.proj-nav .btn--solid,
.proj-nav .btn--solid:hover {
  color: var(--white);
}
.proj-nav__link {
  width: 200px;
  padding: 0.95rem 1.3rem;
  font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.proj-nav__link span { display: block; line-height: 1; }
.proj-nav__link svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }

.shot--compare { cursor: ew-resize; }
.shot--compare:hover { cursor: ew-resize; }
.shot--compare .cmp__after,
.shot--compare .cmp__before { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot--compare .cmp__before-wrap {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-clip-path: inset(0 50% 0 0);
  clip-path: inset(0 50% 0 0);
}
.shot--compare .cmp__before { position: absolute; top: 0; left: 0; }
.shot--compare:hover .cmp__after,
.shot--compare:hover .cmp__before { transform: none; }
.shot--compare .cmp__line {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 1.5px;
  background: rgba(251,248,243,0.9); transform: translateX(-1px);
  box-shadow: 0 0 0 1px rgba(20,16,13,0.12); pointer-events: none;
}
.shot--compare .cmp__handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 0; background: var(--cream); color: var(--ink);
  display: grid; place-items: center; box-shadow: var(--shadow-sm); pointer-events: none;
  transition: transform 0.3s var(--ease);
}
.shot--compare .cmp__handle svg { width: 17px; height: 17px; }
.shot--compare:hover .cmp__handle { transform: translate(-50%, -50%) scale(1.1); }
.shot--compare .cmp__tag {
  position: absolute; top: 0.7rem; font-size: clamp(0.58rem, 1.6vw, 0.64rem);
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  color: var(--paper); background: rgba(185,96,63,0.9);
  padding: 0.24rem 0.65rem; border-radius: 0; line-height: 1.4; pointer-events: none;
}
.shot--compare .cmp__tag--before { left: 0.7rem; }
.shot--compare .cmp__tag--after { right: 0.7rem; }
.shot--compare .cmp__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
}

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,11,9,0.95); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.35s; padding: 4rem 1.5rem; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox__img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 0; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox .shot--compare { border-radius: 0; box-shadow: 0 30px 80px rgba(0,0,0,0.5); cursor: ew-resize; }
.lightbox__close { position: absolute; z-index: 1; top: 1.4rem; right: 1.6rem; width: 46px; height: 46px; border-radius: 0; background: rgba(20,16,13,0.6); color: var(--cream); font-size: 1.2rem; transition: background 0.3s; }
.lightbox__close:hover { background: rgba(20,16,13,0.85); }
/* z-index kell, mert az #lbCompare (előtte/utána doboz) a DOM-ban a nav
   gombok után jön és pozicionált elem — enélkül szélesebb képeknél a
   csúszka (.cmp__range, ami a teljes dobozt lefedi) a gombok fölé kerülne
   és letiltaná a kattintást rajtuk. */
.lightbox__nav { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 0; background: rgba(20,16,13,0.6); border: 1px solid var(--brass); color: var(--cream); font-size: 2rem; line-height: 1; transition: background 0.3s, border-color 0.3s; }
.lightbox__nav:hover { background: rgba(20,16,13,0.85); border-color: var(--brass); }
.lightbox__nav--prev { left: 1.4rem; }
.lightbox__nav--next { right: 1.4rem; }
.lightbox__counter { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); color: rgba(251,248,243,0.75); font-size: 0.9rem; letter-spacing: 0.1em; }

@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .proj-body__grid { grid-template-columns: 1fr; }
  .proj-facts { position: static; }
}
@media (max-width: 560px) {
  .projects-grid { grid-template-columns: 1fr; }
  .lightbox__nav { width: 44px; height: 44px; font-size: 1.6rem; }
}

.legal { max-width: 760px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(4rem, 9vw, 7rem); }
.legal h2 { font-family: var(--serif); font-weight: 420; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; margin: 2.4rem 0 0.9rem; letter-spacing: -0.01em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; margin: 1.6rem 0 0.5rem; color: var(--ink); }
.legal p, .legal li, .legal dd { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; }
.legal p { margin-bottom: 1rem; }
.legal ul { margin: 0 0 1rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.legal a { color: var(--clay-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--clay); }
.legal dl { margin: 0 0 1rem; }
.legal dt { font-weight: 600; color: var(--ink); margin-top: 0.9rem; font-size: 0.98rem; }
.legal dd { margin: 0.15rem 0 0; }
.legal mark { background: #fbe7b0; color: var(--ink); padding: 0.05em 0.35em; border-radius: 0; font-style: normal; }
.legal__table-wrap { overflow-x: auto; margin-bottom: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 520px; }
.legal th, .legal td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 600; color: var(--ink); background: var(--paper-2); white-space: nowrap; }
.legal td { color: var(--ink-soft); }
.legal tr:last-child td { border-bottom: none; }

.footer__legal { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; }
.footer__legal a, .footer__legal button {
  color: rgba(251,248,243,0.55); transition: color 0.3s; font-size: inherit;
  display: inline-flex; align-items: center; min-height: 24px;
}
.footer__legal a:hover, .footer__legal button:hover { color: var(--clay); }

.cookie { position: fixed; left: 50%; transform: translateX(-50%) translateY(160%); bottom: clamp(0.8rem, 2vw, 1.6rem); width: min(1020px, calc(100% - 2rem)); z-index: 250; background: var(--ink); color: var(--cream); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 1.3rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; transition: transform 0.5s var(--ease); }
.cookie.show { transform: translateX(-50%) translateY(0); }
.cookie__text { flex: 1 1 280px; font-size: 0.92rem; line-height: 1.55; color: rgba(251,248,243,0.85); margin: 0; }
.cookie__text a { color: var(--brass); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.cookie__btn { font-size: 0.88rem; font-weight: 400; padding: 0.6rem 1.3rem; border-radius: 0; cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s; border: 1px solid transparent; }
.cookie__btn--accept { background: var(--clay-deep); color: var(--cream); }
.cookie__btn--accept:hover { background: var(--ink); }
.cookie__btn--decline { background: transparent; color: var(--cream); border-color: rgba(251,248,243,0.35); }
.cookie__btn--decline:hover { border-color: var(--cream); }
@media (max-width: 560px) {
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie__text { flex: 0 0 auto; }
  .cookie__btn { flex: 1; }
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 300;
  background: var(--ink);
  color: var(--cream);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
  border-radius: 0;
}

