/* Písmeno I (a Í) v nadpisech: místo patkového „I“ z Lexend Zetta jen čistá svislá čárka (z Inter Tight) */
@font-face {
  font-family: "Display I";
  src: url("fonts/display-i.woff2") format("woff2");
  font-weight: 100 900;
  unicode-range: U+0049, U+00CD, U+0301;
}

/* ───────────────────────────────────────────
   Emma Balcar — kusé, tělové, pomalé, měkké
   ─────────────────────────────────────────── */

:root {
  --sand:   #ebe2d4;
  --sand-2: #e4d6c2;
  --blush:  #ecd9cf;
  --cream:  #f2ece2;
  --ink:    #3a2f27;
  --ink-2:  #6f6256;
  --line:   rgba(58, 47, 39, .18);
  --glow:   #ee8d4f;

  /* nadpisy: široké tenké bezpatkové, text: Inter Tight */
  --display: "Display I", "Lexend Zetta", "Helvetica Neue", Arial, sans-serif;
  --sans:  "Inter Tight", system-ui, sans-serif;

  --slow:  cubic-bezier(.22, .61, .2, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--glow); color: var(--cream); }

/* ─── Pozadí ─────────────────────────────── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

/* stejné pozadí jako úvodní fotka (Franta S.) — okraj fotky roztažený přes celou obrazovku */
.bg__gradient {
  position: absolute; inset: -40px;
  background: url("img/lamp-orange-kv.jpg") 0 50% / 6000% 100% no-repeat;
  filter: blur(14px);
}

/* teplé světlo, které pomalu dýchá — aby pozadí bylo jemně měňavé */
.bg__light {
  position: absolute; inset: -20%;
  background: radial-gradient(45% 35% at 50% 62%, rgba(238, 141, 79, .55), transparent 70%);
  mix-blend-mode: soft-light;
  animation: breathe 26s ease-in-out infinite alternate;
}

.bg__grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .23  0 0 0 0 .18  0 0 0 0 .15  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .32;
  animation: grain 1.4s steps(6) infinite;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  100% { transform: translate3d(-4%, 3%, 0) rotate(4deg); }
}
@keyframes breathe {
  0%   { transform: scale(1) translate3d(0, 0, 0); opacity: .24; }
  100% { transform: scale(1.12) translate3d(3%, -2%, 0); opacity: .36; }
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ─── Navigace ───────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(20px, 5vw, 80px);
  padding: 0 var(--gutter);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 400;
  transition: background 1s var(--slow), backdrop-filter 1s var(--slow);
}
.nav.is-scrolled {
  background: rgba(215, 208, 205, .4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav__side { display: flex; gap: clamp(20px, 4vw, 64px); }
.nav__side--left  { justify-content: flex-end; }
.nav__side--right { justify-content: flex-start; }
.nav__name {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 200;
  white-space: nowrap;
}
.nav a { position: relative; padding: 6px 0; }
.nav__side a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 0;
  height: 1px; background: currentColor;
  transition: left .9s var(--slow), right .9s var(--slow);
}
.nav__side a:hover::after,
.nav__side a.is-active::after { left: 0; right: 0; }

/* ─── Hero: rozsvěcení lampy ─────────────── */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 520px;
  overflow: hidden;
}
.hero__halo {
  position: absolute; left: 50%; top: 56%;
  width: 120vmax; height: 120vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(238, 141, 79, .55), rgba(238, 141, 79, .12) 45%, transparent 70%);
  opacity: 0;
  animation: halo 6s 0.8s var(--slow) forwards, halo-breathe 9s 7s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero__lamp {
  position: absolute; inset: 0;
  overflow: hidden;
  /* spodek fotky se rozplyne do pozadí webu */
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  filter: brightness(.38) saturate(.4);
  transform: scale(1.06);
  animation: light-on 5.5s .6s var(--slow) forwards;
}
.hero__lamp img {
  position: relative;
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 58%;
}
/* na šířku: okraje fotky (čistý přechod pozadí) se roztáhnou do stran — žádné okraje */
@media (min-aspect-ratio: 1/1) {
  .hero__lamp::before, .hero__lamp::after {
    content: ""; position: absolute; top: -40px; bottom: -40px; width: 52%;
    background-image: url("img/lamp-orange-kv.jpg");
    background-repeat: no-repeat;
    background-size: 6000% 100%;
    filter: blur(14px);
  }
  .hero__lamp::before { left: -40px;  background-position: 0 50%; }
  .hero__lamp::after  { right: -40px; background-position: 100% 50%; }
  .hero__lamp img {
    z-index: 1;
    object-fit: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent calc(50% - 40vh), #000 calc(50% - 28vh), #000 calc(50% + 28vh), transparent calc(50% + 40vh));
            mask-image: linear-gradient(90deg, transparent calc(50% - 40vh), #000 calc(50% - 28vh), #000 calc(50% + 28vh), transparent calc(50% + 40vh));
  }
}
.hero__glow {
  position: absolute; left: 50%; top: 66%;
  width: max(50vw, 60vh); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 196, 140, .75), rgba(255, 160, 90, .25) 50%, transparent 75%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: glow-on 5.5s .6s var(--slow) forwards, glow-breathe 7s 6.5s ease-in-out infinite alternate;
}
/* najetí myší na lampu: lehoučké, pomalé rozsvícení */
.hero__lamp img { transition: filter 2.4s var(--slow); }
.hero__warm {
  position: absolute; left: 50%; top: 54%; z-index: 2;
  width: min(62vh, 80vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 200, 150, .32), rgba(255, 170, 110, .12) 55%, transparent 80%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 2.4s var(--slow);
}
@media (hover: hover) {
  .hero__warm:hover { opacity: 1; }
  .hero__lamp:has(.hero__warm:hover) img { filter: brightness(1.07) saturate(1.05); }
}
.hero__scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-size: 18px; opacity: 0;
  animation: fade-in 2s 5s forwards, nudge 3s 7s ease-in-out infinite;
}

