/* Shared editorial rhythm and reference-inspired parallax. */
:root {
  --olive: #74764b;
  --muted: #72766c;
  --head: 120px;
  --foot: 64px;
}
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
header {
  padding: 30px 3.2vw;
}
.nav {
  gap: 17px;
}
.nav a {
  font-size: 15px;
  color: #8b8e83;
  transition: color 0.3s;
}
.nav a:not(:last-child):after {
  margin-left: 17px;
  color: #c7c9be;
}
.nav a:hover {
  color: #333c25;
}
.nav a[aria-current="true"] {
  color: var(--olive);
}
.brand {
  width: 175px;
}
.brand strong {
  font-weight: 600;
  letter-spacing: -1.9px;
}
.brand small {
  letter-spacing: 4.3px;
}
.panel {
  padding-top: 25px;
  padding-bottom: 35px;
  scroll-padding: 24px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  line-height: 1.7;
  color: #74796b;
}
.rule {
  width: 160px;
  height: 6px;
}
h2 {
  letter-spacing: -0.055em;
}
.body-copy {
  color: #565e51;
}
.text-link {
  min-height: 44px;
}
.text-link:hover {
  color: #3e482d;
}
.text-link:hover span {
  transform: translateX(5px);
}
button,
a,
summary {
  outline-offset: 5px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #92965f;
}
summary {
  min-height: 32px;
}
summary:hover {
  color: var(--olive);
}
[data-depth] {
  transform: translate3d(var(--depth-x, 0px), 0, 0);
  will-change: transform;
}
.cinematic-copy[data-depth] {
  transform: translate3d(var(--depth-x, 0px), -50%, 0);
}
.hero-landscape[data-depth] {
  width: 112%;
  max-width: none;
  left: -6%;
  object-position: 60% center;
}
.hero-stage {
  background: #26312d;
}
.cinematic-copy .eyebrow {
  color: #e0e2d3;
}
.cinematic-copy h1 {
  font-weight: 400;
}
.cinematic-copy p {
  color: #ecece1;
}
.hero-bottom {
  color: #eeeedf;
}
.hero-bottom span:last-child {
  font-size: 9px;
}
.profile-copy h2 {
  margin: 24px 0 25px;
}
.profile-lead {
  line-height: 1.42;
}
.profile-copy .body-copy {
  line-height: 1.53;
  font-size: clamp(17px, 1.45vw, 23px);
  color: #454c40;
}
.profile-side {
  padding-top: 8px;
}
.profile-visual {
  height: 37vh;
  max-height: 445px;
}
.profile-stats {
  border-top: 1px solid #dedfd5;
  padding-top: 21px;
  gap: 65px;
  margin-top: 25px;
}
.profile-stats strong {
  font-size: clamp(48px, 4.8vw, 75px);
  line-height: 1.05;
}
.profile-stats span {
  color: #68705f;
  font-size: 12px;
}
.profile-next {
  margin-top: 20px;
}
.credits-layout {
  align-items: start;
}
.credits-intro {
  position: sticky;
  top: 0;
}
.credit-row {
  padding: 15px 0;
  transition: background 0.25s;
}
.credit-row h3 {
  font-size: 22px;
  letter-spacing: -0.45px;
}
.credit-row p {
  font-size: 12px;
  line-height: 1.5;
  color: #697061;
}
.credit-note {
  color: #697061;
  font-size: 12px;
}
.credit-year {
  font-variant-numeric: tabular-nums;
}
.section-top p {
  color: #6b7264;
}
.work figure {
  height: calc(100dvh - 385px);
  min-height: 270px;
}
.work-caption {
  padding: 16px 0 0;
  gap: 10px;
}
.work-caption small {
  color: #68705e;
}
.play {
  width: 50px;
  height: 50px;
  border-color: #ffffffad;
}
.work:focus-visible figure {
  outline: 3px solid var(--olive);
  outline-offset: -3px;
}
.gallery-controls button {
  width: 44px;
  height: 44px;
}
.gallery-controls small {
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  color: #626d56;
}
.disciplines details p {
  color: #656e5c;
}
.tool-caption {
  color: #6b725f;
  line-height: 2;
}
.process-line {
  padding-top: 24px;
  padding-bottom: 10px;
}
.process-line p {
  color: #68705f;
}
.agency-list {
  font-size: clamp(18px, 1.55vw, 25px);
  line-height: 1.85;
}
.contact-row a:hover {
  color: var(--olive);
}
.contact-row small,
.contact-company {
  color: #6c7560;
}
.contact-image {
  object-position: center 40%;
}
.contact-grid h2 {
  letter-spacing: -0.06em;
}
.socials a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}
.socials a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.carousel-footer {
  height: var(--foot);
  border-top: 1px solid #e7e9df;
}
.carousel-controls {
  gap: 11px;
}
.carousel-controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  transition:
    background 0.25s,
    color 0.25s;
}
.carousel-controls button:hover:not(:disabled) {
  background: #f0f1e9;
  color: var(--olive);
}
.position {
  font-variant-numeric: tabular-nums;
  letter-spacing: 1.2px;
  color: #5c674e;
  margin-right: 5px;
}
.page-dots {
  gap: 4px;
}
.page-dots button {
  width: 30px;
  height: 44px;
}
.page-dots button:after {
  top: 20px;
  left: 13px;
  width: 4px;
  height: 4px;
  background: #b5baa9;
}
.page-dots button:hover:after {
  background: var(--olive);
  transform: scale(1.6);
}
.swipe-hint {
  color: #677257;
}
.video-title {
  min-height: 41px;
  line-height: 1.6;
}
.close {
  min-height: 44px;
  min-width: 44px;
}
@media (min-width: 1700px) {
  header {
    padding-left: max(3.2vw, calc((100vw - 1600px) / 2));
    padding-right: max(3.2vw, calc((100vw - 1600px) / 2));
  }
  .nav a {
    font-size: 17px;
  }
  .nav a:not(:last-child):after {
    margin-left: 25px;
  }
  .nav {
    gap: 25px;
  }
}
@media (max-width: 1150px) {
  .nav {
    gap: 11px;
  }
  .nav a {
    font-size: 13px;
  }
  .nav a:not(:last-child):after {
    margin-left: 11px;
  }
  .brand {
    width: 155px;
  }
  .credits-layout {
    gap: 5vw;
  }
  .contact-row a {
    font-size: 17px;
  }
}
@media (max-width: 900px) {
  :root {
    --head: 92px;
    --foot: 62px;
  }
  header {
    padding: 23px 5vw;
  }
  .brand strong {
    font-size: 29px;
  }
  .nav {
    gap: 15px;
    padding-top: 20px;
  }
  .nav a {
    font-size: 24px;
    min-height: 40px;
    display: flex;
    align-items: center;
  }
  .nav a:not(:last-child):after {
    display: none;
  }
  .menu {
    min-width: 68px;
    min-height: 44px;
  }
  .nav.open {
    box-shadow: 0 18px 22px #2430160c;
  }
  .panel {
    padding: 20px 5vw 30px;
  }
  .carousel-footer {
    padding: 0 4vw;
  }
  .page-dots {
    gap: 0;
  }
  .page-dots button {
    width: 24px;
  }
  .page-dots button:after {
    left: 10px;
  }
  .carousel-controls {
    gap: 2px;
  }
  .position {
    margin-right: 2px;
  }
  .carousel-controls button {
    width: 38px;
    height: 44px;
  }
  .swipe-hint {
    letter-spacing: 0;
  }
  .cinematic-copy .eyebrow {
    font-size: 9px;
  }
}
@media (max-width: 760px) {
  .cinematic-copy[data-depth] {
    transform: translate3d(var(--depth-x, 0px), 0, 0);
  }
  .hero-landscape[data-depth] {
    object-position: 66% center;
  }
  .cinematic-copy {
    bottom: 78px;
  }
  .cinematic-copy .eyebrow {
    font-size: 8px;
  }
  .hero-bottom span:last-child {
    font-size: 7px;
  }
  .credits-intro {
    position: static;
  }
  .profile-layout {
    gap: 25px;
  }
  .profile-copy h2 {
    font-size: clamp(48px, 14vw, 66px);
  }
  .profile-copy .body-copy {
    font-size: 17px;
    line-height: 1.6;
  }
  .profile-visual {
    height: 290px;
  }
  .profile-stats {
    gap: 50px;
  }
  .profile-stats strong {
    font-size: 55px;
  }
  .section-top h2,
  .credits-intro h2,
  .section-intro h2,
  .collab-top h2,
  .contact-grid h2 {
    font-size: clamp(43px, 12.5vw, 59px);
  }
  .section-top p {
    font-size: 14px;
  }
  .work figure {
    height: 440px;
    min-height: 0;
  }
  .work-caption {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
  }
  .work-caption small {
    font-size: 8px;
    line-height: 1.5;
  }
  .credit-row h3 {
    font-size: 21px;
  }
  .credit-row p {
    font-size: 11px;
  }
  .contact-row a {
    font-size: clamp(18px, 5.7vw, 23px);
  }
  .contact-image {
    height: 320px;
    min-height: 0;
  }
  .brand-list {
    font-size: clamp(25px, 7.7vw, 32px);
  }
  .agency-list {
    font-size: 18px;
  }
  .body-copy {
    line-height: 1.6;
  }
  .tool-caption {
    font-size: 10px;
  }
  .process-line h3 {
    font-size: 15px;
  }
  .process-line p {
    font-size: 12px;
  }
  .swipe-hint {
    font-size: 0;
  }
  .swipe-hint span {
    font-size: 18px;
  }
  .page-dots button {
    width: 22px;
  }
  .page-dots button:after {
    left: 9px;
  }
  .carousel-controls button {
    width: 34px;
  }
  .position {
    font-size: 8px;
    min-width: 34px;
  }
  .carousel-footer {
    gap: 4px;
  }
}
@media (max-width: 360px) {
  .page-dots button {
    width: 19px;
  }
  .page-dots button:after {
    left: 8px;
  }
  .position {
    display: none;
  }
  .cinematic-copy p {
    font-size: 13px;
  }
  .cinematic-copy h1 {
    font-size: 51px;
  }
  .cinematic-copy .eyebrow {
    font-size: 7px;
  }
  .hero-bottom {
    gap: 10px;
  }
  .hero-bottom span:first-child {
    font-size: 7px;
  }
}
@media (max-height: 760px) and (min-width: 901px) {
  .profile-copy h2 {
    font-size: 54px;
    margin: 16px 0;
  }
  .profile-lead {
    font-size: 20px;
    margin-bottom: 18px;
  }
  .profile-copy .body-copy {
    font-size: 17px;
    line-height: 1.47;
  }
  .profile-copy .body-copy p + p {
    margin-top: 17px;
  }
  .profile-next {
    margin-top: 15px;
  }
  .profile-stats {
    padding-top: 17px;
    margin-top: 18px;
  }
  .profile-stats strong {
    font-size: 52px;
  }
  .contact-grid h2 {
    font-size: 54px;
    margin: 25px 0 20px;
  }
  .contact-row {
    padding: 12px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-depth] {
    --depth-x: 0px !important;
  }
  #obsah.moving [data-depth] {
    will-change: auto;
  }
}
@media (min-width: 761px) {
  #tvorba {
    display: flex;
    flex-direction: column;
  }
  .section-top {
    flex-shrink: 0;
  }
  #tvorba .work-grid {
    flex: 1;
    min-height: 200px;
    align-items: stretch;
  }
  #tvorba .work {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  #tvorba .work figure {
    height: auto;
    min-height: 180px;
    max-height: none;
    flex: 1;
    width: 100%;
  }
  #tvorba .work figure img {
    position: absolute;
    inset: 0;
  }
  #tvorba .work-caption {
    width: 100%;
    min-height: 40px;
    flex-shrink: 0;
  }
  #tvorba .gallery-controls {
    flex-shrink: 0;
    margin-top: 12px;
  }
}
/* A visibly separate background plane; cursor movement is additive to slide parallax. */
.hero-landscape[data-depth] {
  height: 108%;
  top: -4%;
  transform: translate3d(
    calc(var(--depth-x, 0px) + var(--camera-x, 0px)),
    var(--camera-y, 0px),
    0
  );
}
.cinematic-copy[data-depth] {
  transform: translate3d(
    calc(var(--depth-x, 0px) - var(--camera-x, 0px) * 0.3),
    calc(-50% - var(--camera-y, 0px) * 0.3),
    0
  );
}
@media (max-width: 760px) {
  .cinematic-copy[data-depth] {
    transform: translate3d(var(--depth-x, 0px), 0, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stage {
    --camera-x: 0px !important;
    --camera-y: 0px !important;
  }
}

/* JS owns horizontal settling; prevent native anchoring from correcting parallax frames. */
#obsah,
.panel {
  overflow-anchor: none;
}
.panel {
  scrollbar-gutter: stable;
}

/* Inline filmography: independently readable beside the fixed introduction. */
#film .credits-intro h2 {
  font-weight: 600;
  letter-spacing: -0.055em;
}
#film .credits-layout {
  height: 100%;
  min-height: 0;
  align-items: start;
}
#film .credit-list {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 20px;
  scrollbar-width: thin;
  scrollbar-color: #74764b #eeeee8;
  touch-action: pan-y pinch-zoom;
}
#film .credit-list:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 4px;
}
#film .credit-row h3 {
  font-weight: 500;
}
@media (max-width: 760px) {
  #film .credits-layout {
    grid-template-rows: auto minmax(160px, 1fr);
    gap: 22px;
  }
  #film .credits-intro h2 {
    font-size: 42px;
    margin: 18px 0;
  }
  #film .credits-intro .body-copy {
    font-size: 16px;
  }
  #film .credit-note {
    display: none;
  }
  #film .credit-list {
    padding-right: 12px;
  }
  #film .credit-row {
    padding: 14px 0;
  }
}
/* Slightly stronger typography throughout, retaining the editorial hierarchy. */
body {
  font-weight: 500;
}
h1,
h2,
.cinematic-copy h1,
.credit-row h3,
.work-caption strong,
.process-line h3 {
  font-weight: 500;
}
.nav a,
.eyebrow,
.text-link,
summary,
.agency-list,
.brand-list,
.contact-row a {
  font-weight: 500;
}
.profile-stats strong {
  font-weight: 500;
}
#film .credits-intro h2 {
  font-weight: 600;
}

