/* ── Almé · functional prototype · styles.css ─────────────────────────
   Cinematic Warm Cream palette · responsive (mobile-first)
   Tokens, reset, layout, components.
   ────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Palette · P1 Warm Cream (light) */
  --bg:        #F5F1EA;
  --surface:   #EDE7DA;
  --surface-2: #E5DFD0;
  --ink:       #1A1A1A;
  --ink-2:     #4A4A45;
  --ink-3:     #6A655B;
  --accent:    #2D3A2E;
  --accent-warm: #8B7355;
  --line:      rgba(26, 26, 26, 0.18);
  --line-soft: rgba(26, 26, 26, 0.10);
  --overlay:   rgba(245, 241, 234, 0.88);
  --overlay-mid: rgba(245, 241, 234, 0.30);
  --overlay-soft: rgba(245, 241, 234, 0.40);
  --photo-filter: saturate(.92) contrast(.98);

  /* Type */
  --f-serif:  'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --f-sans:   'Inter', -apple-system, system-ui, sans-serif;
  --f-mono:   'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Spacing scale */
  --pad-x: clamp(20px, 5vw, 56px);
  --pad-y: clamp(40px, 8vw, 100px);

  color-scheme: light;
}

/* ── Dark theme · Deep Moss ──────────────────────────────────────
   Applied either by:
   1. Manual override: <html data-theme="dark">
   2. Auto: when system prefers dark AND no manual override set
   ────────────────────────────────────────────────────────────── */
