:root {
  --bg: #ECE5DA;
  --paper: #F6F2EB;
  --ink: #1A1714;
  --ink-2: #4F473F;
  --muted: #675E54;
  --line: rgba(26, 23, 20, 0.18);
  --line-strong: rgba(26, 23, 20, 0.28);
  --accent: #8A5A3B;
  --accent-light: #C99A72;
  --on-dark: #ECE5DA;
  --on-dark-2: #D4CBBE;
  --on-dark-3: #B3A898;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Inter Display', 'Inter', system-ui, sans-serif;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --gutter: 40px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 16px; }

.wrap { max-width: 1360px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 400; }
.h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.03em; }
.pill { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid rgba(26,23,20,0.25); border-radius: 999px; font-size: 13px; }
.pill--solid { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; text-decoration: none; transition: background .3s ease, transform .3s var(--ease-out); }
.btn:hover { color: var(--paper); background: #2E2925; }
.btn svg { transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translate(2px, -2px); }

/* ---------- header ---------- */
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; position: relative; z-index: 20; }
.logo { font-family: var(--serif); font-size: 26px; font-weight: 500; text-decoration: none; letter-spacing: -0.02em; }
.nav { display: flex; gap: 36px; font-size: 15px; }
.nav a { text-decoration: none; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav small { color: var(--muted); font-size: 12px; }
.header__cta { display: flex; align-items: center; gap: 14px; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--paper); font-size: 13px; box-shadow: 0 1px 0 rgba(26,23,20,0.06); }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #3F8F4E; box-shadow: 0 0 0 4px rgba(63,143,78,0.15); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(63,143,78,0.05); } }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease-out); }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 15; background: var(--ink); color: var(--on-dark); padding: 120px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-io); visibility: hidden; }
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .header { color: var(--on-dark); }
.menu-open .menu-btn { border-color: rgba(236,229,218,0.4); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-family: var(--serif); font-size: clamp(44px, 12vw, 72px); line-height: 1.15; text-decoration: none; color: var(--on-dark); }
.mobile-menu nav a:hover { color: var(--accent-light); }
.mobile-menu p { margin: 0; color: var(--on-dark-3); font-size: 14px; }
.mobile-menu p a { color: var(--on-dark); }