/* The DESIGN line follows the actual width of the wordmark above. */
.brand {
  width: max-content;
  align-items: stretch;
}
.brand strong {
  white-space: nowrap;
}
.brand small {
  display: flex;
  justify-content: space-between;
  letter-spacing: 0;
  width: 100%;
  font-size: 9px;
  line-height: 1;
  margin-top: 10px;
}
/* Centre portrait and landscape films inside the same dark viewing surface. */
#player {
  width: 92vw;
  height: 90dvh;
  max-width: 1400px;
  max-height: 94dvh;
  margin: auto;
  background: #111;
  overflow: hidden;
  padding: 56px 24px 48px;
}
#player[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
#player video {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
#player .video-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  margin: 0;
  min-height: 40px;
}
#player .close {
  top: 8px;
  right: 10px;
}
@media (max-width: 760px) {
  #player {
    width: 96vw;
    height: 85dvh;
    padding: 52px 10px 44px;
  }
}

/* Small labels retain AA contrast on white and warm paper backgrounds. */
:root {
  --muted: #686d5e;
}
.nav a,
.eyebrow {
  color: #686d5e;
}
.cinematic-copy .eyebrow {
  color: #e0e2d3;
}
/* Media zoom stays inside a clipping frame; parallax still moves the outer layer. */
.media-crop {
  overflow: hidden;
  position: relative;
}
.media-crop > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-crop > img,
.profile-visual > img {
  transform: scale(var(--image-scale, 1));
}
.work img {
  transform: scale(var(--image-scale, 1));
}
.work:hover img {
  transform: scale(calc(var(--image-scale, 1) * 1.04));
}
.hero-landscape[data-depth] {
  transform: translate3d(
      calc(var(--depth-x, 0px) + var(--camera-x, 0px)),
      var(--camera-y, 0px),
      0
    )
    scale(var(--image-scale, 1));
}
.brand-list [data-edit-text] {
  padding-left: 0;
  color: inherit;
}
/* Text editing wrappers preserve the typography of their original parent. */
.text-link [data-edit-text],
.profile-stats strong [data-edit-text],
.process-line [data-edit-text] {
  font: inherit;
  color: inherit;
}
.text-link:hover [data-edit-text] {
  transform: none;
}

