/* Sándor Gábor – kovácsolt kések
   Palette: forge coal, scale, bone, ash, ember + the steel temper colours. */

@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, 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; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-latin-wght-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-latin-ext-wght-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; unicode-range: U+0100-02AF, 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; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, 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 {
  --coal: #15120f;       /* forge coal: page ground */
  --scale: #211c17;      /* mill scale: raised surfaces */
  --scale-2: #2c251e;
  --bone: #ece4d6;       /* text */
  --ash: #a39889;        /* secondary text */
  --ember: #e27a36;      /* the one accent: actions only */
  --ember-hot: #f29a55;
  --line: rgba(236, 228, 214, .14);
  /* temper colours of steel, in heat order */
  --t-straw: #d8b76c;
  --t-bronze: #b47a3e;
  --t-purple: #7a4a78;
  --t-blue: #3f5f8f;
  --temper: linear-gradient(90deg, var(--t-straw), var(--t-bronze) 34%, var(--t-purple) 66%, var(--t-blue));

  --serif: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 78rem;
  --section: clamp(5rem, 11vw, 9.5rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--coal);
  color: var(--bone);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: rgba(226, 122, 54, .6); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ember-hot); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ember); color: var(--coal); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--bone); color: var(--coal); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: .98; }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.05rem); line-height: 1.1; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.45; color: var(--bone); max-width: 34ch; }
.muted { color: var(--ash); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 3.1rem; padding: .8rem 1.5rem;
  font: 600 1rem/1 var(--sans); text-decoration: none; letter-spacing: .01em;
  border: 1px solid var(--bone); color: var(--bone); background: transparent;
  border-radius: 2px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--bone); color: var(--coal); }