@keyframes light-on {
  0%   { filter: brightness(.38) saturate(.4); transform: scale(1.06); }
  18%  { filter: brightness(.55) saturate(.6); }
  22%  { filter: brightness(.45) saturate(.5); }   /* malé zablikání */
  30%  { filter: brightness(.7)  saturate(.75); }
  100% { filter: brightness(1)   saturate(1);  transform: scale(1); }
}
@keyframes glow-on   { 0% { opacity: 0; } 18% { opacity: .5; } 22% { opacity: .2; } 100% { opacity: .55; } }
@keyframes glow-breathe { from { opacity: .55; } to { opacity: .3; } }
@keyframes halo      { to { opacity: .55; } }
@keyframes halo-breathe { from { opacity: .55; } to { opacity: .35; } }
@keyframes fade-in   { to { opacity: .6; } }
@keyframes nudge     { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ─── Tři řádky na úvod ─────────────────── */
.intro {
  padding: clamp(100px, 18vh, 200px) var(--gutter);
  text-align: center;
  font-family: var(--display);
  font-weight: 200;
  text-transform: uppercase;
  font-size: clamp(24px, 3.6vw, 48px);
  line-height: 1.15;
}
.intro__link { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: .3em; cursor: pointer; }
.intro__tag { font-family: var(--sans); font-weight: 300; text-transform: none; font-size: max(15px, .4em); letter-spacing: .02em; }
/* text je jen jemně vidět; po najetí myší se pomalu zvýrazní (barva písma jako všude na webu) */
.intro__name, .intro__tag {
  color: var(--ink-2);
  opacity: .32;
  transition: opacity 2.6s var(--slow);
}
@media (hover: hover) {
  .intro__link:hover .intro__name,
  .intro__link:hover .intro__tag { opacity: 1; }
}
/* na dotykových zařízeních není najetí myší — text je tam vidět rovnou */
@media (hover: none) {
  .intro__name, .intro__tag { opacity: 1; }
}
.intro__link:focus-visible { outline: 1px solid currentColor; outline-offset: 10px; }

/* ─── Společné ───────────────────────────── */
.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: clamp(40px, 7vw, 90px);
}
.muted { color: var(--ink-2); font-size: 13px; }

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

