/* písma (fontsource 5.3.0, len latin + latin-ext) */
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(fonts/instrument-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(fonts/instrument-sans-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Layout: výkresový list – jemná osová mriežka v pozadí, projekty ako listy, metadáta ako rohová pečiatka výkresu */
:root {
  --paper: #f3f4f2;
  --surface: #ffffff;
  --ink: #121413;
  --muted: #646b66;
  --line: #d6d9d5;
  --accent: #46654e;
  --night: #e7e9e5;
  --night-fg: #121413;
  --night-muted: #5f6661;
  --night-line: #cfd3ce;
  --shade: rgba(255, 255, 255, .93);
  color-scheme: light;

  --f-display: "Archivo Variable", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans Variable", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.6rem, 2.6vw, 2.25rem);
  --fs-2xl: clamp(2.4rem, 5.6vw, 4.75rem);
  --fs-3xl: clamp(3rem, 10vw, 9rem);

  --gut: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--fs-md); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.02; text-wrap: balance; }
p { margin: 0; }

/* drawing grid behind everything */
.axes {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
}
.axes > div {
  height: 100%; max-width: 1440px; margin-inline: auto;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%; opacity: .35;
  border-right: 1px solid var(--line);
}
@media (max-width: 700px) { .axes > div { background-size: 50% 100%; } }

.wrap {
  position: relative; max-width: calc(1440px + 2 * var(--gut)); margin-inline: auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); font-weight: 400;
}

/* ---------- draft strip + header ---------- */
.draft {
  position: relative; z-index: 2; background: var(--night); color: var(--night-muted);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}
.draft .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; flex-wrap: wrap; }
.draft b { color: var(--night-fg); font-weight: 500; }

.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: transform .5s var(--ease);
}
.top.away { transform: translateY(-101%); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.brand { display: flex; flex-direction: column; gap: 3px; color: var(--ink); }
.mark { width: 92px; height: auto; display: block; overflow: visible; }
.mark path { fill: none; stroke: currentColor; stroke-width: 30; stroke-linejoin: round; }
.brand small { font-size: 10.5px; letter-spacing: .02em; color: var(--muted); line-height: 1; }
.intro-draw .mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease-io) forwards; }
.intro-draw .mark path:nth-child(2) { animation-delay: .12s; }
.intro-draw .mark path:nth-child(3) { animation-delay: .24s; }
.intro-draw .mark path:nth-child(4) { animation-delay: .36s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.nav { display: flex; gap: clamp(14px, 3vw, 40px); }
.nav a {
  position: relative; font-family: var(--f-display); font-weight: 600; font-stretch: 112%;
  font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  padding-block: 6px; transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: .2em; bottom: 0; height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

main { position: relative; z-index: 1; min-height: 60vh; }

/* ---------- home: intro ---------- */
.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding-block: clamp(40px, 8vw, 110px) clamp(28px, 5vw, 64px); align-items: end; }
.intro-l { grid-column: 1 / span 8; display: grid; gap: 22px; }
.intro-h { font-size: var(--fs-2xl); font-stretch: 118%; letter-spacing: -.025em; font-weight: 700; }
.rot { display: block; height: 1.08em; overflow: hidden; color: var(--muted); font-weight: 300; }
.rot-in { display: block; transition: transform .9s var(--ease-io); }
.rot-in span { display: block; height: 1.08em; }
.intro-r { grid-column: 9 / span 4; display: grid; gap: 18px; max-width: 42ch; }
.intro-r p { color: var(--muted); }
@media (max-width: 860px) { .intro-l, .intro-r { grid-column: 1 / -1; } }

/* feature */
.feature { display: block; }
.feature-media { position: relative; overflow: hidden; aspect-ratio: 16 / 8.2; max-width: 100%; background: var(--line); }
.feature-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: unveil 1.6s var(--ease-io) both;
  transition: transform 1.4s var(--ease);
}
@keyframes unveil { from { clip-path: inset(0 0 14% 0); transform: scale(1.08); } to { clip-path: inset(0 0 0 0); transform: scale(1); } }
.feature:hover .feature-media img { transform: scale(1.04); }
.tag {
  position: absolute; left: 16px; top: 16px; background: var(--paper); color: var(--ink);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px;
}
.feature-cap { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-block: 18px 0; flex-wrap: wrap; }
.feature-cap h2 { font-size: var(--fs-xl); font-stretch: 120%; letter-spacing: -.01em; }
.feature-cap p { color: var(--muted); font-size: var(--fs-sm); }
.go { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.go i { display: inline-block; width: 34px; height: 1px; background: currentColor; position: relative; transition: width .5s var(--ease); }
.go i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }
.next:hover .go i, .link-go:hover i { width: 64px; }