:root[data-theme="dark"] {
  --bg:        #1B2620;
  --surface:   #243029;
  --surface-2: #2D3A2E;
  --ink:       #F0EBE0;
  --ink-2:     #C9C4B8;
  --ink-3:     #8E8A80;
  --accent:    #C9A77A;
  --accent-warm: #C9A77A;
  --line:      rgba(240, 235, 224, 0.18);
  --line-soft: rgba(240, 235, 224, 0.10);
  --overlay:   rgba(27, 38, 32, 0.88);
  --overlay-mid: rgba(27, 38, 32, 0.30);
  --overlay-soft: rgba(27, 38, 32, 0.45);
  --photo-filter: saturate(.85) contrast(.98) brightness(.88);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #1B2620;
    --surface:   #243029;
    --surface-2: #2D3A2E;
    --ink:       #F0EBE0;
    --ink-2:     #C9C4B8;
    --ink-3:     #8E8A80;
    --accent:    #C9A77A;
    --accent-warm: #C9A77A;
    --line:      rgba(240, 235, 224, 0.18);
    --line-soft: rgba(240, 235, 224, 0.10);
    --overlay:   rgba(27, 38, 32, 0.88);
    --overlay-mid: rgba(27, 38, 32, 0.30);
    --overlay-soft: rgba(27, 38, 32, 0.45);
    --photo-filter: saturate(.85) contrast(.98) brightness(.88);
    color-scheme: dark;
  }
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* iOS Safari: prevent text-size bump on orientation change */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Print color reproduction */
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Accessibility · skip link */
.skip-link {
  position: absolute; top: -40px; left: 0; padding: 8px 14px;
  background: var(--ink); color: var(--bg); z-index: 999;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.skip-link:focus { top: 0; }
/* Safari 15.3- supports :focus but not :focus-visible reliably — provide both */
:focus { outline: 2px solid transparent; outline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Remove tap highlight on iOS Safari */
* { -webkit-tap-highlight-color: transparent; }
/* Better form control accent (Safari 15.4+) */
@supports (accent-color: red) {
  input[type="checkbox"], input[type="radio"], input[type="range"] { accent-color: var(--accent); }
}

/* ── Typography helpers ─────────────────────────────────────────── */
.serif-italic {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.mono-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mono-meta-accent { color: var(--accent); }
.lead {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.35;
  color: var(--ink);
}

/* ── Layout primitives ──────────────────────────────────────────── */
.page-stack { display: flex; flex-direction: column; min-height: 100vh; }
.container  { padding-inline: var(--pad-x); }
.container-narrow {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: var(--pad-y); }
.divider { width: 100%; height: 1px; background: var(--line); }
.divider-strong { background: var(--ink); }

/* ── Wordmark ───────────────────────────────────────────────────── */
.wordmark {
  font-family: var(--f-serif);
  font-weight: 400;
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  color: var(--ink);
  line-height: 1;
}

/* ── Nav ────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--overlay);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  /* Fallback for browsers without backdrop-filter: solid bg */
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s ease;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-nav { background: var(--bg); }
}
.site-nav-transparent {
  background: transparent;
  border-bottom-color: transparent;
}
.site-nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad-x);
  gap: 24px;
}
.site-nav .wordmark { font-size: clamp(18px, 2vw, 22px); }
.site-nav-links {
  display: flex; gap: clamp(20px, 3vw, 32px);
  font-family: var(--f-sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.site-nav-links a {
  position: relative;
  opacity: 0.85;
  padding-bottom: 4px;
  transition: opacity .2s, color .2s;
}
.site-nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.site-nav-links a:hover { opacity: 1; color: var(--accent); }
.site-nav-links a:hover::after { transform: scaleX(1); }
.site-nav-links a.active { opacity: 1; color: var(--accent); }
.site-nav-links a.active::after {
  transform: scaleX(1);
  background: var(--accent);
}
.site-nav-lang {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.18em; opacity: 0.6;
}

.nav-toggle {
  display: none;
  background: transparent; border: none; padding: 8px;
  flex-direction: column; gap: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform .3s, opacity .3s;
}

@media (max-width: 880px) {
  .site-nav-links, .site-nav-lang { display: none; }
  .nav-toggle { display: flex; }
  .site-nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 64px 0 0 0;
    background: var(--bg);
    padding: 48px var(--pad-x);
    font-size: 22px; font-family: var(--f-serif); font-style: italic; text-transform: none;
    letter-spacing: 0.04em; line-height: 1.4; gap: 24px;
    border-top: 1px solid var(--line);
  }
}

/* ── Hero · ken-burns crossfade ─────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(560px, 80vh, 820px);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--ink);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  animation: kenburns 24s cubic-bezier(.4,0,.2,1) infinite;
  filter: var(--photo-filter);
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--overlay) 0%, var(--overlay-mid) 30%, var(--overlay-soft) 60%, var(--overlay) 100%);
}
@keyframes kenburns {
  0%   { transform: scale(1.05) translate(0,0); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: scale(1.18) translate(-2%, -1%); opacity: 0; }
}
.hero-inner {
  position: relative; z-index: 2;
  padding: clamp(60px, 12vw, 140px) var(--pad-x) clamp(40px, 8vw, 80px);
  display: grid; gap: 32px;
}
@media (min-width: 880px) {
  .hero-inner { grid-template-columns: 1fr auto; align-items: flex-end; gap: 48px; }
}
.hero-claim {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(56px, 11vw, 144px);
  line-height: 0.94;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 24px 0 0 0;
}
.hero-claim em { color: var(--accent); font-style: italic; }
.hero-sub { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.7; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.6; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  font-family: var(--f-sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid currentColor; background: transparent;
  color: var(--ink); transition: all .2s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-icon {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid currentColor;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-family: var(--f-serif);
}

/* ── Marquee ────────────────────────────────────────────────────── */
.marquee {
  padding-block: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden; white-space: nowrap;
}
.marquee-track {
  display: inline-flex; gap: 64px;
  animation: marquee 40s linear infinite;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 24px;
  font-family: var(--f-serif); font-style: italic; font-weight: 300;
  font-size: clamp(22px, 3vw, 36px); color: var(--ink);
}
.marquee-num {
  color: var(--accent);
  font-family: var(--f-mono); font-size: 16px;
  font-style: normal; letter-spacing: 0.18em;
}
.marquee-dot { color: var(--accent); opacity: 0.5; font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Section heading ────────────────────────────────────────────── */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 5vw, 48px);
}
.section-title {
  font-family: var(--f-serif); font-style: italic; font-weight: 300;
  font-size: clamp(36px, 6vw, 64px); line-height: 1.0; margin: 0;
}
.section-eyebrow { margin-bottom: 12px; }
.section-link { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 14px; }
.section-link-line { display: inline-block; width: 48px; height: 1px; background: currentColor; }