/* ─── WORK ───────────────────────────────── */
.work { padding: 40px var(--gutter) clamp(120px, 18vh, 220px); }
.work__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.4vw, 36px);
  row-gap: clamp(60px, 11vw, 160px);
  max-width: 1500px;
  margin: 0 auto;
}
.project {
  position: relative;
  cursor: pointer;
  align-self: start;
}
.project__frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--sand-2);
}
.project__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 2.4s var(--slow), filter 1.6s var(--slow);
}
.project__title {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 20px;
  text-align: center;
  font-family: var(--display);
  font-weight: 200; text-transform: uppercase;
  font-size: clamp(16px, 1.6vw, 24px);
  color: var(--cream);
  background: rgba(58, 47, 39, .18);
  opacity: 0;
  transition: opacity 1.2s var(--slow);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.project__title small {
  display: block; margin-top: 6px;
  font-family: var(--sans); font-style: normal;
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
}
.project:hover .project__frame img,
.project:focus-visible .project__frame img { transform: scale(1.035); }
.project:hover .project__title,
.project:focus-visible .project__title { opacity: 1; }
.project:focus-visible { outline: 1px solid var(--ink); outline-offset: 8px; }
.project__caption { display: none; }

/* ─── ABOUT ──────────────────────────────── */
.about { padding: 40px var(--gutter) clamp(120px, 18vh, 220px); }
.about__inner { max-width: 640px; margin: 0 auto; }
.about__text p + p { margin-top: 1.1em; }
.about__text .lead {
  font-family: var(--display); font-size: clamp(20px, 2.2vw, 30px); text-transform: uppercase;
  line-height: 1.2; font-weight: 200; margin-bottom: .9em;
}
.about__text p:not(.lead):not(.muted) { max-width: 52ch; font-size: 15.5px; }
.about__text .about__en + p { margin-top: 2.2em; }

/* ─── EXHIBITIONS ────────────────────────── */
.exhibitions { padding: 40px var(--gutter) clamp(120px, 18vh, 220px); }
.ex-list { list-style: none; max-width: 1100px; margin: 0 auto; border-top: 1px solid var(--line); }
.ex-list li {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  align-items: baseline;
  transition: padding 1s var(--slow), background 1s var(--slow);
}
.ex-list li:hover { padding-left: 20px; background: rgba(242, 236, 226, .35); }
.ex-title { font-family: var(--display); font-size: 16px; font-weight: 300; text-transform: uppercase; }
.ex-list li span:last-child { color: var(--ink-2); text-align: right; }

/* ─── Kontakt ────────────────────────────── */
.contact {
  padding: clamp(80px, 14vh, 160px) var(--gutter) 40px;
  text-align: center;
}
.contact__big { font-family: var(--display); font-weight: 200; text-transform: uppercase; font-size: clamp(30px, 5.2vw, 76px); line-height: 1; }
.contact__links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 12px clamp(24px, 5vw, 72px);
  margin: 44px 0 80px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
}
.contact__links a, .shop__contact a { border-bottom: 1px solid transparent; transition: border-color .8s var(--slow); }
.contact__links a:hover, .shop__contact a:hover { border-color: currentColor; }
.contact__small { font-size: 11px; color: var(--ink-2); letter-spacing: .06em; }

