/* 01 Foundations */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
button, a, summary { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 6px; }
[hidden] { display: none !important; }
.container { width: min(var(--content-max), calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; z-index: 100; top: -120px; left: 16px; padding: 12px 20px; background: var(--color-paper); color: var(--color-ink); }
.skip:focus { top: 12px; }
.eyebrow { margin: 0; text-transform: uppercase; font-size: 10px; font-weight: 550; letter-spacing: .19em; }
.muted { color: var(--color-muted); }
.arrow { display: inline-block; font-size: 20px; line-height: 1; font-weight: 400; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 32px; padding: 15px 24px; border: 1px solid var(--color-accent); border-radius: var(--radius-small); background: var(--color-accent); color: #22291f; font-size: 13px; font-weight: 600; transition: background var(--motion-fast), transform var(--motion-fast); }
.button:hover { background: #ebd3ac; transform: translateY(-2px); }
.text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 48px; font-size: 13px; }
.text-link:hover { color: var(--color-accent); }

/* 02 Navigation — native details remains usable without JS */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--color-line); background: #171b17f5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.wordmark { display: inline-flex; align-items: start; white-space: nowrap; font-size: 19px; font-weight: 650; letter-spacing: -.035em; }
.wordmark sup { font-size: 8px; margin: 4px 0 0 3px; }
.desktop-nav { display: flex; gap: 24px; align-items: center; }
.desktop-nav a { font-size: 12px; color: var(--color-muted); padding-block: 14px; }
.desktop-nav a[aria-current] { color: var(--color-text); }
.desktop-nav a:hover { color: var(--color-accent); }
.header-book { min-height: 44px; padding: 10px 18px; font-size: 12px; gap: 22px; }
.mobile-menu { display: none; }

/* 03 Hero */
.hero { padding-top: 63px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 60px; }
.hero-copy { padding-bottom: 24px; }
.location { display: flex; align-items: center; gap: 12px; color: var(--color-muted); }
.location::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }
h1 { margin: 35px 0 27px; font-weight: 500; font-size: clamp(55px, 6.05vw, 88px); line-height: .99; letter-spacing: -.069em; }
h1 span { display: block; white-space: nowrap; }
h1 .gold { color: var(--color-accent); }
.hero-description { font-size: 16px; line-height: 1.75; color: var(--color-muted); margin: 0; max-width: 360px; }
.hero-actions { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; margin-top: 31px; }
.hero-art { position: relative; padding: 0 0 40px 44px; min-width: 0; }
.hero-main { margin: 0; position: relative; }
.hero-main img { width: 100%; height: 530px; object-fit: cover; object-position: 45% 42%; border-radius: 120px 14px 14px 14px; }
.hero-main figcaption { position: absolute; bottom: 22px; left: 24px; right: 20px; color: white; font-size: 9px; letter-spacing: .17em; text-shadow: 0 1px 10px #000; }
.hero-main::after { content: ''; position: absolute; border-radius: inherit; inset: 60% 0 0; background: linear-gradient(transparent,#0008); border-radius: 0 0 14px 14px; pointer-events: none; }
.hero-main figcaption { z-index: 1; left: auto; text-align: right; }
.icon-arrow { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.hero-detail { position: absolute; left: -10px; bottom: 0; margin: 0; width: 175px; padding: 8px; border-radius: 13px; background: var(--color-bg); }
.hero-detail img { width: 100%; height: 195px; object-fit: cover; border-radius: 7px; }
.detail-label { position: absolute; bottom: 3px; left: 190px; color: var(--color-muted); font-size: 10px; letter-spacing: .08em; }
.official-charity { margin-top: 25px; min-height: 40px; max-width: 370px; }
.kazdarezervaciapomaha { display: inline-block; font-size: 12px; color: var(--color-muted); text-decoration: underline; text-underline-offset: 4px; }
.hero-foot { display: flex; justify-content: space-between; gap: 24px; padding: 34px 0 28px; margin-top: 32px; border-bottom: 1px solid var(--color-line); font-size: 9px; color: var(--color-muted); letter-spacing: .16em; text-transform: uppercase; }
.hero-foot a { color: var(--color-accent); }

/* 04 Work / accessible gallery */
.work { padding: 92px 0 88px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 32px; }
.section-heading h2 { font-size: clamp(35px,4vw,56px); font-weight: 450; letter-spacing: -.055em; line-height: 1.08; margin: 16px 0 0; }
.section-heading .eyebrow { color: var(--color-accent); }
.gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.work-shot { margin: 0; min-width: 0; }
.work-shot a { display: block; overflow: hidden; border-radius: 12px; background: var(--color-surface); }
.work-shot img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform 550ms ease; }
.work-shot a:hover img { transform: scale(1.035); }
.work-shot figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 17px; font-size: 11px; color: var(--color-muted); }
.work-shot figcaption span:last-child { color: var(--color-accent); }
.gallery-more { margin-top: 30px; }
.gallery-more > summary { list-style: none; width: fit-content; cursor: pointer; padding: 12px 0; min-height: 48px; font-size: 13px; border-bottom: 1px solid var(--color-line); }
.gallery-more > summary::-webkit-details-marker { display: none; }
.gallery-more > summary span { margin-left: 30px; }
.gallery-more[open] > summary { margin-bottom: 26px; }
.gallery-more[open] > summary span { display: inline-block; transform: rotate(45deg); }
.gallery-more .gallery { row-gap: 30px; }
.image-dialog { border: 1px solid var(--color-line); background: var(--color-bg); color: var(--color-text); padding: 16px; border-radius: 14px; max-width: min(94vw,820px); max-height: 94dvh; overflow: auto; }
.image-dialog::backdrop { background: #080c08e8; }
.dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 12px; margin-bottom: 12px; }
.dialog-close { width: 44px; height: 44px; border: 1px solid var(--color-line); border-radius: 50%; background: var(--color-surface); color: var(--color-text); font-size: 22px; }
.image-dialog img { max-height: 75dvh; width: auto; margin: auto; object-fit: contain; }

/* 05 Brand story — restrained bridge to future brand */
.story { background: var(--color-paper); color: var(--color-ink); padding: 82px 0; }
.story-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; }
.story .eyebrow { color: #716143; }
.story-marker { margin-top: 24px; width: 60px; height: 1px; background: #b5a27e; }
.story h2 { font-size: clamp(36px,4.3vw,62px); line-height: 1.1; letter-spacing: -.055em; font-weight: 450; margin: 0 0 27px; max-width: 720px; }
.story p:not(.eyebrow) { max-width: 520px; color: #5b6256; font-size: 15px; }
.story .text-link { border-bottom: 1px solid #bdb8aa; margin-top: 12px; }
.story .text-link:hover { color: #6d5432; }
.story :focus-visible { outline-color: #725531; }

/* 06 Contact / footer */
.contact-strip { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 65px 0; }
.contact-strip h2 { margin: 0 0 9px; font-size: 35px; line-height: 1.15; font-weight: 450; letter-spacing: -.04em; }
.contact-strip p { color: var(--color-muted); margin: 0; font-size: 14px; }
.site-footer { border-top: 1px solid var(--color-line); padding: 34px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 35px; }
.site-footer .wordmark { font-size: 16px; }
.site-footer p, .site-footer a:not(.wordmark) { font-size: 12px; line-height: 1.9; color: var(--color-muted); }
.site-footer .footer-label { color: var(--color-accent); margin-top: 0; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--color-line); margin-top: 30px; padding-top: 20px; font-size: 10px; color: var(--color-muted); }
.mobile-book { display: none; }

/* 07 Responsive */
@media (min-width: 1500px) { h1 { font-size: 92px; } }
@media (max-width: 1150px) {
  .container { width: calc(100% - 64px); }
  .desktop-nav { gap: 15px; }
  .hero-grid { gap: 26px; }
  .hero-art { padding-left: 24px; }
  .hero-main img { height: 480px; }
  .hero-detail { left: 0; width: 145px; }
  .hero-detail img { height: 170px; }
  .detail-label { left: 160px; font-size: 9px; }
  .hero-actions { gap: 14px; }
  .hero-actions .button { gap: 18px; padding-inline: 18px; }
}
@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .header-inner { min-height: 72px; gap: 16px; }
  .header-book { margin-left: auto; }
  .mobile-menu { display: block; }
  .mobile-menu > summary { list-style: none; width: 44px; height: 44px; border: 1px solid var(--color-line); border-radius: var(--radius-small); display: grid; place-content: center; gap: 5px; cursor: pointer; }
  .mobile-menu > summary::-webkit-details-marker { display: none; }
  .menu-line { height: 1px; width: 18px; background: var(--color-text); transition: transform var(--motion-fast); }
  .mobile-menu[open] .menu-line:first-child { transform: translateY(3px) rotate(45deg); }
  .mobile-menu[open] .menu-line:last-child { transform: translateY(-3px) rotate(-45deg); }
  .mobile-menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--color-bg); border-bottom: 1px solid var(--color-line); padding: 20px 32px 28px; box-shadow: 0 20px 30px #0004; max-height: calc(100dvh - 72px); overflow: auto; }
  .mobile-menu nav a { display: flex; justify-content: space-between; padding: 13px 0; min-height: 48px; border-bottom: 1px solid var(--color-line); color: var(--color-muted); font-size: 17px; }
  .mobile-menu nav a[aria-current] { color: var(--color-accent); }
  .hero { padding-top: 45px; }
  .hero-grid { gap: 24px; }
  h1 { font-size: clamp(44px,6vw,60px); }
  .hero-main img { height: 420px; }
  .hero-art { padding-bottom: 35px; }
  .hero-detail { width: 126px; }
  .hero-detail img { height: 150px; }
  .detail-label { left: 140px; letter-spacing: 0; }
  .hero-description { font-size: 14px; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { font-size: 12px; }
  .hero-actions .text-link { font-size: 12px; }
  .story-grid { gap: 40px; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 66px; gap: 10px; }
  .wordmark { font-size: 16px; }
  .header-book { padding: 10px 13px; font-size: 11px; gap: 9px; }
  .header-book .arrow { font-size: 17px; }
  .mobile-menu nav { padding-inline: 24px; max-height: calc(100dvh - 66px); }
  .hero { padding-top: 36px; }
  .hero-grid { display: flex; flex-direction: column; gap: 30px; align-items: stretch; }
  .hero-copy { padding-bottom: 0; }
  .location { font-size: 9px; letter-spacing: .16em; }
  h1 { margin: 26px 0 21px; font-size: clamp(48px,12.9vw,78px); letter-spacing: -.065em; line-height: 1.02; }
  .hero-description { font-size: 14px; max-width: 340px; }
  .hero-actions { margin-top: 24px; gap: 18px; }
  .hero-actions .button { padding: 14px 18px; font-size: 12px; min-height: 50px; gap: 18px; }
  .hero-actions .text-link { font-size: 12px; gap: 10px; }
  .official-charity { margin-top: 17px; min-height: 34px; }
  .hero-art { padding: 0 0 30px 22px; margin-top: 0; }
  .hero-main img { height: 390px; object-position: 45% 40%; border-top-left-radius: 80px; }
  .hero-detail { width: 125px; left: 0; bottom: 0; padding: 6px; }
  .hero-detail img { height: 145px; }
  .hero-main figcaption { bottom: 18px; left: 120px; font-size: 7px; letter-spacing: .12em; }
  .detail-label { left: 140px; bottom: 2px; font-size: 8px; }
  .hero-foot { margin-top: 23px; padding: 20px 0; font-size: 8px; letter-spacing: .11em; }
  .hero-foot span:nth-child(2) { display: none; }
  .work { padding: 54px 0; }
  .section-heading { display: block; margin-bottom: 25px; }
  .section-heading h2 { font-size: 36px; margin-top: 13px; }
  .section-heading .text-link { margin-top: 14px; }
  .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 12px; }
  .gallery-featured .work-shot:first-child { grid-column: 1/-1; }
  .gallery-featured .work-shot:first-child img { aspect-ratio: 1.1; object-position: 50% 40%; }
  .work-shot figcaption { font-size: 10px; padding-top: 10px; }
  .work-shot a { border-radius: 8px; }
  .gallery-more { margin-top: 24px; }
  .story { padding: 52px 0; }
  .story-grid { grid-template-columns: 1fr; gap: 30px; }
  .story-marker { display: none; }
  .story h2 { font-size: 39px; }
  .story p:not(.eyebrow) { font-size: 14px; }
  .contact-strip { display: block; padding: 45px 0; }
  .contact-strip h2 { font-size: 30px; }
  .contact-strip .button { margin-top: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px 20px; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
  .footer-bottom { display: block; line-height: 2; }
  .footer-bottom > span { display: block; }
  .site-footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .mobile-book { display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); background: #171b17f5; border-top: 1px solid var(--color-line); }
  .mobile-book .button { width: 100%; min-height: 48px; }
  .mobile-book.is-suppressed { display: none; }
}
@media (max-width: 370px) {
  .header-inner { gap: 8px; }
  .wordmark { font-size: 14px; }
  .header-book { padding-inline: 10px; }
  .hero-actions { gap: 12px; }
}
/* Content stays visible if JS fails. Motion only enhances the page. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: enter .65s ease both; }
  .hero-art { animation: enter .8s .08s ease both; }
  @keyframes enter { from { opacity: .65; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