.btn--ember { background: var(--ember); border-color: var(--ember); color: #1a0f07; }
.btn--ember:hover { background: var(--ember-hot); border-color: var(--ember-hot); color: #1a0f07; }

/* ---------- Header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-head.is-solid { background: rgba(21, 18, 15, .94); border-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--bone); }
.brand svg { width: 2.1rem; height: 2.1rem; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1; }
.brand-name small { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 500; color: var(--ash); letter-spacing: .02em; margin-top: .25rem; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav-links { display: flex; gap: clamp(1rem, 2.2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--bone); padding-block: .5rem; }
.nav-links a:hover { color: var(--ember-hot); }
.lang { font-size: .85rem; font-weight: 600; text-decoration: none; border: 1px solid var(--line); padding: .35rem .6rem; border-radius: 2px; }
.lang:hover { border-color: var(--ember); }
.menu-btn { display: none; background: none; border: 0; color: var(--bone); padding: .5rem; cursor: pointer; }
.menu-btn svg { width: 1.75rem; height: 1.75rem; }

@media (max-width: 880px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 0; top: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 1.25rem;
    padding: 6rem var(--gutter) 3rem; background: var(--coal);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav-links a { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; }
  .site-head.is-open .nav-links { opacity: 1; visibility: visible; }
  .site-head.is-open { background: var(--coal); }
}

/* ---------- Hero ----------
   Full-screen forge photo. Gábor's face sits at ~47% across and ~40% down the
   photo. The photo is sized like "cover" and then slid so the face lands as far
   right as possible (target 68% of the screen) without ever showing an edge.
   The text column is capped so it always ends before the face starts.
   Narrow or portrait screens: photo fills the top, text below it. */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-img { position: relative; z-index: -2; height: min(66svh, 125vw); min-height: 20rem; container-type: size; }
.hero-img img {
  --W: max(100cqw, calc(var(--ar, 1.446) * 100cqh)); /* photo width when covering the box */
  --H: calc(var(--W) / var(--ar, 1.446));
  position: absolute; max-width: none; width: var(--W); height: var(--H);
  left: clamp(calc(100cqw - var(--W)), calc(60cqw - var(--fx, .47) * var(--W)), 0px);
  top: clamp(calc(100cqh - var(--H)), calc(42cqh - var(--fy, .40) * var(--H)), 0px);
}
.hero-img::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, var(--coal) 0%, rgba(21,18,15,.5) 20%, rgba(21,18,15,0) 42%),
    linear-gradient(180deg, rgba(21,18,15,.7) 0%, rgba(21,18,15,0) 20%);
}
.hero .wrap { position: relative; padding-block: 0 clamp(3rem, 7vw, 4.5rem); margin-top: clamp(-4.5rem, -9vw, -2.5rem); }
.hero h1 {
  font-size: clamp(3.1rem, 13vw, 6rem); line-height: .88; font-weight: 500;
  letter-spacing: -.025em; max-width: 9ch;
}
@media (min-width: 900px) and (min-aspect-ratio: 6/5) {
  .hero {
    min-height: 100svh; display: grid; align-items: center;
    /* room for the text: from the content edge to just before the face (~41% across) */
    --copy: calc((var(--fx, .47) - .06) * 100vw - max(0px, (100vw - var(--max)) / 2) - var(--gutter) - 2rem);
  }
  .hero-img { position: absolute; inset: 0; height: auto; min-height: 0; }
  .hero-img img { left: clamp(calc(100cqw - var(--W)), calc(68cqw - var(--fx, .47) * var(--W)), 0px); }
  .hero-img::after {
    background:
      linear-gradient(90deg, rgba(21,18,15,.92) 0%, rgba(21,18,15,.72) 24%, rgba(21,18,15,0) 40%),
      linear-gradient(0deg, rgba(21,18,15,.9) 0%, rgba(21,18,15,0) 28%),
      linear-gradient(180deg, rgba(21,18,15,.65) 0%, rgba(21,18,15,0) 18%);
  }
  .hero .wrap { margin-top: 0; padding-block: 7rem 4rem; }
  .hero-copy { max-width: min(34rem, var(--copy)); }
  .hero h1 { font-size: min(7.4rem, 7vw, calc(var(--copy) / 4.6)); }
  .hero-sub { max-width: 34ch; }
}
.hero-sub { margin-top: 1.75rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 40ch; color: var(--bone); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }
.hero-proof { margin-top: 2.5rem; font-size: .9rem; color: var(--ash); display: flex; align-items: center; gap: .6rem; }
.hero-proof svg { width: 1.1rem; height: 1.1rem; color: var(--t-straw); flex: none; }
.temper-rule { height: 5px; background: var(--temper); }