/* ─── BUY: odfouknutí doleva ─────────────── */
.main {
  transition: transform 1.5s var(--slow), opacity 1.2s var(--slow), filter 1.5s var(--slow);
  will-change: transform;
}
body.shop-open .main {
  transform: translate3d(-38vw, 0, 0) rotate(-1.2deg) scale(.96);
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
}
.shop {
  position: fixed; inset: 0; z-index: 40;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 60px;
  transform: translate3d(100vw, 0, 0);
  opacity: 0;
  visibility: hidden;
  transition: transform 1.5s var(--slow), opacity 1.2s var(--slow), visibility 0s 1.5s;
}
body.shop-open .shop {
  transform: none; opacity: 1; visibility: visible;
  transition: transform 1.5s .15s var(--slow), opacity 1.2s .25s var(--slow), visibility 0s;
}
.shop__inner { max-width: 1240px; margin: 0 auto; }
.shop__back { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 8px 0; opacity: .75; }
.shop__back:hover { opacity: 1; }
.shop__head { text-align: center; margin: 30px auto 70px; max-width: 560px; }
.shop__head h2 { font-family: var(--display); font-weight: 200; text-transform: uppercase; font-size: clamp(34px, 5vw, 64px); line-height: 1; margin-bottom: 18px; }
.shop__head p { color: var(--ink-2); }

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px);
}
.product { display: flex; flex-direction: column; }
.product__img { overflow: hidden; border-radius: 2px; background: var(--sand-2); aspect-ratio: 4/5; }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 2.4s var(--slow); }
.product:hover .product__img img { transform: scale(1.04); }
.product__body { padding-top: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product__name { font-family: var(--display); font-size: 16px; font-weight: 300; text-transform: uppercase; line-height: 1.3; }
.product__desc { color: var(--ink-2); font-size: 13.5px; }
.product__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.product__price { font-size: 13px; letter-spacing: .08em; }
/* hlavní produkt (světlo): velká fotka vlevo, výběr vpravo */
.product--featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 64px); align-items: center;
  margin-bottom: clamp(24px, 4vw, 56px);
}
.product--featured .product__img img { object-position: 70% 80%; }
.product--featured .product__name { font-size: clamp(18px, 1.8vw, 24px); }
.product--featured .product__desc { font-size: 12px; line-height: 1.55; max-width: 46ch; }
.product__choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.choice { display: flex; flex-direction: column; gap: 8px; text-align: left; cursor: pointer; }
.choice__img { display: block; aspect-ratio: 4/5; overflow: hidden; border-radius: 2px; outline: 1px solid transparent; outline-offset: 3px; opacity: .6; transition: opacity .8s var(--slow), outline-color .8s var(--slow); }
.choice__img img { width: 100%; height: 100%; object-fit: cover; }
.choice__label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.choice:hover .choice__img { opacity: .85; }
.choice[aria-pressed="true"] .choice__img { opacity: 1; outline-color: var(--ink); }
.choice[aria-pressed="true"] .choice__label { color: var(--ink); }
@media (max-width: 700px) { .product--featured { grid-template-columns: 1fr; } }
.product select {
  font: inherit; font-size: 12px; color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  transition: background .9s var(--slow), color .9s var(--slow);
}
.btn:hover { background: var(--ink); color: var(--cream); }