/* Mobile reading scale: compact headings and a consistent text column. */
@media (max-width: 760px) {
  .panel {
    padding: 24px 8vw 30px;
    scrollbar-gutter: auto;
  }
  .cinematic-copy h1 {
    font-size: clamp(36px, 10vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.045em;
    margin: 18px 0;
  }
  .profile-copy h2,
  .section-top h2,
  #film .credits-intro h2,
  .section-intro h2,
  .collab-top h2,
  .contact-grid h2 {
    font-size: clamp(30px, 8.2vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.04em;
    margin: 20px 0;
  }
  .body-copy,
  .profile-copy .body-copy,
  #film .credits-intro .body-copy,
  .collab-top .body-copy,
  .profile-lead,
  .section-top p {
    font-size: 15px;
    line-height: 1.55;
  }
  .profile-lead {
    margin-bottom: 20px;
  }
  .profile-stats strong {
    font-size: 40px;
    line-height: 1.1;
  }
  .credit-row h3 {
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -0.02em;
  }
  .credit-row p {
    font-size: 12px;
    line-height: 1.5;
  }
  .disciplines summary,
  .agency-list {
    font-size: 17px;
    line-height: 1.5;
  }
  .brand-list {
    font-size: 23px;
    line-height: 1.5;
  }
  .contact-row a {
    font-size: clamp(17px, 4.5vw, 20px);
    line-height: 1.5;
  }
  #film .credits-layout {
    gap: 16px;
  }
}

/* Native touch paging avoids pointer-capture cancellation on iOS/Android.
   Include wide touch screens; drag/animation temporarily suspends snapping. */
@media (max-width: 900px), (any-pointer: coarse) {
  #obsah {
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y pinch-zoom;
  }
  #obsah .panel {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    touch-action: pan-x pan-y pinch-zoom;
  }
  #film .credit-list {
    overscroll-behavior-x: auto;
    touch-action: pan-x pan-y pinch-zoom;
  }
  #obsah.moving,
  #obsah.dragging {
    scroll-snap-type: none;
  }
}