/* hero: prepínanie najnovších projektov */
.hero .feature-media img { animation: none; }
.h-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease-io); }
.h-slide.on { opacity: 1; z-index: 1; }
.h-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear, opacity 1.2s; }
.h-slide.on img { transform: scale(1); }
.h-slide:first-child img { animation: unveil 1.6s var(--ease-io) backwards; }
.hero .tag { z-index: 2; font-variant-numeric: tabular-nums; }
.h-dots { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: flex; gap: 6px; background: var(--paper); padding: 0 12px; }
.h-dots button { border: 0; padding: 10px 0; background: none; cursor: pointer; width: clamp(28px, 4vw, 48px); }
.h-dots i { display: block; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.h-dots i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.h-dots .on i::after { animation: fillbar 6s linear forwards; }
.h-dots .seen i::after { transform: scaleX(1); }
.hero.paused .h-dots .on i::after { animation-play-state: paused; }
@keyframes fillbar { to { transform: scaleX(1); } }
.h-caps { display: grid; margin-bottom: clamp(48px, 7vw, 96px); }
.h-cap { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s; }
.h-cap.on { opacity: 1; visibility: visible; transform: none; }
.h-cap:hover .go i { width: 64px; }

/* work */
.work { padding-block: clamp(56px, 8vw, 110px); }
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.work-head h2 { font-size: var(--fs-2xl); font-stretch: 118%; letter-spacing: -.02em; }
.work-head h2 sup { font-family: var(--f-mono); font-size: var(--fs-sm); font-weight: 400; letter-spacing: 0; color: var(--muted); vertical-align: top; margin-left: 6px; font-variant-numeric: tabular-nums; }
.filters { position: relative; display: flex; flex-wrap: wrap; gap: 4px; }
.filters button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 8px 14px;
  font-size: var(--fs-sm); color: var(--muted); transition: color .35s; border-radius: 999px;
}
.filters button sup { font-family: var(--f-mono); font-size: 10px; margin-left: 3px; font-variant-numeric: tabular-nums; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--paper); }
.pill { position: absolute; z-index: 0; top: 0; left: 0; height: 0; background: var(--ink); border-radius: 999px; transition: transform .55s var(--ease), width .55s var(--ease), height .55s var(--ease); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); padding-top: 36px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card { display: grid; gap: 12px; align-content: start; }
.card.out { display: none; }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; background: var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.card-over {
  position: absolute; inset: auto 0 0 0; padding: 16px; background: var(--shade); color: var(--night-fg);
  transform: translateY(101%); transition: transform .6s var(--ease);
  display: grid; gap: 4px; font-family: var(--f-mono); font-size: 11.5px; line-height: 1.5;
}
.card-over span { color: var(--night-muted); text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; }
.card:hover .card-media img, .card:focus-visible .card-media img { transform: scale(1.07); }
.card:hover .card-over, .card:focus-visible .card-over { transform: translateY(0); }
.card-cap { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 10px; position: relative; }
.card-cap::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.card:hover .card-cap::before { transform: scaleX(1); }
.card-cap h3 { font-size: var(--fs-lg); font-stretch: 115%; letter-spacing: -.005em; transition: letter-spacing .5s var(--ease); }
.card:hover .card-cap h3 { letter-spacing: .04em; }
.card-cap .yr { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.card-cap .ty { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--muted); }

/* night band: studio */
.night { position: relative; z-index: 1; background: var(--night); color: var(--night-fg); }
.night .eyebrow { color: var(--night-muted); }
.studio { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; padding-block: clamp(64px, 9vw, 130px); }
.studio-l { grid-column: 1 / span 6; display: grid; gap: 24px; align-content: start; }
.studio-l h2 { font-size: var(--fs-2xl); font-stretch: 115%; font-weight: 300; letter-spacing: -.02em; }
.studio-l h2 em { font-style: normal; font-weight: 700; }
.studio-l p { color: var(--night-muted); max-width: 52ch; }
.studio-r { grid-column: 8 / span 5; display: grid; gap: 14px; align-content: start; }
@media (max-width: 900px) { .studio-l, .studio-r { grid-column: 1 / -1; } }
.awards { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--night-line); }
.awards li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--night-line); overflow: hidden; }
.awards li::before { content: ""; position: absolute; inset: 0; background: var(--night-fg); opacity: .05; transform: translateX(-101%); transition: transform .6s var(--ease); }
.awards li:hover::before { transform: translateX(0); }
.aw-y { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--night-muted); padding-top: 3px; font-variant-numeric: tabular-nums; }
.aw-n { font-weight: 500; }
.aw-p { grid-column: 2; font-size: var(--fs-sm); color: var(--night-muted); }
.link-go { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; width: fit-content; padding-block: 6px; }
.link-go i { display: inline-block; width: 34px; height: 1px; background: currentColor; position: relative; transition: width .5s var(--ease); }
.link-go i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }

.baarcode { grid-column: 1 / span 6; max-width: 52ch; display: grid; gap: 10px; }
@media (max-width: 900px) { .baarcode { grid-column: 1 / -1; } }
.bars { display: flex; align-items: flex-end; height: 64px; overflow: hidden; }
.bars i { display: block; height: 100%; background: var(--night-fg); transform-origin: bottom; flex: 0 0 auto; }
.baarcode:hover .bars i { animation: wave 1.2s var(--ease-io) both; animation-delay: calc(var(--i) * 14ms); }
@keyframes wave { 40% { transform: scaleY(.25); } 100% { transform: scaleY(1); } }
.baarcode p { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--night-muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- detail ---------- */
.d-head { display: grid; gap: 18px; padding-block: clamp(32px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.back { display: inline-flex; gap: 10px; align-items: center; width: fit-content; font-family: var(--f-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); transition: color .3s, gap .4s var(--ease); }
.back:hover { color: var(--ink); gap: 16px; }
.d-title { font-size: var(--fs-2xl); font-stretch: 118%; letter-spacing: -.02em; line-height: 1.02; overflow-wrap: anywhere; }
.d-title span { display: inline-block; animation: rise .9s var(--ease) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes rise { from { transform: translateY(.35em); opacity: .2; } }
.d-hero { overflow: hidden; }
.d-hero img { width: 100%; aspect-ratio: 16 / 8.2; object-fit: cover; animation: unveil 1.5s var(--ease-io) both; }
.d-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; padding-block: clamp(40px, 6vw, 80px); }
.stamp { grid-column: 1 / span 5; align-self: start; position: sticky; top: 96px; font-size: var(--fs-sm); }
.stamp-row > dt { padding-left: 0; }
.stamp-row { display: grid; grid-template-columns: 108px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.stamp-row:last-child { border-bottom: 0; }
.stamp-row > * { padding: 10px 14px; }
.stamp-row dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); }
.stamp-row dd { margin: 0; min-width: 0; }
.stamp-row.big dd { font-family: var(--f-display); font-stretch: 120%; font-weight: 700; font-size: var(--fs-lg); }
.stamp dl { margin: 0; }
.d-text { grid-column: 7 / span 6; display: grid; gap: 1.1em; max-width: 64ch; font-size: 1.0625rem; }
.d-text p:first-child { font-size: var(--fs-lg); line-height: 1.5; }
.d-note { color: var(--muted); border-left: 2px solid var(--accent); padding-left: 16px; }
@media (max-width: 900px) { .stamp, .d-text { grid-column: 1 / -1; } .stamp { position: static; } }

.phases { display: grid; gap: 22px; padding-bottom: clamp(40px, 6vw, 80px); }
.tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; }
.tl li { position: relative; padding: 22px 18px 0 0; border-top: 1px solid var(--ink); display: grid; gap: 4px; align-content: start; }
.tl li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; background: var(--paper); border: 1px solid var(--ink); }
.tl li.now::before { background: var(--accent); border-color: var(--accent); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 12px transparent; } }
.tl time { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.tl b { font-family: var(--f-display); font-stretch: 120%; font-size: var(--fs-lg); }
.tl small { font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }
.tl .now small::after { content: " · aktuálne"; color: var(--accent); }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); padding-bottom: clamp(56px, 8vw, 110px); }
.g-item { position: relative; overflow: hidden; border: 0; padding: 0; background: var(--line); cursor: zoom-in; display: block; width: 100%; }
.g-item.full { grid-column: 1 / -1; }
.g-item img { width: 100%; aspect-ratio: 1536 / 853; object-fit: cover; transition: transform 1.2s var(--ease); }
.g-item:hover img { transform: scale(1.045); }
.g-item .n { position: absolute; right: 12px; bottom: 12px; background: var(--paper); color: var(--ink); font-family: var(--f-mono); font-size: 11px; padding: 4px 8px; transform: translateY(calc(100% + 14px)); transition: transform .5s var(--ease); font-variant-numeric: tabular-nums; }
.g-item:hover .n, .g-item:focus-visible .n { transform: none; }
@media (max-width: 600px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

.next { display: block; border-top: 1px solid var(--ink); }
.next .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-block: clamp(32px, 5vw, 64px); }
.next-t { display: block; font-family: var(--f-display); font-weight: 700; font-stretch: 125%; font-size: var(--fs-2xl); letter-spacing: -.03em; line-height: 1; transition: transform .7s var(--ease); }
.next:hover .next-t { transform: translateX(14px); }
.next-img { width: clamp(120px, 22vw, 300px); aspect-ratio: 4 / 3; overflow: hidden; clip-path: inset(0 0 0 100%); transition: clip-path .8s var(--ease-io); }
.next-img img { width: 100%; height: 100%; object-fit: cover; }
.next:hover .next-img, .next:focus-visible .next-img { clip-path: inset(0 0 0 0); }
@media (hover: none) { .next-img { clip-path: none; } }