/* hero page-load: the one orchestrated moment – the steel "heats up" */
@media (prefers-reduced-motion: no-preference) {
  .hero-img img { animation: forge 2.4s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1, .hero-sub, .hero-actions, .hero-proof { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
  .hero-sub { animation-delay: .25s; } .hero-actions { animation-delay: .4s; } .hero-proof { animation-delay: .55s; }
  .temper-rule { animation: temper 1.6s .3s cubic-bezier(.6,0,.2,1) both; transform-origin: left; }
}
@keyframes forge { from { filter: brightness(.3) saturate(.6); } to { filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes temper { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { color: var(--ash); max-width: 52ch; margin: 0; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; column-gap: 4rem; }
}

/* ---------- About ---------- */
.about { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 6fr; } }
.about figure { margin: 0; position: relative; }
.about figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about figcaption { font-size: .85rem; color: var(--ash); margin-top: .75rem; }
.about h2 { margin-bottom: 1.75rem; }
.about .lead { margin-bottom: 1.5rem; }
.facts { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.facts dt, .facts .k { color: var(--ash); }
@media (max-width: 480px) { .facts li { grid-template-columns: 1fr; gap: .1rem; } }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button {
  font: 500 .95rem/1 var(--sans); color: var(--bone); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: .65rem 1.1rem; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.filters button:hover { border-color: var(--ash); }
.filters button[aria-pressed="true"] { background: var(--bone); color: var(--coal); border-color: var(--bone); }
.filters .count { color: var(--ash); margin-left: .35em; font-weight: 400; }
.filters button[aria-pressed="true"] .count { color: #6c6357; }

.gallery { columns: 4 13.5rem; column-gap: 1rem; }
.gallery li { break-inside: avoid; margin: 0 0 1rem; list-style: none; }
.gallery { padding: 0; margin: 0; }
.gallery li[hidden] { display: none !important; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--scale); cursor: zoom-in; position: relative; overflow: hidden; }
.gallery img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .3s; }
.gallery button:hover img { transform: scale(1.035); }
.gallery-note { margin-top: 2.5rem; color: var(--ash); }

/* Lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(12, 10, 8, .97); color: var(--bone); }
.lightbox::backdrop { background: rgba(12, 10, 8, .9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: max(1rem, env(safe-area-inset-top)) var(--gutter) .5rem; font-size: .9rem; color: var(--ash); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(.5rem, 5vw, 5rem); }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-cap { padding: .75rem var(--gutter) max(1.25rem, env(safe-area-inset-bottom)); text-align: center; font-family: var(--serif); font-size: 1.25rem; }
.lb-btn { background: none; border: 1px solid var(--line); color: var(--bone); width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { border-color: var(--ember); color: var(--ember-hot); }
.lb-btn svg { width: 1.3rem; height: 1.3rem; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(21,18,15,.6); }
.lb-prev { left: clamp(.5rem, 2vw, 1.5rem); } .lb-next { right: clamp(.5rem, 2vw, 1.5rem); }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  display: grid; gap: 1.25rem 3rem; padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line); counter-increment: step;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.5rem); line-height: .8; color: var(--ash); font-weight: 400; }
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: .75rem; }
.step p { color: #d6cdbf; }
.step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 860px) {
  .step { grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 22rem); align-items: start; }
  .step--noimg { grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 22rem); }
}

/* temper scale – the signature motif explained */
.temper-scale { margin-top: 1.5rem; max-width: 34rem; }
.temper-bar { height: 14px; background: var(--temper); border-radius: 1px; }
.temper-labels { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: .6rem; font-size: .82rem; color: var(--ash); }
.temper-labels span:nth-child(2) { text-align: center; transform: translateX(-12%); }
.temper-labels span:nth-child(3) { text-align: center; transform: translateX(12%); }
.temper-labels span:last-child { text-align: right; }
.temper-labels b { display: block; color: var(--bone); font-weight: 600; }

/* ---------- Exhibitions ---------- */
.shows { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .shows { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
@media (min-width: 1100px) { .shows { grid-template-columns: 1fr 1fr 1fr 1.35fr; } }
.show { margin: 0; }
.show img { width: 100%; height: auto; }
.show figcaption { margin-top: .85rem; }
.show figcaption strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.show figcaption span { color: var(--ash); font-size: .92rem; }

/* ---------- Commission ---------- */
.commission { display: grid; gap: clamp(3rem, 6vw, 6rem); }
@media (min-width: 960px) { .commission { grid-template-columns: 1fr 1fr; } }
.ask-list { list-style: none; padding: 0; margin: 1.75rem 0 0; }
.ask-list li { padding: 1rem 0 1rem 2.25rem; border-top: 1px solid var(--line); position: relative; }
.ask-list li:last-child { border-bottom: 1px solid var(--line); }
.ask-list li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: 1.1rem; height: 2px; background: var(--temper); }
.ask-list strong { font-weight: 600; }
.ask-list span { display: block; color: var(--ash); font-size: .95rem; }

.form { background: var(--scale); padding: clamp(1.5rem, 4vw, 2.75rem); border-top: 5px solid; border-image: var(--temper) 1; }
.form h3 { margin-bottom: .5rem; }
.form > p { color: var(--ash); font-size: .95rem; }
.field { display: grid; gap: .4rem; margin-top: 1.1rem; }
.field label { font-size: .92rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--bone);
  background: var(--coal); border: 1px solid rgba(236,228,214,.22); border-radius: 2px; padding: .8rem .9rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember); }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form .btn { margin-top: 1.5rem; width: 100%; }
.form-note { font-size: .82rem; color: var(--ash); margin-top: 1rem; }
.form-error { color: var(--ember-hot); font-size: .9rem; margin-top: .75rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.35rem 2.5rem 1.35rem 0; position: relative;
  font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.65rem); font-weight: 500; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .25rem; top: 50%; width: .8rem; height: .8rem; border-right: 1.5px solid var(--ash); border-bottom: 1.5px solid var(--ash); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:hover { color: var(--ember-hot); }
.faq .answer { padding-bottom: 1.5rem; color: #d6cdbf; }
.faq .answer ul { margin: 0 0 1em; padding-left: 1.2rem; max-width: 60ch; }
.faq .answer li { margin-bottom: .35rem; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.15fr; } }
.contact-lines { list-style: none; padding: 0; margin: 0; }
.contact-lines li { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.contact-lines li:last-child { border-bottom: 1px solid var(--line); }
.contact-lines .k { display: block; font-size: .88rem; color: var(--ash); margin-bottom: .2rem; }
.contact-lines a, .contact-lines .v { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; text-decoration: none; line-height: 1.2; overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--ember-hot); }
.socials { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.socials a { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; border: 1px solid var(--line); padding: .7rem 1rem; border-radius: 2px; font-weight: 500; font-size: .95rem; }
.socials a:hover { border-color: var(--ember); }
.socials svg { width: 1.15rem; height: 1.15rem; }

.map { position: relative; background: var(--scale); min-height: 24rem; height: 100%; display: grid; place-items: center; text-align: center; overflow: hidden; }
.map svg.map-art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.map-inner { position: relative; padding: 2rem; max-width: 26rem; }
.map-inner p { color: var(--ash); font-size: .92rem; margin-inline: auto; }
.map-inner strong { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; margin-bottom: .5rem; color: var(--bone); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 3rem calc(3rem + env(safe-area-inset-bottom, 0px)); font-size: .9rem; color: var(--ash); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--bone); }

/* ---------- Legal page ---------- */
.legal { padding-block: 9rem 6rem; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; margin-bottom: 2rem; }
.legal h2 { font-size: 1.8rem; margin: 2.5rem 0 .75rem; }
.legal p, .legal li { color: #d6cdbf; max-width: 68ch; }
.todo { display: inline-block; background: var(--ember); color: #1a0f07; font-size: .75rem; font-weight: 700; padding: .1rem .4rem; border-radius: 2px; margin-right: .4rem; }
.gallery-links { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.5rem; }
.gallery-more[hidden] { display: none; }
@media (max-width: 560px) {
  .gallery { columns: 2; column-gap: .6rem; }
  .gallery li { margin-bottom: .6rem; }
  .filters button { padding: .55rem .9rem; font-size: .9rem; }
}
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Touch targets (44px minimum) ---------- */
.filters button { min-height: 2.75rem; }
.lang { min-height: 2.75rem; min-width: 2.75rem; display: inline-grid; place-items: center; }
.menu-btn { min-width: 2.75rem; min-height: 2.75rem; }
.contact-lines a { display: inline-block; padding-block: .3rem; }
.site-foot nav a { display: inline-block; padding-block: .7rem; }
.brand-name small { font-size: .75rem; }
.menu-btn .i-close { display: none; }
.site-head.is-open .menu-btn .i-open { display: none; }
.site-head.is-open .menu-btn .i-close { display: block; }
@media (max-width: 560px) { .filters button { min-height: 2.75rem; } }
/* Cormorant uses old-style figures by default; phone numbers and dates read better lining */
.contact-lines, .show figcaption, .hero-proof, .lb-count, .filters .count, .temper-labels { font-variant-numeric: lining-nums; }
.contact-lines a, .contact-lines .v { font-variant-numeric: lining-nums tabular-nums; }
.nowrap { white-space: nowrap; }

/* ---------- Full gallery page (galeria.html / en/gallery.html) ---------- */
.page-gallery .site-head { background: rgba(21, 18, 15, .96); border-color: var(--line); }
.gallery-page { padding-top: calc(4.5rem + env(safe-area-inset-top, 0px)); padding-bottom: var(--section); }
.crumbs { display: flex; flex-wrap: wrap; gap: .6rem; padding-top: clamp(1.5rem, 4vw, 2.5rem); font-size: .9rem; color: var(--ash); }
.crumbs a { text-decoration: none; color: var(--ash); padding-block: .6rem; }
.crumbs a:hover { color: var(--bone); }
.crumbs span[aria-hidden] { padding-block: .6rem; }
.crumbs [aria-current] { color: var(--bone); padding-block: .6rem; }
.gallery-intro { display: grid; gap: 1.25rem 4rem; padding-block: clamp(1rem, 3vw, 2rem) clamp(2rem, 4vw, 3rem); align-items: end; }
.gallery-intro h1 { font-size: clamp(3.4rem, 11vw, 8rem); line-height: .85; font-weight: 500; letter-spacing: -.025em; }
.gallery-intro .lead { max-width: 40ch; margin-bottom: .75rem; }
.gallery-intro .muted { max-width: 52ch; margin: 0; }
@media (min-width: 900px) { .gallery-intro { grid-template-columns: auto minmax(0, 1fr); } .gallery-intro > div { padding-bottom: .6rem; } }

/* filters stay reachable while scrolling a long gallery */
.filter-bar { position: sticky; top: calc(4.5rem + env(safe-area-inset-top, 0px)); z-index: 20; background: rgba(21, 18, 15, .96); border-block: 1px solid var(--line); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.filter-bar .filters { margin: 0; padding-block: .75rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filter-bar .filters::-webkit-scrollbar { display: none; }
.filter-bar .filters button { flex: none; white-space: nowrap; }
@media (min-width: 900px) { .filter-bar .filters { flex-wrap: wrap; overflow: visible; } }

/* even grid of 4:5 tiles, read left-to-right; full photo opens in the viewer */
.gallery--grid { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 45%), 1fr)); gap: clamp(.5rem, 1.2vw, 1rem); }
.gallery--grid li { margin: 0; break-inside: auto; }
.gallery--grid button { aspect-ratio: 4 / 5; height: 100%; }
.gallery--grid img { width: 100%; height: 100%; object-fit: cover; }
.tile-cap {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem .9rem .8rem; text-align: left;
  font: 500 .88rem/1.35 var(--sans); color: var(--bone);
  background: linear-gradient(0deg, rgba(12,10,8,.88), rgba(12,10,8,0));
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.gallery--grid button:hover .tile-cap, .gallery--grid button:focus-visible .tile-cap { opacity: 1; transform: none; }
@media (hover: none) { .tile-cap { display: none; } }
@media (max-width: 560px) { .gallery--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; } }

.gallery-cta h2 { margin-bottom: 1rem; }
.gallery-cta p { color: var(--ash); max-width: 46ch; }
.gallery-cta .hero-actions { margin-top: 1.75rem; }

/* ---------- WordPress additions ---------- */
.admin-bar .site-head { top: 32px; }
.admin-bar .filter-bar { top: calc(4.5rem + 32px); }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } .admin-bar .filter-bar { top: calc(4.5rem + 46px); } }
@media (max-width: 600px) { .admin-bar .site-head { top: 0; } }
.entry h2 { font-size: 1.8rem; margin: 2.5rem 0 .75rem; }
.entry h3 { font-size: 1.4rem; margin: 2rem 0 .5rem; }
.entry ul, .entry ol { color: #d6cdbf; padding-left: 1.2rem; max-width: 68ch; }
.entry a { color: var(--bone); }
.entry img { height: auto; }
.legal article + article { margin-top: 3rem; }