/* ── Project strips (featured) ──────────────────────────────────── */
.project-strip {
  position: relative; overflow: hidden;
  min-height: clamp(360px, 50vw, 540px);
  margin-bottom: 4px;
}
.project-strip img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: var(--photo-filter);
  animation: kenburns 22s ease-in-out infinite alternate;
}
.project-strip-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--overlay) 0%, var(--overlay-soft) 35%, transparent 70%);
}
.project-strip-right .project-strip-veil { background: linear-gradient(270deg, var(--overlay) 0%, var(--overlay-soft) 35%, transparent 70%); }
.project-strip-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; align-items: center;
  padding: 40px var(--pad-x);
}
.project-strip-right .project-strip-content { justify-content: flex-end; text-align: right; }
.project-strip-inner { max-width: 520px; }
.project-strip h3 {
  font-family: var(--f-serif); font-style: italic; font-weight: 300;
  font-size: clamp(34px, 5vw, 60px); line-height: 1.0; margin: 20px 0 24px;
}

/* ── Project grid (Práce) ───────────────────────────────────────── */
.project-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .project-grid { grid-template-columns: 1fr 1fr; row-gap: 60px; } }
.project-card { display: flex; flex-direction: column; gap: 16px; }
.project-card-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.project-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; filter: var(--photo-filter); }
.project-card:hover .project-card-photo img { transform: scale(1.04); }
.project-card-meta { display: flex; justify-content: space-between; align-items: baseline; }
.project-card-title {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 3vw, 28px); line-height: 1.1; margin: 0;
}

/* ── Project detail · gallery ───────────────────────────────────── */
.detail-meta-grid {
  display: grid; gap: 24px; padding-block: 40px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 720px) { .detail-meta-grid { grid-template-columns: repeat(4, 1fr); } }
.detail-meta-item span { display: block; }
.detail-meta-item .label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.detail-meta-item .value { font-family: var(--f-serif); font-style: italic; font-size: 22px; margin-top: 8px; }

.gallery-grid { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .gallery-grid { grid-template-columns: 2fr 1fr; } .gallery-stack { display: grid; gap: 8px; grid-template-rows: 1fr 1fr; } }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 11; }