.privacy-link {
  color: #53584b;
  font-size: 12px;
  line-height: 1.4;
  text-underline-offset: 3px;
  max-width: 180px;
}
.privacy-link:focus-visible {
  outline: 2px solid #74764b;
  outline-offset: 4px;
}
@media (max-width: 600px) {
  .carousel-footer .page-dots {
    display: none;
  }
  .privacy-link {
    max-width: 150px;
  }
}

/* Discipline titles are split into editable spans; flex gap must only separate
   the number from the title, not the words inside it. */
.disciplines summary {
  gap: 0;
}
.disciplines summary:before {
  flex: none;
  margin-right: 20px;
}
.disciplines summary > span {
  white-space: break-spaces;
}

/* Phones read the chapters as one vertical page; horizontal paging stays on
   larger screens. carousel.js uses the same breakpoint (stacked). */
@media (max-width: 760px) {
  /* Only the viewport scrolls, so the sticky header has the right scroller. */
  html,
  body {
    height: auto;
    overflow: visible;
  }
  body {
    overflow-x: clip;
  }
  /* Each chapter starts where it locks in; long chapters still read freely
     until their end, and a fling cannot skip a whole chapter. */
  html {
    scroll-snap-type: y mandatory;
    scroll-padding-top: var(--head);
  }
  header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
  }
  #obsah {
    display: block;
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
    touch-action: auto;
  }
  #obsah .panel,
  #obsah .panel.active {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 48px 5vw;
    border-top: 1px solid #eeeee8;
    min-height: calc(100svh - var(--head));
    scroll-snap-align: start;
    scroll-snap-stop: always;
    touch-action: auto;
  }
  #obsah #uvod.cinematic-intro {
    height: calc(100svh - var(--head));
    min-height: 560px;
    padding: 0;
    border-top: 0;
  }
  [data-depth] {
    transform: none;
    will-change: auto;
  }
  #film .credits-layout,
  #film .credit-list {
    height: auto;
    max-height: none;
    overflow: visible;
  }
  #film .credit-list {
    padding-right: 0;
  }
  .carousel-footer {
    height: auto;
    padding: 28px 5vw;
    scroll-snap-align: end;
  }
  .carousel-footer .page-dots,
  .carousel-controls {
    display: none;
  }
  .privacy-link {
    max-width: none;
  }
}