/* ---------- hero ---------- */
.hero { padding-top: 24px; }
.hero__name { font-family: var(--display); margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 0.25em; line-height: 0.86; font-weight: 900; letter-spacing: -0.045em; font-size: clamp(64px, 12.2vw, 176px); text-transform: uppercase; overflow: hidden; padding-bottom: 0.04em; }
.outline-text, .hero__name .outline, .marquee .outline { color: var(--bg); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.rise { display: inline-block; animation: rise 1.1s var(--ease-out) both; }
.rise.d2 { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }
.fade-in { animation: fadeUp 1.2s .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 32px; margin-top: 8px; }
.hero__intro { padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.hero__hello { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -0.02em; }
.hero__lead { margin: 0; font-size: 18px; line-height: 1.55; max-width: 340px; }
.arrow-link { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; min-height: 44px; transition: gap .3s ease; }
.arrow-link:hover { gap: 18px; }
.hero__photo { display: flex; justify-content: center; }
.hero__photo img { width: 100%; max-width: 560px; aspect-ratio: 1280 / 1229; object-fit: cover; }
.hero__focus { padding-bottom: 56px; }
.now__head { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.now { list-style: none; margin: 14px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.now li { border-top: 1px solid var(--line); }
.now__item { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 64px 1fr auto; column-gap: 14px; row-gap: 2px; align-items: center; padding: 12px 0; position: relative; }
.now__item::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.now__item:hover::before, .now__item:focus-visible::before { transform: scaleX(1); }
.now__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.now__thumb { grid-column: 1; grid-row: 1 / span 2; width: 64px; height: 45px; object-fit: cover; border-radius: 6px; border: 1px solid rgba(26,23,20,0.12); transition: transform .5s var(--ease-out); }
.now__item:hover .now__thumb { transform: scale(1.06) rotate(-2deg); }
.now__title { grid-column: 2; align-self: end; font-size: 16px; font-weight: 500; transition: transform .45s var(--ease-out); }
.now__what { grid-column: 2; align-self: start; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted); transition: transform .45s var(--ease-out), color .3s ease; }
.now__arrow { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-size: 18px; opacity: 0; transform: translateX(-10px); transition: opacity .3s ease, transform .45s var(--ease-out); }
.now__item:hover .now__title, .now__item:hover .now__what { transform: translateX(6px); }
.now__item:hover .now__what { color: var(--ink-2); }
.now__item:hover .now__arrow, .now__item:focus-visible .now__arrow { opacity: 1; transform: none; }
#brno-time { font-variant-numeric: tabular-nums; }
.hero__place { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 28px 0; }
.marquee__track { font-family: var(--display); display: flex; width: max-content; animation: marquee 40s linear infinite; font-weight: 800; text-transform: uppercase; letter-spacing: -0.035em; line-height: 1; font-size: clamp(40px, 6vw, 88px); white-space: nowrap; }
.marquee__group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- work ---------- */
.work { padding-top: 120px; padding-bottom: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.section-head p { margin: 0; max-width: 360px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 56px 32px; }
.card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 18px; text-align: left; }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 10px; }
.card__media { display: block; position: relative; overflow: hidden; border-radius: 10px; background: var(--paper); border: 1px solid rgba(26,23,20,0.12); box-shadow: 0 24px 48px -28px rgba(26,23,20,0.4); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.card:hover .card__media { transform: translateY(-6px); box-shadow: 0 36px 60px -30px rgba(26,23,20,0.5); }
.card__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(26,23,20,0.1); }
.card__bar i { width: 9px; height: 9px; border-radius: 50%; background: #D3C9BB; }
.card__bar span { flex: 1; text-align: center; font-size: 12px; color: var(--muted); padding-right: 39px; }
.card__img { display: block; overflow: hidden; }
.card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .8s var(--ease-out); }
.card:hover .card__img img { transform: scale(1.035); }
.card__open { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 500; opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .45s var(--ease-out); }
.card:hover .card__open, .card:focus-visible .card__open { opacity: 1; transform: none; }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card__title { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.card__year { font-size: 13px; color: var(--muted); }
.card__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.card__credit { margin-top: -6px; font-size: 13px; color: var(--muted); }

/* ---------- services ---------- */
.services { padding: 120px 0 100px; }
.services .section-head { margin-bottom: 40px; }
.svc-list { max-width: 1360px; margin: 0 auto; padding: 0 16px; }
.svc { position: relative; isolation: isolate; border-top: 1px solid var(--line-strong); transition: color .45s ease; }
.svc:last-child { border-bottom: 1px solid var(--line-strong); }
.svc::before { content: ""; position: absolute; inset: 0; background: var(--ink); border-radius: 6px; transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-io); z-index: -1; }
.svc:hover::before, .svc.is-open::before { transform: scaleY(1); }
.svc:hover, .svc.is-open { color: var(--on-dark); }
.svc__btn { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 24px; padding: 28px 24px; }
.svc__btn:focus-visible { outline: 2px solid var(--accent-light); outline-offset: -6px; border-radius: 6px; }
.svc__n { width: 40px; flex: none; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--accent); transition: color .45s ease; }
.svc__t { font-family: var(--display); flex: 1 1 auto; min-width: 0; font-weight: 800; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.95; font-size: clamp(36px, 6.4vw, 104px); color: var(--bg); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; transition: transform .7s var(--ease-out), color .45s ease, -webkit-text-stroke-color .45s ease; }
.svc:hover .svc__t, .svc.is-open .svc__t { color: var(--on-dark); -webkit-text-stroke-color: var(--on-dark); -webkit-text-stroke-width: 0; transform: translateX(28px); }
.svc__meta { font-size: 13px; color: var(--muted); transition: color .45s ease; white-space: nowrap; }
.svc:hover .svc__meta, .svc.is-open .svc__meta { color: var(--on-dark-3); }
.svc:hover .svc__n, .svc.is-open .svc__n { color: var(--accent-light); }
.svc__icon { width: 56px; height: 56px; flex: none; border-radius: 50%; border: 1px solid currentColor; display: inline-flex; align-items: center; justify-content: center; transition: transform .5s var(--ease-out), background .3s ease, color .3s ease; }
.svc:hover .svc__icon { background: var(--on-dark); color: var(--ink); }
.svc.is-open .svc__icon { transform: rotate(45deg); }
.svc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-io); }
.svc.is-open .svc__panel { grid-template-rows: 1fr; }
.svc__inner { overflow: hidden; min-height: 0; }
.svc__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; align-items: center; padding: 8px 24px 56px 88px; opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .6s var(--ease-out); }
.svc.is-open .svc__body { opacity: 1; transform: none; transition-delay: .2s; }
.svc__text { display: flex; flex-direction: column; gap: 22px; }
.svc__text p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--on-dark-2); max-width: 460px; }
.svc__tags { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--on-dark); }
.svc__tags span { padding: 7px 13px; border: 1px solid rgba(236,229,218,0.3); border-radius: 999px; }
.svc__link { all: unset; cursor: pointer; color: var(--accent-light); font-size: 15px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.svc__link:hover { color: var(--on-dark); }
.svc__link--soon, .svc__link--soon:hover { cursor: default; color: var(--on-dark-3); }
.svc__link:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 4px; border-radius: 4px; }
.svc__body img { width: 100%; max-width: 560px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); transform: rotate(-5deg) translateY(40px) scale(.96); opacity: 0; transition: transform .9s var(--ease-out), opacity .6s ease; }
.svc.is-open .svc__body img { transform: rotate(-1.5deg); opacity: 1; transition-delay: .28s; }