/* ---------- about ---------- */
.page-head { display: grid; gap: 18px; padding-block: clamp(40px, 7vw, 100px) clamp(32px, 5vw, 64px); border-bottom: 1px solid var(--ink); }
.page-head h1 { font-size: var(--fs-2xl); font-stretch: 118%; letter-spacing: -.025em; max-width: 16ch; }
.chapters { padding-block: 8px clamp(48px, 7vw, 96px); }
.chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 24px; padding-block: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.chapter h2 { grid-column: 1 / span 4; font-size: var(--fs-xl); font-stretch: 112%; letter-spacing: -.01em; font-weight: 500; }
.chapter div { grid-column: 6 / span 7; display: grid; gap: 1em; max-width: 64ch; }
@media (max-width: 800px) { .chapter h2, .chapter div { grid-column: 1 / -1; } }
.people { display: flex; flex-wrap: wrap; gap: 8px; }
.people span { border: 1px solid var(--line); padding: 6px 12px; font-size: var(--fs-sm); border-radius: 999px; transition: background .3s, color .3s, border-color .3s; }
.people span:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sec { display: grid; gap: 0; padding-top: clamp(48px, 7vw, 96px); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.sec-head h2 { font-size: var(--fs-2xl); font-stretch: 118%; letter-spacing: -.02em; }
.sec-body { padding-top: 8px; }
.member { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr); gap: 20px clamp(20px, 3vw, 48px); padding-block: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); align-items: start; }
.member:last-child { border-bottom: 0; }
.member-ph { position: relative; overflow: hidden; aspect-ratio: 1; max-width: 100%; background: var(--line); }
.member-ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 1.1s var(--ease); }
.member:hover .member-ph img { transform: scale(1.05); }
.member-ph::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.member:hover .member-ph::after { transform: scaleX(1); }
.member h3 { font-size: var(--fs-xl); font-stretch: 115%; letter-spacing: -.005em; }
.member h3 small { display: block; margin-top: 10px; font-family: var(--f-mono); font-stretch: 100%; font-weight: 400; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); line-height: 1.6; }
.cv { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.cv li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.cv li:hover { padding-left: 8px; }
.cv time { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .member { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } .member .cv { grid-column: 1 / -1; } }
@media (max-width: 560px) { .member { grid-template-columns: minmax(0, 1fr); } .member-ph { max-width: 320px; } }
.sec .awards { border-top: 0; }
.sec .awards li { border-color: var(--line); }
.sec .awards li:last-child { border-bottom: 0; }
.sec .awards li::before { background: var(--ink); }
.sec .aw-y, .sec .aw-p { color: var(--muted); }
.sec .people { padding-top: 20px; }
.chapter .awards { border-color: var(--line); }
.chapter .awards li { border-color: var(--line); }
.chapter .awards li::before { background: var(--ink); }
.chapter .aw-y, .chapter .aw-p { color: var(--muted); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 24px; padding-block: clamp(40px, 6vw, 80px) clamp(64px, 9vw, 120px); }
.c-l { grid-column: 1 / span 6; display: grid; gap: 36px; align-content: start; }
.c-r { grid-column: 8 / span 5; }
@media (max-width: 900px) { .c-l, .c-r { grid-column: 1 / -1; } }
.mail-big { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mail-big span { font-family: var(--f-display); font-stretch: 120%; font-weight: 700; font-size: var(--fs-xl); letter-spacing: -.01em; user-select: all; overflow-wrap: anywhere; }
.copy { border: 0; border-left: 1px solid var(--ink); background: none; padding: 4px 0 4px 14px; cursor: pointer; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.c-block { display: grid; gap: 6px; }
.c-block .eyebrow { margin-bottom: 4px; }
.c-block a { width: fit-content; border-bottom: 1px solid var(--line); transition: border-color .3s; }
.c-block a:hover { border-color: var(--ink); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field { display: grid; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
@media (max-width: 520px) { .field { grid-column: 1 / -1; } }
.field label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 8px 0; border-radius: 0; transition: border-color .3s; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn {
  position: relative; overflow: hidden; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  padding: 14px 26px; cursor: pointer; font-family: var(--f-display); font-weight: 600; font-stretch: 112%;
  font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateY(101%); transition: transform .5s var(--ease); }
.btn span { position: relative; }
.btn:hover::before { transform: none; }
.status { font-size: var(--fs-sm); color: var(--accent); }

/* ---------- footer ---------- */
.foot .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; padding-block: clamp(48px, 6vw, 80px) 28px; }
.foot .mark { width: 150px; color: var(--night-fg); }
.f-brand { grid-column: 1 / span 4; display: grid; gap: 10px; align-content: start; }
.f-brand small { color: var(--night-muted); font-size: var(--fs-sm); }
.f-col { grid-column: span 2; display: grid; gap: 6px; align-content: start; font-size: var(--fs-sm); min-width: 0; }
.f-col .eyebrow { margin-bottom: 6px; }
.f-col a { color: var(--night-fg); width: fit-content; opacity: .85; transition: opacity .3s; overflow-wrap: anywhere; }
.f-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.f-col span { color: var(--night-muted); }
.f-base { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--night-line); padding-top: 20px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--night-muted); text-transform: uppercase; }
@media (max-width: 900px) { .f-brand { grid-column: 1 / -1; } .f-col { grid-column: span 6; } }

/* ---------- curtain, lightbox ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 90; background: var(--night); color: var(--night-fg);
  display: grid; place-items: center; transform: translateY(101%); pointer-events: none;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.curtain-t { font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: var(--fs-2xl); letter-spacing: -.02em; text-align: center; overflow-wrap: anywhere; }
.curtain .eyebrow { color: var(--night-muted); text-align: center; margin-top: 12px; }

.lb { position: fixed; inset: 0; z-index: 80; background: rgba(243, 244, 242, .98); color: var(--ink); display: grid; grid-template-rows: auto 1fr auto; padding: calc(env(safe-area-inset-top, 0px) + 12px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 12px) max(16px, env(safe-area-inset-left, 0px)); }
.lb-bar { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.lb-stage { display: grid; place-items: center; min-height: 0; overflow: hidden; }
.lb-stage img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lb-nav { display: flex; justify-content: center; gap: 12px; }
.lb button { background: none; border: 1px solid var(--ink); color: inherit; cursor: pointer; padding: 10px 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; transition: background .3s, color .3s; }
.lb button:hover { background: var(--ink); color: var(--paper); }

/* scroll reveal: always visible, only eases into place */
.rv { transition: transform 1s var(--ease), opacity 1s var(--ease); }
.rv.pre { transform: translateY(32px); opacity: .4; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv.pre { transform: none; opacity: 1; }
  .intro-draw .mark path { stroke-dashoffset: 0; }
}

/* ---------- doplnky pre ostrý web ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; font-size: var(--fs-sm); }
.skip:focus { top: 12px; }
.curtain { visibility: hidden; }
.curtain.on { visibility: visible; }
.prose { display: grid; gap: 1em; max-width: 64ch; padding-block: clamp(32px, 5vw, 64px) clamp(64px, 9vw, 120px); }
.prose a, .d-text a, .chapter a { border-bottom: 1px solid var(--line); }
.status.err { color: #a3352b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .6; cursor: progress; }
.nf { display: grid; gap: 24px; padding-block: clamp(64px, 10vw, 160px); }
.nf h1 { font-size: var(--fs-3xl); font-stretch: 125%; letter-spacing: -.035em; }
.mail-big .mail-t { font-family: var(--f-display); font-stretch: 120%; font-weight: 700; font-size: var(--fs-xl); letter-spacing: -.01em; overflow-wrap: anywhere; }
.f-base a:hover { color: var(--night-fg); }
@media (max-width: 560px) {
  .top .wrap { gap: 12px; }
  .mark { width: 76px; }
  .nav { gap: 14px; }
  .nav a { letter-spacing: .1em; font-size: 11px; }
}
@media (max-width: 900px) { .member .cv-wrap { grid-column: 1 / -1; } }
.cv-wrap { min-width: 0; }
/* opona po načítaní novej stránky (značku nastaví skript v <head>) */
.cur .curtain { visibility: visible; transform: none; }
.d-text.no-lead p:first-child { font-size: inherit; line-height: inherit; }