.inquiry {
  display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 100px);
  margin-top: clamp(100px, 14vw, 180px);
  padding-top: 60px;
  border-top: 1px solid var(--line);
}
.inquiry h3 { font-family: var(--display); font-weight: 200; text-transform: uppercase; font-size: clamp(24px, 3vw, 40px); line-height: 1.05; margin-bottom: 20px; }
.inquiry__intro p { color: var(--ink-2); max-width: 38ch; }
.inquiry__form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.inquiry__form label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.inquiry__form label.full { grid-column: 1 / -1; }
.inquiry__form .opt { text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.inquiry__form input, .inquiry__form textarea, .inquiry__form select {
  font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: 8px 0; border-radius: 0;
  transition: border-color .8s var(--slow);
}
.inquiry__form textarea { resize: vertical; }
.inquiry__form input:focus, .inquiry__form textarea:focus, .inquiry__form select:focus { outline: none; border-color: var(--ink); }
.inquiry__form .is-invalid { border-color: #b4533a; }
.inquiry__form .btn { grid-column: 1 / -1; justify-self: start; }
.form-status { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); min-height: 1.4em; }

.shop__contact {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 56px;
  margin-top: 120px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
}

/* ─── Detail projektu ────────────────────── */
.detail {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(235, 226, 212, .9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden;
  transition: opacity 1s var(--slow), visibility 0s 1s;
}
.detail.is-open { opacity: 1; visibility: visible; transition: opacity 1s var(--slow), visibility 0s; }
.detail__scroll { height: 100%; overflow-y: auto; padding: 110px var(--gutter) 120px; }
.detail__close {
  position: fixed; top: 20px; right: var(--gutter); z-index: 2;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 8px 0;
}
.detail__head {
  max-width: 640px; margin: 0 auto 80px; text-align: center;
  transform: translateY(24px); opacity: 0;
  transition: transform 1.4s .2s var(--slow), opacity 1.4s .2s var(--slow);
}
.detail.is-open .detail__head { transform: none; opacity: 1; }
.detail__meta { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.detail__head h2 { font-family: var(--display); font-weight: 200; text-transform: uppercase; font-size: clamp(24px, 3.4vw, 46px); line-height: 1.15; margin-bottom: 26px; }
.detail__text { font-size: 15.5px; text-align: left; }
.detail__text p + p { margin-top: 1em; }
.detail__gallery {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 2.4vw, 36px);
}
.detail__gallery figure { overflow: hidden; border-radius: 2px; background: var(--sand-2); }
.detail__gallery img, .detail__gallery video { width: 100%; height: auto; }
.detail__gallery .w-6 { grid-column: span 6; }
.detail__gallery .w-4 { grid-column: span 4; }
.detail__gallery .w-3 { grid-column: span 3; }
.detail__gallery .w-2 { grid-column: span 2; }
.detail__gallery .w-2.off-1 { grid-column: 2 / span 2; }
.detail__gallery .w-3.off-1 { grid-column: 2 / span 3; }
.detail__gallery .w-4.off-1 { grid-column: 2 / span 4; }
/* „crop“: stejně velký výřez — fotka se ořízne na 4:5 a přiblíží detail */
.detail__gallery .crop { aspect-ratio: 4 / 5; }
.detail__gallery .crop img, .detail__gallery .crop video { height: 100%; object-fit: cover; }
.detail__gallery .crop23 { aspect-ratio: 2 / 3; }
.detail__gallery .crop23 img { height: 100%; object-fit: cover; }
.detail__gallery .pos-low img { object-position: center 85%; }
.detail__gallery .pos-ring img { object-position: 60% center; }
/* mezera mezi skupinami fotek (Body 00, Body 01…) — celý řádek, fotky v řadách zůstanou zarovnané */
.detail__gallery .gallery-gap { grid-column: 1 / -1; height: clamp(16px, 3vw, 50px); }
.detail__gallery figure:has(figcaption) { background: none; overflow: visible; }
.detail__gallery figcaption { padding-top: 8px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }

/* ─── Responsivita ───────────────────────── */
@media (max-width: 900px) {
  .products { grid-template-columns: 1fr 1fr; }
  .inquiry { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  :root { --nav-h: 96px; }
  .nav {
    grid-template-columns: auto auto;
    grid-template-areas: "name name" "left right";
    justify-content: center;
    row-gap: 4px; column-gap: 18px;
    padding-top: 10px; padding-bottom: 8px;
    align-content: center;
    font-size: 10px;
    letter-spacing: .16em;
  }
  .nav__name { grid-area: name; justify-self: center; font-size: 13px; }
  .nav__side--left { grid-area: left; }
  .nav__side--right { grid-area: right; }
  .nav__side { gap: 18px; }


  .work__grid { grid-template-columns: 1fr; }
  .work__grid .project { grid-column: 1 / -1 !important; grid-row: auto !important; margin-top: 0 !important; }

  .ex-list li { grid-template-columns: 56px 1fr; }
  .ex-list li span:last-child { grid-column: 2; text-align: left; }
  .ex-title { font-size: 21px; }

  .products { grid-template-columns: 1fr; }
  .inquiry__form { grid-template-columns: 1fr; }

  .detail__gallery { grid-template-columns: 1fr; }
  .detail__gallery figure { grid-column: 1 / -1 !important; }
}

/* názvy prací: s myší se objevují na fotce, na dotykových telefonech (bez myši) jsou pod fotkou */
@media (max-width: 700px) and (hover: none) {
  .project__title { display: none; }
  .project__caption {
    display: flex; justify-content: space-between; gap: 12px;
    padding-top: 12px;
    font-family: var(--display); font-size: 15px; font-weight: 300; text-transform: uppercase; line-height: 1.3;
  }
  .project__caption small { font-family: var(--sans); font-style: normal; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); padding-top: 8px; }
}

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

/* ─── Poděkování po zaplacení ────────────── */
.thanks {
  position: fixed; left: 50%; bottom: 28px; z-index: 60;
  transform: translateX(-50%);
  width: min(440px, calc(100% - 32px));
  padding: 26px 28px 24px;
  background: var(--cream); color: var(--ink);
  border: 1px solid var(--line); border-radius: 2px;
  box-shadow: 0 18px 60px rgba(58, 47, 39, .18);
  text-align: center;
}
.thanks[hidden] { display: none; }
.thanks__title { font-family: var(--display); font-weight: 300; text-transform: uppercase; font-size: 16px; margin-bottom: 10px; }
.thanks p + p { color: var(--ink-2); font-size: 13.5px; margin-bottom: 18px; }

/* ─── Košík ──────────────────────────────── */
.nav__cart { font: inherit; letter-spacing: inherit; text-transform: inherit; padding: 6px 0; display: inline-flex; align-items: center; gap: 6px; }
.nav__cart[hidden] { display: none; }
.nav__cart-count {
  display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--ink); color: var(--cream);
  font-size: 9px; letter-spacing: 0;
}
.cart { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.cart.is-open { pointer-events: auto; }
.cart__backdrop { position: absolute; inset: 0; background: rgba(43, 33, 27, .28); opacity: 0; transition: opacity .7s var(--slow); }
.cart.is-open .cart__backdrop { opacity: 1; }
.cart__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  display: flex; flex-direction: column;
  background: var(--cream); color: var(--ink);
  box-shadow: -18px 0 60px rgba(58, 47, 39, .16);
  transform: translateX(100%); transition: transform .8s var(--slow);
}
.cart.is-open .cart__panel { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: baseline; padding: 26px 28px 18px; border-bottom: 1px solid var(--line); }
.cart__head h2 { font-family: var(--display); font-weight: 300; text-transform: uppercase; font-size: 16px; }
.cart__close { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.cart__close:hover { opacity: 1; }
.cart__list { flex: 1; overflow-y: auto; padding: 8px 28px; }
.cart__empty { padding: 40px 0; color: var(--ink-2); text-align: center; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-item__img { width: 64px; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; }
.cart-item__name { font-family: var(--display); font-weight: 300; text-transform: uppercase; font-size: 11px; line-height: 1.4; }
.cart-item__variant { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.cart-item__qty { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.cart-item__qty button { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 999px; line-height: 1; }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 13px; white-space: nowrap; }
.cart-item__remove {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
  transition: color .4s var(--slow), border-color .4s var(--slow);
}
.cart-item__remove span { font-size: 11px; letter-spacing: 0; }
.cart-item__remove:hover, .cart-item__remove:focus-visible { color: var(--ink); border-color: var(--ink); }
.cart__foot { padding: 20px 28px 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.cart__foot[hidden] { display: none; }
.cart__total { display: flex; justify-content: space-between; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.cart__note { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.cart__pay { width: 100%; }
.cart__pay:disabled { opacity: .5; cursor: wait; }
.cart__more { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.cart__status { font-size: 12px; color: var(--ink-2); min-height: 1em; text-align: center; }

/* ─── Dotazník: prsten na míru ───────────── */
.inquiry__form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.inquiry__form legend { width: 100%; padding: 0; margin-bottom: 10px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.inquiry__form label.radio { flex-direction: row; align-items: center; gap: 10px; font-size: 14px; letter-spacing: 0; text-transform: none; cursor: pointer; }
.inquiry__form label.radio input { width: auto; accent-color: var(--ink); }
.form-hint { align-self: end; font-size: 12px; line-height: 1.5; color: var(--ink-2); }


/* prsten na míru: fotka vlevo, popis a dotazník vpravo – jeden řádek */
.product--wide {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 64px); align-items: start;
  margin-top: clamp(24px, 4vw, 56px);
  padding-top: clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.product--wide .product__body { padding-top: 0; }
.product--wide .product__name { font-size: clamp(18px, 1.8vw, 24px); }
.product--wide .product__desc { font-size: 12px; line-height: 1.55; max-width: 52ch; }
.product--wide .product__row { margin-top: 0; padding-top: 10px; }
.product__form { margin-top: 22px; }
.product__note { font-size: 12px; color: var(--ink-2); margin-bottom: 22px; }
.ring-form { gap: 20px 24px; }
@media (max-width: 700px) { .product--wide { grid-template-columns: 1fr; } }
.inquiry__form fieldset.full { grid-column: 1 / -1; }
/* prsten: celá fotka bez ořezu, aby byla vidět celá ruka */
.product--wide .product__img { aspect-ratio: auto; }
.product--wide .product__img img { height: auto; }

/* výstavy: řádek je odkaz na stránku výstavy u galerie */
.ex-row { display: contents; color: inherit; text-decoration: none; }
.ex-list li:has(.ex-row) { cursor: pointer; }
.ex-arrow { display: inline-block; margin-left: .5em; font-family: var(--sans); font-size: .8em; opacity: .45; transition: opacity .6s var(--slow), transform .6s var(--slow); }
.ex-list li:hover .ex-arrow { opacity: 1; transform: translate(2px, -2px); }
.ex-row:focus-visible .ex-title { outline: 1px solid currentColor; outline-offset: 4px; }