/* ── Services ───────────────────────────────────────────────────── */
.services-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 24px; border: 1px solid var(--line);
  min-height: 360px;
}
.service-card.featured { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.service-card.featured .label, .service-card.featured .label-accent { color: var(--bg); opacity: 0.8; }
.service-card h3 { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 28px; line-height: 1.1; margin: 0; }
.service-card .price { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.service-card .desc { font-size: 14px; line-height: 1.6; color: var(--ink-3); flex: 1; }
.service-card.featured .desc { color: rgba(245,241,234,.85); }
.service-card .output { padding-top: 12px; border-top: 1px solid var(--line); }
.service-card.featured .output { border-top-color: rgba(245,241,234,.3); }

/* ── Forms ──────────────────────────────────────────────────────── */
.form-stack { display: flex; flex-direction: column; gap: 24px; max-width: 540px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); }
.form-field input, .form-field textarea {
  font-family: var(--f-sans); font-size: 16px; color: var(--ink);
  background: transparent;
  border: none; border-bottom: 1px solid var(--ink);
  padding: 8px 0; outline: none;
  transition: border-color .2s;
  width: 100%;
}
.form-field input:focus, .form-field textarea:focus { border-bottom-color: var(--accent); }
.form-field textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
.form-field-error input, .form-field-error textarea { border-bottom-color: #b04a2f; }
.form-field-error-msg { color: #b04a2f; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; }

.form-row { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.form-consent input { width: 14px; height: 14px; margin-top: 3px; accent-color: var(--accent); }

.form-success {
  padding: 22px 24px; background: var(--accent); color: var(--bg);
  display: none;
  font-family: var(--f-serif); font-style: italic; font-size: 22px; line-height: 1.4;
}
.form-success.show { display: block; }

/* ── Map ────────────────────────────────────────────────────────── */
.map-wrap {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--surface); border: 1px solid var(--line);
  overflow: hidden;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.02); }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { margin-top: auto; padding: clamp(40px, 6vw, 60px) var(--pad-x) 28px; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  align-items: flex-start;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; } }
.site-footer .wordmark { font-size: clamp(40px, 6vw, 56px); }
.footer-col h4 { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.55;
}

/* ── Generic reveal animation (intersection observer) ───────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Quote band ─────────────────────────────────────────────────── */
.quote-band {
  padding: clamp(80px, 14vw, 140px) var(--pad-x);
  background: var(--surface);
  text-align: center;
  position: relative; overflow: hidden;
}
.quote-band .quote {
  font-family: var(--f-serif); font-style: italic; font-weight: 300;
  font-size: clamp(36px, 6vw, 76px); line-height: 1.25;
  max-width: 1100px; margin: 0 auto;
}
.quote-attribution { margin-top: 28px; }

/* ── Index list (Práce list view) ───────────────────────────────── */
.index-list { display: flex; flex-direction: column; }
.index-item {
  display: grid; gap: 16px; padding: 24px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr auto;
  align-items: center;
}
.index-item h3 { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(22px, 3vw, 30px); margin: 0; line-height: 1.1; }
.index-item:hover { background: var(--surface); padding-inline: 12px; }

/* ── Theme toggle ────────────────────────────────────────────────
   Sun/moon icon button · cycles light/dark explicitly
   Shift+click resets to auto (follow system).
   ────────────────────────────────────────────────────────────── */
.theme-toggle {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  color: var(--ink); cursor: pointer; padding: 0;
  transition: background .2s, border-color .2s;
  flex: none;
}
.theme-toggle:hover { background: var(--surface); border-color: var(--ink); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
/* When dark theme is active (explicit) — show sun (click to go light) */
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
/* When auto + system dark · same as explicit dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun  { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
/* Tiny "auto" badge when in auto mode */
.theme-toggle[data-mode="auto"]::after {
  content: 'A';
  position: absolute; transform: translate(10px, -10px);
  font-family: var(--f-mono); font-size: 7px; letter-spacing: .1em;
  background: var(--accent); color: var(--bg);
  width: 12px; height: 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.theme-toggle { position: relative; }

@media (max-width: 880px) {
  .theme-toggle { margin-left: auto; }
}

@media print {
  .site-nav, .site-footer, .hero-cta-row, form, .sticky-cta, .theme-toggle { display: none !important; }
  .hero { min-height: auto; }
  body { background: white; color: black; }
  a { text-decoration: underline; }
  .hero-claim { font-size: 32pt !important; }
}

/* ── Reduced motion ─────────────────────────────────────────────
   Respect user's OS preference for reduced motion (a11y).
   Disables ken-burns, marquee, reveal animations.
   ────────────────────────────────────────────────────────────── */
@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;
  }
  .hero-photo { opacity: 1 !important; }   /* show first photo without crossfade */
  .hero-photo:not(:first-child) { opacity: 0 !important; }
  .marquee-track { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── Loading state on buttons ───────────────────────────────────
   .btn[data-loading] · spinner + label change
   ────────────────────────────────────────────────────────────── */
.btn[data-loading="true"] {
  pointer-events: none; opacity: 0.7;
}
.btn[data-loading="true"] .btn-icon {
  border-color: transparent;
  border-top-color: currentColor; border-left-color: currentColor;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Sticky bottom CTA ──────────────────────────────────────────
   Floating bar that appears after scroll, hides near footer.
   ────────────────────────────────────────────────────────────── */
.sticky-cta {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%) translateY(120%);
  z-index: 40;
  background: var(--ink); color: var(--bg);
  padding: 12px 14px 12px 20px; gap: 14px;
  display: inline-flex; align-items: center;
  font-family: var(--f-sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .3s;
  max-width: calc(100vw - 32px);
}
.sticky-cta.visible { transform: translateX(-50%) translateY(0); }
.sticky-cta:hover { background: var(--accent); }
.sticky-cta .btn-icon { border-color: currentColor; }
@media (max-width: 600px) {
  .sticky-cta { font-size: 10px; padding: 10px 12px 10px 16px; bottom: 12px; }
}

/* ── Lightbox ───────────────────────────────────────────────────
   Click any img inside [data-lightbox] gallery to open full-screen.
   ────────────────────────────────────────────────────────────── */
[data-lightbox] img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; transition: opacity .25s;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; box-shadow: 0 12px 60px rgba(0,0,0,.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed; background: transparent; border: 1px solid rgba(255,255,255,.3);
  color: #fff; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1; font-family: var(--f-mono);
  transition: background .2s, border-color .2s;
}
.lightbox-close { top: 20px; right: 20px; width: 40px; height: 40px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.lightbox-caption {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.85); font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.lightbox-counter {
  position: fixed; top: 28px; left: 28px;
  color: rgba(255,255,255,.7); font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
}

/* ── Newsletter form ────────────────────────────────────────────
   Compact subscribe field used in footer + Žurnál
   ────────────────────────────────────────────────────────────── */
.newsletter {
  display: flex; gap: 0;
  border: 1px solid var(--line);
  max-width: 360px;
}
.newsletter input {
  flex: 1; padding: 12px 14px;
  background: transparent; border: none; outline: none;
  font-family: var(--f-sans); font-size: 13px; color: var(--ink);
  min-width: 0;
}
.newsletter input::placeholder { color: var(--ink-3); opacity: 0.7; }
.newsletter button {
  background: var(--ink); color: var(--bg); border: none;
  padding: 0 18px; font-family: var(--f-sans); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  cursor: pointer; flex: none;
}
.newsletter button:hover { background: var(--accent); }
.newsletter-note { font-family: var(--f-mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3);
  margin-top: 10px; opacity: 0.75; }

/* ── Testimonials ───────────────────────────────────────────────
   Discreet quote cards · 2-col grid
   ────────────────────────────────────────────────────────────── */
.testimonials {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .testimonials { grid-template-columns: 1fr 1fr; gap: 48px; } }
.testimonial {
  padding: 32px 0; border-top: 1px solid var(--line);
}
.testimonial-quote {
  font-family: var(--f-serif); font-style: italic; font-weight: 300;
  font-size: clamp(20px, 2.6vw, 26px); line-height: 1.45;
  color: var(--ink); margin: 0;
}
.testimonial-attr {
  margin-top: 18px;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
}

/* ── FAQ accordion ──────────────────────────────────────────────
   Native <details> for zero-JS accessibility
   ────────────────────────────────────────────────────────────── */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  padding: 24px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: clamp(20px, 2.6vw, 26px); line-height: 1.3;
  color: var(--ink);
  /* Safari requires explicit "summary" reset */
  display: list-item;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ""; }
.faq-item summary::after {
  content: '+';
  font-family: var(--f-sans); font-size: 20px; font-weight: 300; color: var(--accent);
  transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer {
  padding: 0 0 24px;
  font-size: 16px; line-height: 1.7; color: var(--ink-3); max-width: 760px;
}

/* ── View Transitions API (Chromium · graceful degradation) ────
   Apply via JS: document.startViewTransition(() => loadNewPage())
   ────────────────────────────────────────────────────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.4s;
  animation-timing-function: cubic-bezier(.16,1,.3,1);
}
::view-transition-old(hero-img),
::view-transition-new(hero-img) {
  animation: none;
  mix-blend-mode: normal;
}
.hero-photo { view-transition-name: none; }
.hero-photo:first-child { view-transition-name: hero-photo-current; }

/* ── In-page anchors ────────────────────────────────────────────
   Account for sticky nav height when jumping to anchors
   ────────────────────────────────────────────────────────────── */
:target { scroll-margin-top: 96px; }