/* ---------- about ---------- */
.about { background: var(--ink); color: var(--on-dark); }
.about__grid { padding-top: 120px; padding-bottom: 120px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.about__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.about__photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.about__photos img:first-child { object-position: center 70%; }
.about__photos img:last-child { object-position: 30% center; margin-top: 72px; }
.about__text { display: flex; flex-direction: column; gap: 28px; }
.about__text .eyebrow { color: var(--on-dark-3); }
.about__text h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.05; letter-spacing: -0.02em; }
.stats { display: flex; gap: 48px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 1; }
.stat b em { font-size: 24px; }
.stat span { font-size: 13px; color: var(--on-dark-3); letter-spacing: 0.04em; }
.about__text p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--on-dark-2); max-width: 520px; }
.about__text p.strong { color: var(--on-dark); }
.about__text p.personal { margin-top: 8px; padding-top: 24px; border-top: 1px solid rgba(236,229,218,0.18); font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.5; color: var(--on-dark); }

/* ---------- contact ---------- */
.contact { padding-top: 140px; padding-bottom: 56px; }
.contact h2 { margin: 24px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 9vw, 140px); line-height: 0.95; letter-spacing: -0.035em; }
.contact__links { margin-top: 48px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.contact__mail { padding: 18px 28px; font-size: 17px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 18px 24px; border-radius: 999px; border: 1px solid rgba(26,23,20,0.3); font-size: 15px; text-decoration: none; transition: background .3s ease, color .3s ease, border-color .3s ease; }
.chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.footer { margin-top: 120px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer a { color: var(--muted); }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform 1s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- project dialog ---------- */
.dialog { width: min(1100px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 16px; background: var(--bg); color: var(--ink); box-shadow: 0 40px 120px -20px rgba(0,0,0,0.5); overflow: hidden; }
.dialog::backdrop { background: rgba(26,23,20,0.6); backdrop-filter: blur(4px); }
.dialog[open] { animation: dlgIn .55s var(--ease-out); }
.dialog[open]::backdrop { animation: fade .4s ease; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
.dialog__scroll { max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.dialog__close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .4s var(--ease-out); }
.dialog__close:hover { transform: rotate(90deg); }
.dialog__head { padding: 56px 96px 0 48px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; }
.dialog__head h2 { margin: 8px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.dialog__desc { margin: 24px 0 0; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.dialog__facts { margin: 0; padding-top: 64px; display: grid; gap: 0; }
.dialog__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.dialog__facts div:last-child { border-bottom: 1px solid var(--line); }
.dialog__facts dt { color: var(--muted); }
.dialog__facts dd { margin: 0; text-align: right; }
.dialog__link { margin-top: 20px; }
.dialog__gallery { padding: 40px 48px 56px; display: grid; gap: 64px; }
.dialog__gallery img { width: 100%; border-radius: 10px; border: 1px solid rgba(26,23,20,0.1); }
.psec { display: grid; gap: 24px; }
.psec__title { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.02em; }
.psec__note { margin: -8px 0 0; font-size: 13px; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.feature { background: var(--paper); border-radius: 12px; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.feature__n { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 16px; }
.feature h4 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.feature p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.pgallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.pgallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pgallery--stack { grid-template-columns: 1fr; gap: 20px; }
.pgallery figure.wide { grid-column: 1 / -1; }
.pgallery img { width: 100%; height: auto; }
.pgallery img { background: var(--paper); }
.pgallery figcaption { font-size: 14px; color: var(--muted); line-height: 1.5; }
.ptable { overflow-x: auto; border-radius: 12px; background: var(--paper); }
.ptable table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.ptable th, .ptable td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.ptable tr:last-child th, .ptable tr:last-child td { border-bottom: 0; }
.ptable thead th { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.ptable tbody th { font-weight: 600; white-space: nowrap; width: 1%; }
.ptable td.old { color: var(--muted); width: 30%; }
.ptable td.new { color: var(--ink); }
.ptable td.new::before { content: "→ "; color: var(--accent); }
.compare { position: relative; overflow: hidden; border-radius: 10px; border: 1px solid rgba(26,23,20,0.12); aspect-ratio: 1440 / 723; background: var(--paper); user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; border: 0; border-radius: 0; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; }
.compare__handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 18px; letter-spacing: 2px; box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.compare__label { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(26,23,20,0.82); color: var(--paper); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; pointer-events: none; }
.compare__label--l { left: 14px; }
.compare__label--r { right: 14px; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.compare:has(.compare__range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .status { display: none; }
}
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .nav, .header__cta .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .hero__name { font-size: 22vw; }
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .hero__photo { order: -1; }
  .hero__intro, .hero__focus { padding-bottom: 0; }
  .hero__focus { padding-bottom: 56px; }
  .marquee { padding: 20px 0; }
  .work { padding-top: 88px; }
  .services { padding: 88px 0 72px; }
  .svc-list { padding: 0 8px; }
  .svc__btn { gap: 14px; padding: 22px 12px; }
  .svc__n { width: 28px; font-size: 16px; }
  .svc__meta { display: none; }
  .svc__t, .marquee .outline { -webkit-text-stroke-width: 2px; }
  .hero__name .outline { -webkit-text-stroke-width: 3px; }
  .svc__icon { width: 44px; height: 44px; }
  .svc:hover .svc__t, .svc.is-open .svc__t { transform: translateX(6px); }
  .svc__body { padding: 0 12px 40px; gap: 28px; }
  .svc__text p { font-size: 17px; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; padding-top: 88px; padding-bottom: 88px; }
  .about__photos img:last-child { margin-top: 40px; }
  .stat b { font-size: 44px; }
  .contact { padding-top: 100px; }
  .footer { margin-top: 80px; }
  .dialog { width: 100%; max-height: 100dvh; height: 100dvh; max-width: 100%; border-radius: 0; }
  .dialog__scroll { max-height: 100dvh; }
  .dialog__head { grid-template-columns: 1fr; gap: 0; padding: 24px 76px 0 20px; }
  .dialog__desc, .dialog__facts { margin-right: -56px; }
  .dialog__facts { padding-top: 32px; }
  .dialog__gallery { padding: 32px 20px 40px; gap: 48px; }
  .pgallery { grid-template-columns: 1fr; }
  .ptable { background: transparent; overflow: visible; }
  .ptable table { min-width: 0; display: block; }
  .ptable thead { display: none; }
  .ptable tbody { display: grid; gap: 10px; }
  .ptable tr { display: grid; gap: 6px; background: var(--paper); border-radius: 12px; padding: 16px; }
  .ptable th, .ptable td { padding: 0; border: 0; width: auto !important; }
  .ptable tbody th { font-size: 16px; }
  .ptable td.old::before { content: "Dříve: "; color: var(--muted); font-weight: 500; }
  .ptable td.new::before { content: "Nově: "; font-weight: 600; }
}
@media (hover: none) {
  .card__open { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
